|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.excalibur.source.impl.validity.NOPValidity
A validation object which is always valid.
| Field Summary | |
static SourceValidity |
SHARED_INSTANCE
|
| Fields inherited from interface org.apache.excalibur.source.SourceValidity |
INVALID, UNKNOWN, UNKNWON, VALID |
| Constructor Summary | |
NOPValidity()
|
|
| Method Summary | |
int |
isValid()
Check if the component is still valid. |
int |
isValid(SourceValidity newValidity)
Check if the component is still valid. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final SourceValidity SHARED_INSTANCE
| Constructor Detail |
public NOPValidity()
| Method Detail |
public int isValid()
0 is returned the isValid(SourceValidity) must be
called afterwards!
If -1 is returned, the component is not valid anymore and if +1
is returnd, the component is valid.
isValid in interface SourceValiditypublic int isValid(SourceValidity newValidity)
SourceValidityThe invocation order is that the isValid method of the old Validity object is called with the new one as a parameter.
isValid in interface SourceValiditypublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||