Class SimpleValidationError

java.lang.Object
com.evolveum.midpoint.web.util.validation.SimpleValidationError
All Implemented Interfaces:
Serializable

public class SimpleValidationError extends Object implements Serializable
This is just a simple representation of custom form validation error. Currently, it holds only a simple String 'message' attribute as an information about validation error and an ItemPathType 'attribute' as a path to the source of error. Feel free to add any information about validation errors that your custom validator requires.
Author:
shood
See Also:
  • Constructor Details

    • SimpleValidationError

      public SimpleValidationError()
    • SimpleValidationError

      public SimpleValidationError(String message, ItemPathType attribute)
  • Method Details

    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getAttribute

      public ItemPathType getAttribute()
    • setAttribute

      public void setAttribute(ItemPathType attribute)
    • printAttribute

      public String printAttribute()
      Override to create custom implementation of printing the attribute (for logging and GUI purposes)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object