Klasse Validity

java.lang.Object
com.inet.report.Validity
Alle implementierten Schnittstellen:
Serializable

public class Validity extends Object implements Serializable
This class hold the state of an checked object.
Siehe auch:
  • Konstruktordetails

    • Validity

      public Validity(Validity.States state, Object data)
      Create a new Validity object.
      Parameter:
      state - the current state
      data - possible error data
      Löst aus:
      IllegalArgumentException - if state is null
      Seit:
      10.0
  • Methodendetails

    • getState

      public Validity.States getState()
      One of the possible States
      Gibt zurück:
      a state, never null
      Seit:
      10.0
    • getErrorData

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

      public boolean hasState(Validity.States... allowedStates)
      Checks whether this Validity instance has one of the given states
      Parameter:
      allowedStates - the states to be filtered
      Gibt zurück:
      true, if the state is one of the allowed states
      Seit:
      10.1