|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.inet.report.Validity
public class Validity
This class hold the state of an checked object.
| Nested Class Summary | |
|---|---|
static class |
Validity.States
States of an object |
| Constructor Summary | |
|---|---|
Validity(Validity.States state,
java.lang.Object data)
Create a new Validity object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getErrorData()
Possible error data if the object is not valid. |
Validity.States |
getState()
One of the possible States |
boolean |
hasState(Validity.States[] allowedStates)
Checks whether this Validity instance has one of the given states |
| Constructor Detail |
|---|
public Validity(Validity.States state,
java.lang.Object data)
state - the current statedata - possible error data
java.lang.IllegalArgumentException - if state is null| Method Detail |
|---|
public Validity.States getState()
public java.lang.Object getErrorData()
public boolean hasState(Validity.States[] allowedStates)
Validity instance has one of the given states
allowedStates - the states to be filtered
|
i-net Clear Reports | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||