Interface SchemaComponent
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
AtomicType, ComplexType, ListType, SchemaType, SimpleType
- All Known Implementing Classes:
AnySimpleType, AnyType, BuiltInAtomicType, BuiltInListType, ErrorType, ExternalObjectType, Untyped
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
or a
invalid reference
com.saxonica.schema.UserSchemaComponent
SchemaType or both.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intValidation status: fixed up (all references to other components have been resolved)static final intValidation status: validation attempted, component contains references to other components that are not (yet) availablestatic final intValidation status: validation attempted and failed with fatal errorsstatic final intValidation status: not yet validatedstatic final intValidation status: successfully validatedstatic final intValidation status: currently being validated -
Method Summary
Modifier and TypeMethodDescriptionintGet the redefinition level.intGet the validation status of this component.
-
Field Details
-
UNVALIDATED
static final int UNVALIDATEDValidation status: not yet validated- See Also:
-
FIXED_UP
static final int FIXED_UPValidation status: fixed up (all references to other components have been resolved)- See Also:
-
VALIDATING
static final int VALIDATINGValidation status: currently being validated- See Also:
-
VALIDATED
static final int VALIDATEDValidation status: successfully validated- See Also:
-
INVALID
static final int INVALIDValidation status: validation attempted and failed with fatal errors- See Also:
-
INCOMPLETE
static final int INCOMPLETEValidation status: validation attempted, component contains references to other components that are not (yet) available- See Also:
-
-
Method Details
-
getValidationStatus
int getValidationStatus()Get the validation status of this component.- Returns:
- one of the values
UNVALIDATED,VALIDATING,VALIDATED,INVALID,INCOMPLETE
-
getRedefinitionLevel
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
-