Package org.apache.xmlbeans.impl.schema
Class SchemaGlobalElementImpl
java.lang.Object
org.apache.xmlbeans.impl.schema.SchemaParticleImpl
org.apache.xmlbeans.impl.schema.SchemaLocalElementImpl
org.apache.xmlbeans.impl.schema.SchemaGlobalElementImpl
- All Implemented Interfaces:
SchemaAnnotated,SchemaComponent,SchemaField,SchemaGlobalElement,SchemaLocalElement,SchemaParticle,SchemaWSDLArrayType
public class SchemaGlobalElementImpl extends SchemaLocalElementImpl implements SchemaGlobalElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaGlobalElement
SchemaGlobalElement.Ref -
Field Summary
Fields inherited from interface org.apache.xmlbeans.SchemaComponent
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE -
Constructor Summary
Constructors Constructor Description SchemaGlobalElementImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container) -
Method Summary
Modifier and Type Method Description voidaddSubstitutionGroupMember(QName name)booleanfinalExtension()True if using this element as the head of a substitution group for a substitution via type extension is prohibited.booleanfinalRestriction()True if using this element as the head of a substitution group for a substitution via type restriction is prohibited.StringgetChameleonNamespace()SchemaComponent.RefgetComponentRef()Used for on-demand loading of schema components.intgetComponentType()Returns the type code for the schema object, eitherSchemaComponent.TYPE,SchemaComponent.ELEMENT,SchemaComponent.ATTRIBUTE,SchemaComponent.ATTRIBUTE_GROUP,SchemaComponent.MODEL_GROUP,SchemaComponent.IDENTITY_CONSTRAINT, orSchemaComponent.NOTATION.XmlObjectgetParseObject()SchemaGlobalElement.RefgetRef()Retruns a SchemaGlobalElement.Ref pointing to this element itself.StringgetSourceName()The name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:StringgetTargetNamespace()SchemaTypeSystemgetTypeSystem()Returns the typesystem within which this component definition residesvoidsetFilename(String filename)voidsetParseContext(XmlObject parseObject, String targetNamespace, boolean chameleon)voidsetSubstitutionGroup(SchemaGlobalElement.Ref sg)SchemaGlobalElementsubstitutionGroup()The element that is the head of this element's substitution group, ornullif 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.Methods inherited from class org.apache.xmlbeans.impl.schema.SchemaLocalElementImpl
blockExtension, blockRestriction, blockSubstitution, getAnnotation, getIdentityConstraintRefs, getIdentityConstraints, getWSDLArrayType, isAbstract, setAbstract, setAnnotation, setBlock, setIdentityConstraints, setWsdlArrayTypeMethods inherited from class org.apache.xmlbeans.impl.schema.SchemaParticleImpl
acceptedStartNames, 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, setWildcardSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xmlbeans.SchemaField
getDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, getUserData, isAttribute, isDefault, isFixed, isNillableMethods inherited from interface org.apache.xmlbeans.SchemaLocalElement
blockExtension, blockRestriction, blockSubstitution, getIdentityConstraints, isAbstract
-
Constructor Details
-
SchemaGlobalElementImpl
public SchemaGlobalElementImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)
-
-
Method Details
-
getTypeSystem
Description copied from interface:SchemaComponentReturns the typesystem within which this component definition resides- Specified by:
getTypeSystemin interfaceSchemaComponent
-
getSourceName
Description copied from interface:SchemaComponentThe name of resource that represends the source .xsd in which this component was defined (if known)
See:SchemaTypeLoader.getSourceAsStream(String)
Example:SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
- Specified by:
getSourceNamein interfaceSchemaComponent
-
setFilename
-
getComponentType
public int getComponentType()Description copied from interface:SchemaComponentReturns the type code for the schema object, eitherSchemaComponent.TYPE,SchemaComponent.ELEMENT,SchemaComponent.ATTRIBUTE,SchemaComponent.ATTRIBUTE_GROUP,SchemaComponent.MODEL_GROUP,SchemaComponent.IDENTITY_CONSTRAINT, orSchemaComponent.NOTATION.- Specified by:
getComponentTypein interfaceSchemaComponent
-
substitutionGroup
Description copied from interface:SchemaGlobalElementThe element that is the head of this element's substitution group, ornullif this element is not a member of a substitution group.- Specified by:
substitutionGroupin interfaceSchemaGlobalElement
-
setSubstitutionGroup
-
substitutionGroupMembers
Description copied from interface:SchemaGlobalElementSet of QNames for elements that are the members of the substitution group for which this element is the head, not including this element.- Specified by:
substitutionGroupMembersin interfaceSchemaGlobalElement
-
addSubstitutionGroupMember
-
finalExtension
public boolean finalExtension()Description copied from interface:SchemaGlobalElementTrue if using this element as the head of a substitution group for a substitution via type extension is prohibited. If both finalExtension and finalRestriction are true, this element cannot be head of a substitution group. Sensible only for global elements.- Specified by:
finalExtensionin interfaceSchemaGlobalElement
-
finalRestriction
public boolean finalRestriction()Description copied from interface:SchemaGlobalElementTrue if using this element as the head of a substitution group for a substitution via type restriction is prohibited. If both finalExtension and finalRestriction are true, this element cannot be head of a substitution group. Sensible only for global elements.- Specified by:
finalRestrictionin interfaceSchemaGlobalElement
-
setParseContext
-
getParseObject
-
getTargetNamespace
-
getChameleonNamespace
-
getRef
Description copied from interface:SchemaGlobalElementRetruns a SchemaGlobalElement.Ref pointing to this element itself.- Specified by:
getRefin interfaceSchemaGlobalElement
-
getComponentRef
Description copied from interface:SchemaComponentUsed for on-demand loading of schema components.- Specified by:
getComponentRefin interfaceSchemaComponent
-