Klasse Validity
java.lang.Object
com.inet.report.Validity
- Alle implementierten Schnittstellen:
Serializable
This class hold the state of an checked object.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungPossible error data if the object is not valid.getState()One of the possible StatesbooleanhasState(Validity.States... allowedStates) Checks whether thisValidityinstance has one of the given states
-
Konstruktordetails
-
Validity
Create a new Validity object.- Parameter:
state- the current statedata- possible error data- Löst aus:
IllegalArgumentException- if state is null- Seit:
- 10.0
-
-
Methodendetails
-
getState
One of the possible States- Gibt zurück:
- a state, never null
- Seit:
- 10.0
-
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
Checks whether thisValidityinstance 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
-