Class 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:
    Serialized Form
    • Constructor Detail

      • SimpleValidationError

        public SimpleValidationError()
      • SimpleValidationError

        public SimpleValidationError​(String message,
                                     ItemPathType attribute)
    • Method Detail

      • getMessage

        public String getMessage()
      • setMessage

        public void setMessage​(String message)
      • setAttribute

        public void setAttribute​(ItemPathType attribute)
      • printAttribute

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

        public int hashCode()
        Overrides:
        hashCode in class Object