com.smallx.xml.infoset
Interface Validity

All Known Subinterfaces:
Attribute, Element
All Known Implementing Classes:
MemoryAttribute, MemoryElement

public interface Validity


Field Summary
static int ATTEMPTED_FULL
          Validation was attemted for all descendants.
static int ATTEMPTED_NONE
          Validation was not attempted.
static int ATTEMPTED_PARTIAL
          Validation was attempted only when there are appropriate declarations.
static int INVALID
          The item is invalid.
static int NOT_KNOWN
          It is not known whether the item is valid or invalid.
static int VALID
          The item is valid.
 
Method Summary
 TypeDefinition getTypeDefinition()
          Returns a type definition from the schema implementation.
 int getValidationAttempted()
           
 int getValidity()
          Gets the validity.
 void setTypeDefinition(TypeDefinition definition)
          Sets the type definition object for this item.
 void setValidity(int validity, int attempted)
          Sets the validity and validation attempted.
 

Field Detail

INVALID

public static final int INVALID
The item is invalid.

See Also:
Constant Field Values

VALID

public static final int VALID
The item is valid.

See Also:
Constant Field Values

NOT_KNOWN

public static final int NOT_KNOWN
It is not known whether the item is valid or invalid.

See Also:
Constant Field Values

ATTEMPTED_NONE

public static final int ATTEMPTED_NONE
Validation was not attempted.

See Also:
Constant Field Values

ATTEMPTED_FULL

public static final int ATTEMPTED_FULL
Validation was attemted for all descendants.

See Also:
Constant Field Values

ATTEMPTED_PARTIAL

public static final int ATTEMPTED_PARTIAL
Validation was attempted only when there are appropriate declarations.

See Also:
Constant Field Values
Method Detail

getValidity

public int getValidity()
Gets the validity.


getValidationAttempted

public int getValidationAttempted()

setValidity

public void setValidity(int validity,
                        int attempted)
Sets the validity and validation attempted.

Parameters:
validity - One of the values VALID, INVALID, or NOT_KNOWN
attempted - One of the values ATTEMPTED_NONE, ATTEMPTED_FULL, or ATTEMPTED_PARTIAL

getTypeDefinition

public TypeDefinition getTypeDefinition()
Returns a type definition from the schema implementation.


setTypeDefinition

public void setTypeDefinition(TypeDefinition definition)
Sets the type definition object for this item.