Package com.sun.xml.xsom
Interface XSSchemaSet
-
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(java.lang.String namespaceURI, java.lang.String localName)XSAttributeDeclgetAttributeDecl(java.lang.String namespaceURI, java.lang.String localName)XSComplexTypegetComplexType(java.lang.String namespaceURI, java.lang.String localName)XSElementDeclgetElementDecl(java.lang.String namespaceURI, java.lang.String localName)XSContentTypegetEmpty()XSIdentityConstraintgetIdentityConstraint(java.lang.String namespaceURI, java.lang.String localName)XSModelGroupDeclgetModelGroupDecl(java.lang.String namespaceURI, java.lang.String localName)XSSchemagetSchema(int idx)XSSchemagetSchema(java.lang.String targetNamespace)java.util.Collection<XSSchema>getSchemas()Gets allXSSchemas in a single collection.intgetSchemaSize()XSSimpleTypegetSimpleType(java.lang.String namespaceURI, java.lang.String localName)XSTypegetType(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.XSComponentselectSingle(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. SeeSCDfor 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. 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:
java.lang.IllegalArgumentException- if SCD is syntactically incorrect.
-
-