public interface SourceValidity
extends java.io.Serializable
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 !
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID |
static int |
UNKNOWN |
static int |
UNKNWON
Deprecated.
because it has been misspelled, use UNKNOWN of course
|
static int |
VALID |
| Modifier and Type | Method and Description |
|---|---|
int |
isValid()
Check if the component is still valid.
|
int |
isValid(SourceValidity newValidity)
Check if the component is still valid.
|
static final int VALID
static final int INVALID
static final int UNKNWON
static final int UNKNOWN
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.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.