Class Validity

java.lang.Object
com.inet.report.Validity
All Implemented Interfaces:
Serializable

public class Validity extends Object implements Serializable
This class hold the state of an checked object.
See Also:
  • Constructor Details

  • Method Details

    • getState

      public Validity.States getState()
      One of the possible States
      Returns:
      a state, never null
      Since:
      10.0
    • getErrorData

      public Object getErrorData()
      Possible error data if the object is not valid. Which data this are depends on the checked object.
      Returns:
      the error details or null
      Since:
      10.0
    • hasState

      public boolean hasState(Validity.States... allowedStates)
      Checks whether this Validity instance has one of the given states
      Parameters:
      allowedStates - the states to be filtered
      Returns:
      true, if the state is one of the allowed states
      Since:
      10.1