Class ValidationTrackerWrapper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears all information stored by the tracker.
      protected ValidationTracker getDelegate()
      Returns the instance to which methods are delegated.
      java.lang.String getError​(Field field)
      Returns a previously recorded error message.
      java.util.List<java.lang.String> getErrors()
      Returns a list of all error messages.
      boolean getHasErrors()
      Returns true if any field contains an error.
      java.lang.String getInput​(Field field)
      Returns a previously recorded input value.
      java.util.List<java.lang.String> getUnassociatedErrors()
      Returns just the errors that are not associated with any fields.
      boolean inError​(Field field)
      For a given field, determines if the field is "in error", meaning that an error message has been previously recorded for the field.
      void recordError​(java.lang.String errorMessage)
      Records an error message that is not associated with any specific field.
      void recordError​(Field field, java.lang.String errorMessage)
      Records an error message for a field.
      void recordInput​(Field field, java.lang.String input)
      Called by a field to record the exact input from the user, prior to any validation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait