Package com.sun.xml.xsom
Interface XSSchemaSet
-
- All Known Implementing Classes:
SchemaSetImpl
public interface XSSchemaSet
Set ofXSSchema
objects.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XSSimpleType
getAnySimpleType()
XSComplexType
getAnyType()
XSAttGroupDecl
getAttGroupDecl(java.lang.String namespaceURI, java.lang.String localName)
XSAttributeDecl
getAttributeDecl(java.lang.String namespaceURI, java.lang.String localName)
XSComplexType
getComplexType(java.lang.String namespaceURI, java.lang.String localName)
XSElementDecl
getElementDecl(java.lang.String namespaceURI, java.lang.String localName)
XSContentType
getEmpty()
XSIdentityConstraint
getIdentityConstraint(java.lang.String namespaceURI, java.lang.String localName)
XSModelGroupDecl
getModelGroupDecl(java.lang.String namespaceURI, java.lang.String localName)
XSSchema
getSchema(int idx)
XSSchema
getSchema(java.lang.String targetNamespace)
java.util.Collection<XSSchema>
getSchemas()
Gets allXSSchema
s in a single collection.int
getSchemaSize()
XSSimpleType
getSimpleType(java.lang.String namespaceURI, java.lang.String localName)
XSType
getType(java.lang.String namespaceURI, java.lang.String localName)
java.util.Iterator<XSAttGroupDecl>
iterateAttGroupDecls()
Iterates all attribute group declarations in all the schemas.java.util.Iterator<XSAttributeDecl>
iterateAttributeDecls()
Iterates all atribute declarations in all the schemas.java.util.Iterator<XSComplexType>
iterateComplexTypes()
Iterates all complex type definitions in all the schemas.java.util.Iterator<XSElementDecl>
iterateElementDecls()
Iterates all element declarations in all the schemas.java.util.Iterator<XSIdentityConstraint>
iterateIdentityConstraints()
Iterates all identity constraints in all the schemas.java.util.Iterator<XSModelGroupDecl>
iterateModelGroupDecls()
Iterates all model group declarations in all the schemas.java.util.Iterator<XSNotation>
iterateNotations()
Iterates all notation declarations in all the schemas.java.util.Iterator<XSSchema>
iterateSchema()
java.util.Iterator<XSSimpleType>
iterateSimpleTypes()
Iterates all simple type definitions in all the schemas.java.util.Iterator<XSType>
iterateTypes()
Iterates all type definitions in all the schemas.java.util.Collection<XSComponent>
select(java.lang.String scd, javax.xml.namespace.NamespaceContext nsContext)
Evaluates a schema component designator against this schema component and returns the resulting schema components.XSComponent
selectSingle(java.lang.String scd, javax.xml.namespace.NamespaceContext nsContext)
Evaluates a schema component designator against this schema component and returns the first resulting schema component.
-
-
-
Method Detail
-
getSchema
XSSchema getSchema(java.lang.String targetNamespace)
-
getSchema
XSSchema getSchema(int idx)
-
getSchemaSize
int getSchemaSize()
-
iterateSchema
java.util.Iterator<XSSchema> iterateSchema()
-
getType
XSType getType(java.lang.String namespaceURI, java.lang.String localName)
-
getSimpleType
XSSimpleType getSimpleType(java.lang.String namespaceURI, java.lang.String localName)
-
getAttributeDecl
XSAttributeDecl getAttributeDecl(java.lang.String namespaceURI, java.lang.String localName)
-
getElementDecl
XSElementDecl getElementDecl(java.lang.String namespaceURI, java.lang.String localName)
-
getModelGroupDecl
XSModelGroupDecl getModelGroupDecl(java.lang.String namespaceURI, java.lang.String localName)
-
getAttGroupDecl
XSAttGroupDecl getAttGroupDecl(java.lang.String namespaceURI, java.lang.String localName)
-
getComplexType
XSComplexType getComplexType(java.lang.String namespaceURI, java.lang.String localName)
-
getIdentityConstraint
XSIdentityConstraint getIdentityConstraint(java.lang.String namespaceURI, java.lang.String localName)
-
iterateElementDecls
java.util.Iterator<XSElementDecl> iterateElementDecls()
Iterates all element declarations in all the schemas.
-
iterateTypes
java.util.Iterator<XSType> iterateTypes()
Iterates all type definitions in all the schemas.
-
iterateAttributeDecls
java.util.Iterator<XSAttributeDecl> iterateAttributeDecls()
Iterates all atribute declarations in all the schemas.
-
iterateAttGroupDecls
java.util.Iterator<XSAttGroupDecl> iterateAttGroupDecls()
Iterates all attribute group declarations in all the schemas.
-
iterateModelGroupDecls
java.util.Iterator<XSModelGroupDecl> iterateModelGroupDecls()
Iterates all model group declarations in all the schemas.
-
iterateSimpleTypes
java.util.Iterator<XSSimpleType> iterateSimpleTypes()
Iterates all simple type definitions in all the schemas.
-
iterateComplexTypes
java.util.Iterator<XSComplexType> iterateComplexTypes()
Iterates all complex type definitions in all the schemas.
-
iterateNotations
java.util.Iterator<XSNotation> iterateNotations()
Iterates all notation declarations in all the schemas.
-
iterateIdentityConstraints
java.util.Iterator<XSIdentityConstraint> iterateIdentityConstraints()
Iterates all identity constraints in all the schemas.
-
getAnyType
XSComplexType getAnyType()
-
getAnySimpleType
XSSimpleType getAnySimpleType()
-
getEmpty
XSContentType getEmpty()
-
select
java.util.Collection<XSComponent> select(java.lang.String scd, javax.xml.namespace.NamespaceContext nsContext)
Evaluates a schema component designator against this schema component and returns the resulting schema components.- Parameters:
scd
- Schema component designator. SeeSCD
for more details.nsContext
- The namespace context in which SCD is evaluated. Cannot be null.- Returns:
- Can be empty but never null.
- Throws:
java.lang.IllegalArgumentException
- if SCD is syntactically incorrect.
-
selectSingle
XSComponent selectSingle(java.lang.String scd, javax.xml.namespace.NamespaceContext nsContext)
Evaluates a schema component designator against this schema component and returns the first resulting schema component.- Parameters:
scd
- Schema component designator. SeeSCD
for more details.nsContext
- The namespace context in which SCD is evaluated. Cannot be null.- Returns:
- null if the SCD didn't match anything. If the SCD matched more than one node, the first one will be returned.
- Throws:
java.lang.IllegalArgumentException
- if SCD is syntactically incorrect.
-
-