Package com.sun.xml.xsom.impl
Class SchemaSetImpl
- java.lang.Object
-
- com.sun.xml.xsom.impl.SchemaSetImpl
-
- All Implemented Interfaces:
XSSchemaSet
public class SchemaSetImpl extends Object implements XSSchemaSet
-
-
Field Summary
Fields Modifier and Type Field Description com.sun.xml.xsom.impl.SchemaSetImpl.AnySimpleTypeanySimpleTypecom.sun.xml.xsom.impl.SchemaSetImpl.AnyTypeanyTypeEmptyImplempty
-
Constructor Summary
Constructors Constructor Description SchemaSetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaImplcreateSchema(String targetNamespace, Locator location)Gets a reference to the existing schema or creates a new one if none exists yet.XSSimpleTypegetAnySimpleType()XSComplexTypegetAnyType()XSAttGroupDeclgetAttGroupDecl(String ns, String localName)XSAttributeDeclgetAttributeDecl(String ns, String localName)XSComplexTypegetComplexType(String ns, String localName)XSElementDeclgetElementDecl(String ns, String localName)XSContentTypegetEmpty()XSIdentityConstraintgetIdentityConstraint(String ns, String localName)XSModelGroupDeclgetModelGroupDecl(String ns, String localName)XSSchemagetSchema(int idx)XSSchemagetSchema(String targetNamespace)Collection<XSSchema>getSchemas()Gets allXSSchemas in a single collection.intgetSchemaSize()XSSimpleTypegetSimpleType(String ns, String localName)XSTypegetType(String ns, 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.
-
-
-
Field Detail
-
empty
public final EmptyImpl empty
-
anySimpleType
public final com.sun.xml.xsom.impl.SchemaSetImpl.AnySimpleType anySimpleType
-
anyType
public final com.sun.xml.xsom.impl.SchemaSetImpl.AnyType anyType
-
-
Method Detail
-
createSchema
public SchemaImpl createSchema(String targetNamespace, Locator location)
Gets a reference to the existing schema or creates a new one if none exists yet.
-
getSchemaSize
public int getSchemaSize()
- Specified by:
getSchemaSizein interfaceXSSchemaSet
-
getSchema
public XSSchema getSchema(String targetNamespace)
- Specified by:
getSchemain interfaceXSSchemaSet
-
getSchema
public XSSchema getSchema(int idx)
- Specified by:
getSchemain interfaceXSSchemaSet
-
iterateSchema
public Iterator<XSSchema> iterateSchema()
- Specified by:
iterateSchemain interfaceXSSchemaSet
-
getSchemas
public final Collection<XSSchema> getSchemas()
Description copied from interface:XSSchemaSetGets allXSSchemas in a single collection.- Specified by:
getSchemasin interfaceXSSchemaSet
-
getType
public XSType getType(String ns, String localName)
- Specified by:
getTypein interfaceXSSchemaSet
-
getSimpleType
public XSSimpleType getSimpleType(String ns, String localName)
- Specified by:
getSimpleTypein interfaceXSSchemaSet
-
getElementDecl
public XSElementDecl getElementDecl(String ns, String localName)
- Specified by:
getElementDeclin interfaceXSSchemaSet
-
getAttributeDecl
public XSAttributeDecl getAttributeDecl(String ns, String localName)
- Specified by:
getAttributeDeclin interfaceXSSchemaSet
-
getModelGroupDecl
public XSModelGroupDecl getModelGroupDecl(String ns, String localName)
- Specified by:
getModelGroupDeclin interfaceXSSchemaSet
-
getAttGroupDecl
public XSAttGroupDecl getAttGroupDecl(String ns, String localName)
- Specified by:
getAttGroupDeclin interfaceXSSchemaSet
-
getComplexType
public XSComplexType getComplexType(String ns, String localName)
- Specified by:
getComplexTypein interfaceXSSchemaSet
-
getIdentityConstraint
public XSIdentityConstraint getIdentityConstraint(String ns, String localName)
- Specified by:
getIdentityConstraintin interfaceXSSchemaSet
-
iterateElementDecls
public Iterator<XSElementDecl> iterateElementDecls()
Description copied from interface:XSSchemaSetIterates all element declarations in all the schemas.- Specified by:
iterateElementDeclsin interfaceXSSchemaSet
-
iterateTypes
public Iterator<XSType> iterateTypes()
Description copied from interface:XSSchemaSetIterates all type definitions in all the schemas.- Specified by:
iterateTypesin interfaceXSSchemaSet
-
iterateAttributeDecls
public Iterator<XSAttributeDecl> iterateAttributeDecls()
Description copied from interface:XSSchemaSetIterates all atribute declarations in all the schemas.- Specified by:
iterateAttributeDeclsin interfaceXSSchemaSet
-
iterateAttGroupDecls
public Iterator<XSAttGroupDecl> iterateAttGroupDecls()
Description copied from interface:XSSchemaSetIterates all attribute group declarations in all the schemas.- Specified by:
iterateAttGroupDeclsin interfaceXSSchemaSet
-
iterateModelGroupDecls
public Iterator<XSModelGroupDecl> iterateModelGroupDecls()
Description copied from interface:XSSchemaSetIterates all model group declarations in all the schemas.- Specified by:
iterateModelGroupDeclsin interfaceXSSchemaSet
-
iterateSimpleTypes
public Iterator<XSSimpleType> iterateSimpleTypes()
Description copied from interface:XSSchemaSetIterates all simple type definitions in all the schemas.- Specified by:
iterateSimpleTypesin interfaceXSSchemaSet
-
iterateComplexTypes
public Iterator<XSComplexType> iterateComplexTypes()
Description copied from interface:XSSchemaSetIterates all complex type definitions in all the schemas.- Specified by:
iterateComplexTypesin interfaceXSSchemaSet
-
iterateNotations
public Iterator<XSNotation> iterateNotations()
Description copied from interface:XSSchemaSetIterates all notation declarations in all the schemas.- Specified by:
iterateNotationsin interfaceXSSchemaSet
-
iterateIdentityConstraints
public Iterator<XSIdentityConstraint> iterateIdentityConstraints()
Description copied from interface:XSSchemaSetIterates all identity constraints in all the schemas.- Specified by:
iterateIdentityConstraintsin interfaceXSSchemaSet
-
select
public Collection<XSComponent> select(String scd, NamespaceContext nsContext)
Description copied from interface:XSSchemaSetEvaluates a schema component designator against this schema component and returns the resulting schema components.- Specified by:
selectin interfaceXSSchemaSet- 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.
-
selectSingle
public XSComponent selectSingle(String scd, NamespaceContext nsContext)
Description copied from interface:XSSchemaSetEvaluates a schema component designator against this schema component and returns the first resulting schema component.- Specified by:
selectSinglein interfaceXSSchemaSet- 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.
-
getEmpty
public XSContentType getEmpty()
- Specified by:
getEmptyin interfaceXSSchemaSet
-
getAnySimpleType
public XSSimpleType getAnySimpleType()
- Specified by:
getAnySimpleTypein interfaceXSSchemaSet
-
getAnyType
public XSComplexType getAnyType()
- Specified by:
getAnyTypein interfaceXSSchemaSet
-
-