|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SourceValidity
object contains all information to check if a Source
object is still valid.
There are two possibilities:
isValid()
and only if this result
is 0
(i.e. "don't know"), then to call isValid(SourceValidity)
.
Remember to call isValid(SourceValidity)
when isValid()
returned
0
!
Field Summary | |
static int |
INVALID
|
static int |
UNKNOWN
|
static int |
UNKNWON
Deprecated. because it has been misspelled, use UNKNOWN of course |
static int |
VALID
|
Method Summary | |
int |
isValid()
Check if the component is still valid. |
int |
isValid(SourceValidity newValidity)
Check if the component is still valid. |
Field Detail |
public static final int VALID
public static final int INVALID
public static final int UNKNWON
public static final int UNKNOWN
Method Detail |
public int isValid()
-1
: invalid. The component isn't valid anymore.0
: don't know. This validity should be checked against a new
validity object using isValid(SourceValidity)
.1
: valid. The component is still valid.
public int isValid(SourceValidity newValidity)
The invocation order is that the isValid method of the old Validity object is called with the new one as a parameter.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |