Interface IValidator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and TypeMethodDescription
      java.lang.StringgetMessage()
      Gets the message, null for no error.
      intgetMessageType()
      Gets the type of message (IMessageProvider.ERROR, IMessageProvider.WARNING, IMessageProvider.INFORMATION or IMessageProvider.NONE).
      booleanhasBeenModified()
      Checks if the control has been modified.
      voidreset()
      Resets the validator before performing all validations in the manager.
      voidsetModified​(boolean on)
      Sets the modified state.
      booleanvalidate()
      Performs validation.
    • Method Detail

      • reset

        void reset()
        Resets the validator before performing all validations in the manager.
      • validate

        boolean validate()
        Performs validation.
        Returns:
        true for success, false for failure.
      • getMessage

        java.lang.String getMessage()
        Gets the message, null for no error.
      • getMessageType

        int getMessageType()
        Gets the type of message (IMessageProvider.ERROR, IMessageProvider.WARNING, IMessageProvider.INFORMATION or IMessageProvider.NONE).
      • setModified

        void setModified​(boolean on)
        Sets the modified state.
      • hasBeenModified

        boolean hasBeenModified()
        Checks if the control has been modified.