|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
org.apache.ws.jaxme.xs.xml.impl.XsESchemaImpl
Implementation of xs:schema. Follows this specification:
<xs:element name="schema" id="schema">
<xs:annotation>
<xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-schema"/>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="xs:openAttrs">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="xs:include"/>
<xs:element ref="xs:import"/>
<xs:element ref="xs:redefine"/>
<xs:element ref="xs:annotation"/>
</xs:choice>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:group ref="xs:schemaTop"/>
<xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
<xs:attribute name="targetNamespace" type="xs:anyURI"/>
<xs:attribute name="version" type="xs:token"/>
<xs:attribute name="finalDefault" type="xs:derivationSet" use="optional" default=""/>
<xs:attribute name="blockDefault" type="xs:blockSet" use="optional" default=""/>
<xs:attribute name="attributeFormDefault" type="xs:formChoice" use="optional" default="unqualified"/>
<xs:attribute name="elementFormDefault" type="xs:formChoice" use="optional" default="unqualified"/>
<xs:attribute name="id" type="xs:ID"/>
<xs:attribute ref="xml:lang"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:key name="element">
<xs:selector xpath="xs:element"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:key name="attribute">
<xs:selector xpath="xs:attribute"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:key name="type">
<xs:selector xpath="xs:complexType|xs:simpleType"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:key name="group">
<xs:selector xpath="xs:group"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:key name="attributeGroup">
<xs:selector xpath="xs:attributeGroup"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:key name="notation">
<xs:selector xpath="xs:notation"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:key name="identityConstraint">
<xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
<xs:field xpath="@name"/>
</xs:key>
</xs:element>
<xs:group name="schemaTop">
<xs:annotation>
<xs:documentation>
This group is for the
elements which occur freely at the top level of schemas.
All of their types are based on the "annotated" type by extension.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:group ref="xs:redefinable"/>
<xs:element ref="xs:element"/>
<xs:element ref="xs:attribute"/>
<xs:element ref="xs:notation"/>
</xs:choice>
</xs:group>
| Constructor Summary | |
protected |
XsESchemaImpl(XSContext pContext)
|
| Method Summary | |
XsEAnnotation |
createAnnotation()
|
XsTAttribute |
createAttribute()
|
XsTAttributeGroup |
createAttributeGroup()
|
XsTComplexType |
createComplexType()
|
XsTTopLevelElement |
createElement()
|
XsTNamedGroup |
createGroup()
|
XsEImport |
createImport()
|
XsEInclude |
createInclude()
|
XsENotation |
createNotation()
|
XsERedefine |
createRedefine()
|
XsETopLevelSimpleType |
createSimpleType()
|
XsFormChoice |
getAttributeFormDefault()
Returns the "form" attributes default value for attributes. |
XsBlockSet |
getBlockDefault()
Returns the "block" attributes default value. |
java.lang.Object[] |
getChilds()
Returns the schema's childs. |
XSContext |
getContext()
Returns the schema context. |
XsFormChoice |
getElementFormDefault()
Returns the "form" attributes default value for elements. |
XsDerivationSet |
getFinalDefault()
Returns the "final" attributes default value. |
XsID |
getId()
Returns the schemas ID. |
XmlLang |
getLang()
|
XsAnyURI |
getTargetNamespace()
Returns the target namespace. |
java.lang.String |
getTargetNamespacePrefix()
Returns a prefix associated with the target namespace or null, if no such prefix is available. |
XsToken |
getVersion()
Returns the schema version. |
XsQName |
newXsQName(java.lang.String pLocalName,
java.lang.String pPrefix)
Creates a new XsQName, which is mutable and
has the schemas target namespace as a namespace URI:
If the target namespace changes, then the names URI
does as well. |
boolean |
setAttribute(java.lang.String pQName,
java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pValue)
This method receives all the attributes, including those from the XML schema namespace. |
void |
setAttributeFormDefault(XsFormChoice pChoice)
|
void |
setBlockDefault(XsBlockSet pSet)
|
void |
setElementFormDefault(XsFormChoice pChoice)
|
void |
setFinalDefault(XsDerivationSet pSet)
|
void |
setId(XsID pId)
|
void |
setLang(XmlLang pLanguage)
|
void |
setTargetNamespace(XsAnyURI pAnyURI)
|
void |
setVersion(XsToken pToken)
|
| Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl |
getOpenAttributes |
| Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
asXsQName, asXsQName, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTOpenAttrs |
getOpenAttributes |
| Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject |
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate |
| Constructor Detail |
protected XsESchemaImpl(XSContext pContext)
| Method Detail |
public XSContext getContext()
XsESchemaReturns the schema context.
getContext in interface XsESchemagetContext in class XsObjectImplpublic XsEInclude createInclude()
createInclude in interface XsESchemapublic XsEImport createImport()
createImport in interface XsESchemapublic XsERedefine createRedefine()
createRedefine in interface XsESchemapublic XsEAnnotation createAnnotation()
createAnnotation in interface XsESchemapublic XsETopLevelSimpleType createSimpleType()
createSimpleType in interface XsESchemapublic XsTComplexType createComplexType()
createComplexType in interface XsESchemapublic XsTNamedGroup createGroup()
createGroup in interface XsESchemapublic XsTAttributeGroup createAttributeGroup()
createAttributeGroup in interface XsESchemapublic XsTTopLevelElement createElement()
createElement in interface XsESchemapublic XsTAttribute createAttribute()
createAttribute in interface XsESchemapublic XsENotation createNotation()
createNotation in interface XsESchemapublic XsFormChoice getAttributeFormDefault()
XsSchemaHeaderReturns the "form" attributes default value for attributes.
getAttributeFormDefault in interface XsSchemaHeaderpublic void setAttributeFormDefault(XsFormChoice pChoice)
setAttributeFormDefault in interface XsESchemapublic XsBlockSet getBlockDefault()
XsSchemaHeaderReturns the "block" attributes default value.
getBlockDefault in interface XsSchemaHeaderpublic void setBlockDefault(XsBlockSet pSet)
setBlockDefault in interface XsESchemapublic XsFormChoice getElementFormDefault()
XsSchemaHeaderReturns the "form" attributes default value for elements.
getElementFormDefault in interface XsSchemaHeaderpublic void setElementFormDefault(XsFormChoice pChoice)
setElementFormDefault in interface XsESchemapublic XsDerivationSet getFinalDefault()
XsSchemaHeaderReturns the "final" attributes default value.
getFinalDefault in interface XsSchemaHeaderpublic void setFinalDefault(XsDerivationSet pSet)
setFinalDefault in interface XsESchemapublic XsID getId()
XsSchemaHeaderReturns the schemas ID.
getId in interface XsSchemaHeaderpublic void setId(XsID pId)
setId in interface XsESchemapublic XsAnyURI getTargetNamespace()
XsSchemaHeaderReturns the target namespace.
getTargetNamespace in interface XsSchemaHeaderpublic java.lang.String getTargetNamespacePrefix()
XsSchemaHeaderReturns a prefix associated with the target namespace or null, if no such prefix is available.
getTargetNamespacePrefix in interface XsSchemaHeaderpublic void setTargetNamespace(XsAnyURI pAnyURI)
setTargetNamespace in interface XsESchemapublic XsToken getVersion()
XsSchemaHeaderReturns the schema version.
getVersion in interface XsSchemaHeaderpublic void setVersion(XsToken pToken)
setVersion in interface XsESchemapublic XmlLang getLang()
public void setLang(XmlLang pLanguage)
public boolean setAttribute(java.lang.String pQName,
java.lang.String pNamespaceURI,
java.lang.String pLocalName,
java.lang.String pValue)
throws org.xml.sax.SAXException
XsTOpenAttrsImplThis method receives all the attributes, including those from the
XML schema namespace. The method refuses to handle the attribute, if
it has the XML schema namespace by returning the value false. Otherwise,
the attribute is added to the list returned by XsTOpenAttrsImpl.getOpenAttributes()
and the value true is returned.
setAttribute in class XsTOpenAttrsImplorg.xml.sax.SAXExceptionpublic java.lang.Object[] getChilds()
XsESchemaReturns the schema's childs. These are instances of
XsEInclude, XsEImport, XsERedefine,
XsEAnnotation, XsETopLevelSimpleType,
XsTComplexType, XsTGroup,
XsTAttributeGroup, XsTTopLevelElement, or
XsENotation, in the order of the document. This
order is the same order than by invocation of the
corresponding XsESchema.createInclude(), XsESchema.createImport(),
... method calls.
Be aware, that a subclass of XsESchema may very well include other objects.
getChilds in interface XsESchema
public XsQName newXsQName(java.lang.String pLocalName,
java.lang.String pPrefix)
Creates a new XsQName, which is mutable and
has the schemas target namespace as a namespace URI:
If the target namespace changes, then the names URI
does as well.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||