net.sf.saxon.type

Interface SchemaComponent

public interface SchemaComponent extends Serializable

This is a marker interface that represents any "schema component" as defined in the XML Schema specification. This may be a user-defined schema component or a built-in schema component. Since all built-in schema components are types, every SchemaComponent in practice is either a UserSchemaComponent or a SchemaType or both.
Field Summary
static intFIXED_UP
Validation status: fixed up (all references to other components have been resolved)
static intINCOMPLETE
Validation status: validation attempted, component contains references to other components that are not (yet) available
static intINVALID
Validation status: validation attempted and failed with fatal errors
static intUNVALIDATED
Validation status: not yet validated
static intVALIDATED
Validation status: successfully validated
static intVALIDATING
Validation status: currently being validated
Method Summary
intgetRedefinitionLevel()
Get the redefinition level.
intgetValidationStatus()
Get the validation status of this component.

Field Detail

FIXED_UP

public static final int FIXED_UP
Validation status: fixed up (all references to other components have been resolved)

INCOMPLETE

public static final int INCOMPLETE
Validation status: validation attempted, component contains references to other components that are not (yet) available

INVALID

public static final int INVALID
Validation status: validation attempted and failed with fatal errors

UNVALIDATED

public static final int UNVALIDATED
Validation status: not yet validated

VALIDATED

public static final int VALIDATED
Validation status: successfully validated

VALIDATING

public static final int VALIDATING
Validation status: currently being validated

Method Detail

getRedefinitionLevel

public int getRedefinitionLevel()
Get the redefinition level. This is zero for a component that has not been redefined; for a redefinition of a level-0 component, it is 1; for a redefinition of a level-N component, it is N+1. This concept is used to support the notion of "pervasive" redefinition: if a component is redefined at several levels, the top level wins, but it is an error to have two versions of the component at the same redefinition level.

Returns: the redefinition level

getValidationStatus

public int getValidationStatus()
Get the validation status of this component.

Returns: one of the values UNVALIDATED, VALIDATING, VALIDATED, INVALID, INCOMPLETE