|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlbeans.impl.schema.SchemaParticleImpl
org.apache.xmlbeans.impl.schema.SchemaLocalElementImpl
org.apache.xmlbeans.impl.schema.SchemaGlobalElementImpl
public class SchemaGlobalElementImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.xmlbeans.SchemaGlobalElement |
---|
SchemaGlobalElement.Ref |
Field Summary |
---|
Fields inherited from class org.apache.xmlbeans.impl.schema.SchemaLocalElementImpl |
---|
_abs |
Fields inherited from class org.apache.xmlbeans.impl.schema.SchemaParticleImpl |
---|
_parseObject |
Fields inherited from interface org.apache.xmlbeans.SchemaComponent |
---|
ANNOTATION, ATTRIBUTE, ATTRIBUTE_GROUP, ELEMENT, IDENTITY_CONSTRAINT, MODEL_GROUP, NOTATION, TYPE |
Fields inherited from interface org.apache.xmlbeans.SchemaParticle |
---|
ALL, CHOICE, ELEMENT, LAX, SEQUENCE, SKIP, STRICT, WILDCARD |
Constructor Summary | |
---|---|
SchemaGlobalElementImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)
|
Method Summary | |
---|---|
void |
addSubstitutionGroupMember(javax.xml.namespace.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. |
java.lang.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. |
java.lang.String |
getSourceName()
The name of resource that represends the source .xsd in which this component was defined (if known) See: SchemaTypeLoader.getSourceAsStream(String)
Example: |
java.lang.String |
getTargetNamespace()
|
SchemaTypeSystem |
getTypeSystem()
Returns the typesystem within which this component definition resides |
void |
setFilename(java.lang.String filename)
|
void |
setParseContext(XmlObject parseObject,
java.lang.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. |
javax.xml.namespace.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, setWsdlArrayType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.xmlbeans.SchemaLocalElement |
---|
blockExtension, blockRestriction, blockSubstitution, getIdentityConstraints, isAbstract |
Methods inherited from interface org.apache.xmlbeans.SchemaField |
---|
getDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, getUserData, isAttribute, isDefault, isFixed, isNillable |
Methods inherited from interface org.apache.xmlbeans.SchemaAnnotated |
---|
getAnnotation |
Methods inherited from interface org.apache.xmlbeans.SchemaComponent |
---|
getName |
Constructor Detail |
---|
public SchemaGlobalElementImpl(org.apache.xmlbeans.impl.schema.SchemaContainer container)
Method Detail |
---|
public SchemaTypeSystem getTypeSystem()
SchemaComponent
getTypeSystem
in interface SchemaComponent
public java.lang.String getSourceName()
SchemaComponent
SchemaTypeLoader.getSourceAsStream(String)
SchemaType schemaType = ..; InputStream is = schemaType.getTypeSystem().getSourceAsStream(schemaType.getSourceName());
getSourceName
in interface SchemaComponent
public void setFilename(java.lang.String filename)
public int getComponentType()
SchemaComponent
SchemaComponent.TYPE
,
SchemaComponent.ELEMENT
, SchemaComponent.ATTRIBUTE
, SchemaComponent.ATTRIBUTE_GROUP
,
SchemaComponent.MODEL_GROUP
, SchemaComponent.IDENTITY_CONSTRAINT
, or SchemaComponent.NOTATION
.
getComponentType
in interface SchemaComponent
public SchemaGlobalElement substitutionGroup()
SchemaGlobalElement
null
if this element is not a member
of a substitution group.
substitutionGroup
in interface SchemaGlobalElement
public void setSubstitutionGroup(SchemaGlobalElement.Ref sg)
public javax.xml.namespace.QName[] substitutionGroupMembers()
SchemaGlobalElement
substitutionGroupMembers
in interface SchemaGlobalElement
public void addSubstitutionGroupMember(javax.xml.namespace.QName name)
public boolean finalExtension()
SchemaGlobalElement
finalExtension
in interface SchemaGlobalElement
public boolean finalRestriction()
SchemaGlobalElement
finalRestriction
in interface SchemaGlobalElement
public void setParseContext(XmlObject parseObject, java.lang.String targetNamespace, boolean chameleon)
public XmlObject getParseObject()
public java.lang.String getTargetNamespace()
public java.lang.String getChameleonNamespace()
public SchemaGlobalElement.Ref getRef()
SchemaGlobalElement
getRef
in interface SchemaGlobalElement
public SchemaComponent.Ref getComponentRef()
SchemaComponent
getComponentRef
in interface SchemaComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |