SchemaComponent Interface

com.bea.xml
SchemaComponent Interface

public interface SchemaComponent

Represents a global Schema Component. That is, a type, element, attribute, model group, attribute group, or identity constraint.

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.

Related Topics

SchemaType
SchemaGlobalElement
SchemaGlobalAttribute
SchemaAttributeGroup
SchemaModelGroup
SchemaIdentityConstraint


All Known Subinterfaces

SchemaAttributeGroup, SchemaGlobalAttribute, SchemaGlobalElement, SchemaIdentityConstraint, SchemaModelGroup, SchemaType

Field Summary

public static final int
ATTRIBUTE
An attribute definition.
public static final int
ATTRIBUTE_GROUP
An attribute group definition.
public static final int
ELEMENT
An element definition.
public static final int
IDENTITY_CONSTRAINT
An identity constraint definition.
public static final int
MODEL_GROUP
A model group definition.
public static final int
NOTATION
A notation definition.
public static final int
TYPE
A type definition.
 

Method Summary

public SchemaComponent.Ref
getComponentRef()
Used for on-demand loading of schema components.
public int
getComponentType()
Returns the type code for the schema object, either SchemaComponent.TYPE, SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP, SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION.
public QName
getName()
The name of the schema component
public SchemaTypeSystem
getTypeSystem()
Returns the typesystem within which this component definition resides

Field Detail

ATTRIBUTE

public static final int ATTRIBUTE
An attribute definition. See SchemaComponent.getComponentType()


ATTRIBUTE_GROUP

public static final int ATTRIBUTE_GROUP
An attribute group definition. See SchemaComponent.getComponentType()


ELEMENT

public static final int ELEMENT
An element definition. See SchemaComponent.getComponentType()


IDENTITY_CONSTRAINT

public static final int IDENTITY_CONSTRAINT
An identity constraint definition. See SchemaComponent.getComponentType()


MODEL_GROUP

public static final int MODEL_GROUP
A model group definition. See SchemaComponent.getComponentType()


NOTATION

public static final int NOTATION
A notation definition. See SchemaComponent.getComponentType()


TYPE

public static final int TYPE
A type definition. See SchemaComponent.getComponentType()

 

Method Detail

getComponentRef() Method

public SchemaComponent.Ref getComponentRef()
Used for on-demand loading of schema components.


getComponentType() Method

public int getComponentType()
Returns the type code for the schema object, either SchemaComponent.TYPE, SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP, SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION.


getName() Method

public QName getName()
The name of the schema component


getTypeSystem() Method

public SchemaTypeSystem getTypeSystem()
Returns the typesystem within which this component definition resides