public interface XSSchema extends XSComponent
Modifier and Type | Method and Description |
---|---|
XSAttGroupDecl |
getAttGroupDecl(java.lang.String localName) |
java.util.Map<java.lang.String,XSAttGroupDecl> |
getAttGroupDecls()
Gets all the
XSAttGroupDecl s in this schema. |
XSAttributeDecl |
getAttributeDecl(java.lang.String localName) |
java.util.Map<java.lang.String,XSAttributeDecl> |
getAttributeDecls()
Gets all the
XSAttributeDecl s in this schema
keyed by their local names. |
XSComplexType |
getComplexType(java.lang.String localName) |
java.util.Map<java.lang.String,XSComplexType> |
getComplexTypes()
Gets all the
XSComplexType s in this schema. |
XSElementDecl |
getElementDecl(java.lang.String localName) |
java.util.Map<java.lang.String,XSElementDecl> |
getElementDecls()
Gets all the
XSElementDecl s in this schema. |
XSIdentityConstraint |
getIdentityConstraint(java.lang.String localName)
Gets the identity constraint of the given name, or null if not found.
|
java.util.Map<java.lang.String,XSIdentityConstraint> |
getIdentityConstraints()
Gets all the
XSIdentityConstraint s in this schema,
keyed by their names. |
XSModelGroupDecl |
getModelGroupDecl(java.lang.String localName) |
java.util.Map<java.lang.String,XSModelGroupDecl> |
getModelGroupDecls()
Gets all the
XSModelGroupDecl s in this schema. |
XSNotation |
getNotation(java.lang.String localName) |
java.util.Map<java.lang.String,XSNotation> |
getNotations()
Gets all the
XSNotation s in this schema. |
XSSchemaSet |
getRoot()
Gets the root schema set that includes this schema.
|
XSSimpleType |
getSimpleType(java.lang.String localName) |
java.util.Map<java.lang.String,XSSimpleType> |
getSimpleTypes()
Gets all the
XSSimpleType s in this schema. |
SchemaDocument |
getSourceDocument()
Deprecated.
Since this method always returns null, if you are calling
this method from
XSSchema and not from XSComponent ,
there's something wrong with your code. |
java.lang.String |
getTargetNamespace()
Gets the target namespace of the schema.
|
XSType |
getType(java.lang.String localName) |
java.util.Map<java.lang.String,XSType> |
getTypes()
|
java.util.Iterator<XSAttGroupDecl> |
iterateAttGroupDecls() |
java.util.Iterator<XSAttributeDecl> |
iterateAttributeDecls() |
java.util.Iterator<XSComplexType> |
iterateComplexTypes() |
java.util.Iterator<XSElementDecl> |
iterateElementDecls() |
java.util.Iterator<XSModelGroupDecl> |
iterateModelGroupDecls() |
java.util.Iterator<XSNotation> |
iterateNotations() |
java.util.Iterator<XSSimpleType> |
iterateSimpleTypes() |
java.util.Iterator<XSType> |
iterateTypes() |
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, select, selectSingle, visit
java.lang.String getTargetNamespace()
java.util.Map<java.lang.String,XSAttributeDecl> getAttributeDecls()
XSAttributeDecl
s in this schema
keyed by their local names.java.util.Iterator<XSAttributeDecl> iterateAttributeDecls()
XSAttributeDecl getAttributeDecl(java.lang.String localName)
java.util.Map<java.lang.String,XSElementDecl> getElementDecls()
XSElementDecl
s in this schema.java.util.Iterator<XSElementDecl> iterateElementDecls()
XSElementDecl getElementDecl(java.lang.String localName)
java.util.Map<java.lang.String,XSAttGroupDecl> getAttGroupDecls()
XSAttGroupDecl
s in this schema.java.util.Iterator<XSAttGroupDecl> iterateAttGroupDecls()
XSAttGroupDecl getAttGroupDecl(java.lang.String localName)
java.util.Map<java.lang.String,XSModelGroupDecl> getModelGroupDecls()
XSModelGroupDecl
s in this schema.java.util.Iterator<XSModelGroupDecl> iterateModelGroupDecls()
XSModelGroupDecl getModelGroupDecl(java.lang.String localName)
java.util.Map<java.lang.String,XSType> getTypes()
java.util.Iterator<XSType> iterateTypes()
XSType getType(java.lang.String localName)
java.util.Map<java.lang.String,XSSimpleType> getSimpleTypes()
XSSimpleType
s in this schema.java.util.Iterator<XSSimpleType> iterateSimpleTypes()
XSSimpleType getSimpleType(java.lang.String localName)
java.util.Map<java.lang.String,XSComplexType> getComplexTypes()
XSComplexType
s in this schema.java.util.Iterator<XSComplexType> iterateComplexTypes()
XSComplexType getComplexType(java.lang.String localName)
java.util.Map<java.lang.String,XSNotation> getNotations()
XSNotation
s in this schema.java.util.Iterator<XSNotation> iterateNotations()
XSNotation getNotation(java.lang.String localName)
java.util.Map<java.lang.String,XSIdentityConstraint> getIdentityConstraints()
XSIdentityConstraint
s in this schema,
keyed by their names.XSIdentityConstraint getIdentityConstraint(java.lang.String localName)
SchemaDocument getSourceDocument()
XSSchema
and not from XSComponent
,
there's something wrong with your code.XSSchema
is not necessarily defined in
one schema document (for example one schema can span across
many documents through <xs:include>s.),
so this method always returns null.getSourceDocument
in interface XSComponent
XSContentType
. This method also
returns null for XSSchema
.
For all other user-defined
components this method returns non-null, even if they are local.XSSchemaSet getRoot()
getRoot
in interface XSComponent