Package com.sun.xml.xsom
Interface XSSchemaSet
- All Known Implementing Classes:
SchemaSetImpl
public interface XSSchemaSet
Set of
XSSchema
objects.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Method Summary
Modifier and TypeMethodDescriptiongetAttGroupDecl
(String namespaceURI, String localName) getAttributeDecl
(String namespaceURI, String localName) getComplexType
(String namespaceURI, String localName) getElementDecl
(String namespaceURI, String localName) getEmpty()
getIdentityConstraint
(String namespaceURI, String localName) getModelGroupDecl
(String namespaceURI, String localName) getSchema
(int idx) Gets allXSSchema
s in a single collection.int
getSimpleType
(String namespaceURI, String localName) Iterates all attribute group declarations in all the schemas.Iterates all atribute declarations in all the schemas.Iterates all complex type definitions in all the schemas.Iterates all element declarations in all the schemas.Iterates all identity constraints in all the schemas.Iterates all model group declarations in all the schemas.Iterates all notation declarations in all the schemas.Iterates all simple type definitions in all the schemas.Iterates all type definitions in all the schemas.select
(String scd, NamespaceContext nsContext) Evaluates a schema component designator against this schema component and returns the resulting schema components.selectSingle
(String scd, NamespaceContext nsContext) Evaluates a schema component designator against this schema component and returns the first resulting schema component.
-
Method Details
-
getSchema
-
getSchema
-
getSchemaSize
int getSchemaSize() -
iterateSchema
-
getSchemas
Collection<XSSchema> getSchemas()Gets allXSSchema
s in a single collection. -
getType
-
getSimpleType
-
getAttributeDecl
-
getElementDecl
-
getModelGroupDecl
-
getAttGroupDecl
-
getComplexType
-
getIdentityConstraint
-
iterateElementDecls
Iterator<XSElementDecl> iterateElementDecls()Iterates all element declarations in all the schemas. -
iterateTypes
Iterates all type definitions in all the schemas. -
iterateAttributeDecls
Iterator<XSAttributeDecl> iterateAttributeDecls()Iterates all atribute declarations in all the schemas. -
iterateAttGroupDecls
Iterator<XSAttGroupDecl> iterateAttGroupDecls()Iterates all attribute group declarations in all the schemas. -
iterateModelGroupDecls
Iterator<XSModelGroupDecl> iterateModelGroupDecls()Iterates all model group declarations in all the schemas. -
iterateSimpleTypes
Iterator<XSSimpleType> iterateSimpleTypes()Iterates all simple type definitions in all the schemas. -
iterateComplexTypes
Iterator<XSComplexType> iterateComplexTypes()Iterates all complex type definitions in all the schemas. -
iterateNotations
Iterator<XSNotation> iterateNotations()Iterates all notation declarations in all the schemas. -
iterateIdentityConstraints
Iterator<XSIdentityConstraint> iterateIdentityConstraints()Iterates all identity constraints in all the schemas. -
getAnyType
XSComplexType getAnyType() -
getAnySimpleType
XSSimpleType getAnySimpleType() -
getEmpty
XSContentType getEmpty() -
select
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:
IllegalArgumentException
- if SCD is syntactically incorrect.
-
selectSingle
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:
IllegalArgumentException
- if SCD is syntactically incorrect.
-