public interface SchemaComponent
Note that not all types, elements, and attributes are global; local types, element, and attributes do not appear in the global lookup table. Also note that other information items such as particles, facets, and so on are not globally indexed, so are not SchemaComponents.
Modifier and Type | Interface and Description |
---|---|
static class |
SchemaComponent.Ref
A lazy reference to a component.
|
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION
An annotation.
|
static int |
ATTRIBUTE
An attribute definition.
|
static int |
ATTRIBUTE_GROUP
An attribute group definition.
|
static int |
ELEMENT
An element definition.
|
static int |
IDENTITY_CONSTRAINT
An identity constraint definition.
|
static int |
MODEL_GROUP
A model group definition.
|
static int |
NOTATION
A notation definition.
|
static int |
TYPE
A type definition.
|
Modifier and Type | Method and Description |
---|---|
SchemaComponent.Ref |
getComponentRef()
Used for on-demand loading of schema components.
|
int |
getComponentType()
Returns the type code for the schema object, either
TYPE ,
ELEMENT , ATTRIBUTE , ATTRIBUTE_GROUP ,
MODEL_GROUP , IDENTITY_CONSTRAINT , or NOTATION . |
QName |
getName()
The name of the schema component
|
String |
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known)
See: SchemaTypeLoader.getSourceAsStream(String)
Example: |
SchemaTypeSystem |
getTypeSystem()
Returns the typesystem within which this component definition resides
|
static final int TYPE
getComponentType()
static final int ELEMENT
getComponentType()
static final int ATTRIBUTE
getComponentType()
static final int ATTRIBUTE_GROUP
getComponentType()
static final int IDENTITY_CONSTRAINT
getComponentType()
static final int MODEL_GROUP
getComponentType()
static final int NOTATION
getComponentType()
static final int ANNOTATION
getComponentType()
int getComponentType()
TYPE
,
ELEMENT
, ATTRIBUTE
, ATTRIBUTE_GROUP
,
MODEL_GROUP
, IDENTITY_CONSTRAINT
, or NOTATION
.SchemaTypeSystem getTypeSystem()
QName getName()
String getSourceName()
SchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
SchemaComponent.Ref getComponentRef()
Copyright © 2010 - 2020 Adobe. All Rights Reserved