public class SchemaGlobalElementImpl extends SchemaLocalElementImpl implements SchemaGlobalElement
SchemaGlobalElement.Ref_abs_parseObjectANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE| Constructor and Description |
|---|
SchemaGlobalElementImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSubstitutionGroupMember(QName name) |
boolean |
finalExtension()
True if using this element as the head of a substitution
group for a substitution via type extension is prohibited.
|
boolean |
finalRestriction()
True if using this element as the head of a substitution
group for a substitution via type restriction is prohibited.
|
String |
getChameleonNamespace() |
SchemaComponent.Ref |
getComponentRef()
Used for on-demand loading of schema components.
|
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. |
XmlObject |
getParseObject() |
SchemaGlobalElement.Ref |
getRef()
Retruns a SchemaGlobalElement.Ref pointing to this element itself.
|
String |
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known)
See: SchemaTypeLoader.getSourceAsStream(String)
Example: |
String |
getTargetNamespace() |
SchemaTypeSystem |
getTypeSystem()
Returns the typesystem within which this component definition resides
|
void |
setFilename(String filename) |
void |
setParseContext(XmlObject parseObject,
String targetNamespace,
boolean chameleon) |
void |
setSubstitutionGroup(SchemaGlobalElement.Ref sg) |
SchemaGlobalElement |
substitutionGroup()
The element that is the head of this element's substitution
group, or
null if this element is not a member
of a substitution group. |
QName[] |
substitutionGroupMembers()
Set of QNames for elements that are the members of the
substitution group for which this element is the head,
not including this element.
|
blockExtension, blockRestriction, blockSubstitution, getAnnotation, getIdentityConstraintRefs, getIdentityConstraints, getWSDLArrayType, isAbstract, setAbstract, setAnnotation, setBlock, setIdentityConstraints, setWsdlArrayTypeacceptedStartNames, canStartWithElement, countOfParticleChild, getDefaultText, getDefaultValue, getDocumentation, getExcludeNextSet, getIntMaxOccurs, getIntMinOccurs, getMaxOccurs, getMinOccurs, getName, getParticleChild, getParticleChildren, getParticleType, getType, getUserData, getWildcardProcess, getWildcardSet, hasTransitionNotes, hasTransitionRules, isAttribute, isDefault, isDeterministic, isFixed, isNillable, isSingleton, isSkippable, isTypeResolved, mutate, resolveTypeRef, setDefault, setDefaultValue, setImmutable, setMaxOccurs, setMinOccurs, setNameAndTypeRef, setNillable, setParticleChildren, setParticleType, setTransitionNotes, setTransitionRules, setUserData, setWildcardProcess, setWildcardSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblockExtension, blockRestriction, blockSubstitution, getIdentityConstraints, isAbstractgetDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, getUserData, isAttribute, isDefault, isFixed, isNillablegetAnnotationgetNamepublic SchemaGlobalElementImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)
public SchemaTypeSystem getTypeSystem()
SchemaComponentgetTypeSystem in interface SchemaComponentpublic String getSourceName()
SchemaComponentSchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
getSourceName in interface SchemaComponentpublic void setFilename(String filename)
public int getComponentType()
SchemaComponentSchemaComponent.TYPE,
SchemaComponent.ELEMENT, SchemaComponent.ATTRIBUTE, SchemaComponent.ATTRIBUTE_GROUP,
SchemaComponent.MODEL_GROUP, SchemaComponent.IDENTITY_CONSTRAINT, or SchemaComponent.NOTATION.getComponentType in interface SchemaComponentpublic SchemaGlobalElement substitutionGroup()
SchemaGlobalElementnull if this element is not a member
of a substitution group.substitutionGroup in interface SchemaGlobalElementpublic void setSubstitutionGroup(SchemaGlobalElement.Ref sg)
public QName[] substitutionGroupMembers()
SchemaGlobalElementsubstitutionGroupMembers in interface SchemaGlobalElementpublic void addSubstitutionGroupMember(QName name)
public boolean finalExtension()
SchemaGlobalElementfinalExtension in interface SchemaGlobalElementpublic boolean finalRestriction()
SchemaGlobalElementfinalRestriction in interface SchemaGlobalElementpublic void setParseContext(XmlObject parseObject, String targetNamespace, boolean chameleon)
public XmlObject getParseObject()
public String getTargetNamespace()
public String getChameleonNamespace()
public SchemaGlobalElement.Ref getRef()
SchemaGlobalElementgetRef in interface SchemaGlobalElementpublic SchemaComponent.Ref getComponentRef()
SchemaComponentgetComponentRef in interface SchemaComponent