Package com.sun.xml.xsom
Interface XSSchemaSet
-
- All Known Implementing Classes:
SchemaSetImpl
public interface XSSchemaSetSet ofXSSchemaobjects.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XSSimpleTypegetAnySimpleType()XSComplexTypegetAnyType()XSAttGroupDeclgetAttGroupDecl(String namespaceURI, String localName)XSAttributeDeclgetAttributeDecl(String namespaceURI, String localName)XSComplexTypegetComplexType(String namespaceURI, String localName)XSElementDeclgetElementDecl(String namespaceURI, String localName)XSContentTypegetEmpty()XSIdentityConstraintgetIdentityConstraint(String namespaceURI, String localName)XSModelGroupDeclgetModelGroupDecl(String namespaceURI, String localName)XSSchemagetSchema(int idx)XSSchemagetSchema(String targetNamespace)Collection<XSSchema>getSchemas()Gets allXSSchemas in a single collection.intgetSchemaSize()XSSimpleTypegetSimpleType(String namespaceURI, String localName)XSTypegetType(String namespaceURI, String localName)Iterator<XSAttGroupDecl>iterateAttGroupDecls()Iterates all attribute group declarations in all the schemas.Iterator<XSAttributeDecl>iterateAttributeDecls()Iterates all atribute declarations in all the schemas.Iterator<XSComplexType>iterateComplexTypes()Iterates all complex type definitions in all the schemas.Iterator<XSElementDecl>iterateElementDecls()Iterates all element declarations in all the schemas.Iterator<XSIdentityConstraint>iterateIdentityConstraints()Iterates all identity constraints in all the schemas.Iterator<XSModelGroupDecl>iterateModelGroupDecls()Iterates all model group declarations in all the schemas.Iterator<XSNotation>iterateNotations()Iterates all notation declarations in all the schemas.Iterator<XSSchema>iterateSchema()Iterator<XSSimpleType>iterateSimpleTypes()Iterates all simple type definitions in all the schemas.Iterator<XSType>iterateTypes()Iterates all type definitions in all the schemas.Collection<XSComponent>select(String scd, NamespaceContext nsContext)Evaluates a schema component designator against this schema component and returns the resulting schema components.XSComponentselectSingle(String scd, NamespaceContext nsContext)Evaluates a schema component designator against this schema component and returns the first resulting schema component.
-
-
-
Method Detail
-
getSchema
XSSchema getSchema(int idx)
-
getSchemaSize
int getSchemaSize()
-
getSchemas
Collection<XSSchema> getSchemas()
Gets allXSSchemas in a single collection.
-
getSimpleType
XSSimpleType getSimpleType(String namespaceURI, String localName)
-
getAttributeDecl
XSAttributeDecl getAttributeDecl(String namespaceURI, String localName)
-
getElementDecl
XSElementDecl getElementDecl(String namespaceURI, String localName)
-
getModelGroupDecl
XSModelGroupDecl getModelGroupDecl(String namespaceURI, String localName)
-
getAttGroupDecl
XSAttGroupDecl getAttGroupDecl(String namespaceURI, String localName)
-
getComplexType
XSComplexType getComplexType(String namespaceURI, String localName)
-
getIdentityConstraint
XSIdentityConstraint getIdentityConstraint(String namespaceURI, String localName)
-
iterateElementDecls
Iterator<XSElementDecl> iterateElementDecls()
Iterates all element declarations 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
Collection<XSComponent> select(String scd, NamespaceContext nsContext)
Evaluates a schema component designator against this schema component and returns the resulting schema components.- Parameters:
scd- Schema component designator. SeeSCDfor 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
XSComponent selectSingle(String scd, NamespaceContext nsContext)
Evaluates a schema component designator against this schema component and returns the first resulting schema component.- Parameters:
scd- Schema component designator. SeeSCDfor 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.
-
-