Interface IValidator

All Known Implementing Classes:
ControlValidator, ValidationAdapter

public interface IValidator
Validation interface.
Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the message, null for no error.
    int
    Gets the type of message (IMessageProvider.ERROR, IMessageProvider.WARNING, IMessageProvider.INFORMATION or IMessageProvider.NONE).
    boolean
    Checks if the control has been modified.
    void
    Resets the validator before performing all validations in the manager.
    void
    setModified(boolean on)
    Sets the modified state.
    boolean
    Performs validation.
  • Method Details

    • 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

      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.