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 java.lang.Object implements XSSchemaSet
-
-
Field Summary
Fields Modifier and Type Field Description com.sun.xml.xsom.impl.SchemaSetImpl.AnySimpleType
anySimpleType
com.sun.xml.xsom.impl.SchemaSetImpl.AnyType
anyType
EmptyImpl
empty
-
Constructor Summary
Constructors Constructor Description SchemaSetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaImpl
createSchema(java.lang.String targetNamespace, org.xml.sax.Locator location)
Gets a reference to the existing schema or creates a new one if none exists yet.XSSimpleType
getAnySimpleType()
XSComplexType
getAnyType()
XSAttGroupDecl
getAttGroupDecl(java.lang.String ns, java.lang.String localName)
XSAttributeDecl
getAttributeDecl(java.lang.String ns, java.lang.String localName)
XSComplexType
getComplexType(java.lang.String ns, java.lang.String localName)
XSElementDecl
getElementDecl(java.lang.String ns, java.lang.String localName)
XSContentType
getEmpty()
XSIdentityConstraint
getIdentityConstraint(java.lang.String ns, java.lang.String localName)
XSModelGroupDecl
getModelGroupDecl(java.lang.String ns, 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 ns, java.lang.String localName)
XSType
getType(java.lang.String ns, 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.
-
-
-
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(java.lang.String targetNamespace, org.xml.sax.Locator location)
Gets a reference to the existing schema or creates a new one if none exists yet.
-
getSchemaSize
public int getSchemaSize()
- Specified by:
getSchemaSize
in interfaceXSSchemaSet
-
getSchema
public XSSchema getSchema(java.lang.String targetNamespace)
- Specified by:
getSchema
in interfaceXSSchemaSet
-
getSchema
public XSSchema getSchema(int idx)
- Specified by:
getSchema
in interfaceXSSchemaSet
-
iterateSchema
public java.util.Iterator<XSSchema> iterateSchema()
- Specified by:
iterateSchema
in interfaceXSSchemaSet
-
getSchemas
public final java.util.Collection<XSSchema> getSchemas()
Description copied from interface:XSSchemaSet
Gets allXSSchema
s in a single collection.- Specified by:
getSchemas
in interfaceXSSchemaSet
-
getType
public XSType getType(java.lang.String ns, java.lang.String localName)
- Specified by:
getType
in interfaceXSSchemaSet
-
getSimpleType
public XSSimpleType getSimpleType(java.lang.String ns, java.lang.String localName)
- Specified by:
getSimpleType
in interfaceXSSchemaSet
-
getElementDecl
public XSElementDecl getElementDecl(java.lang.String ns, java.lang.String localName)
- Specified by:
getElementDecl
in interfaceXSSchemaSet
-
getAttributeDecl
public XSAttributeDecl getAttributeDecl(java.lang.String ns, java.lang.String localName)
- Specified by:
getAttributeDecl
in interfaceXSSchemaSet
-
getModelGroupDecl
public XSModelGroupDecl getModelGroupDecl(java.lang.String ns, java.lang.String localName)
- Specified by:
getModelGroupDecl
in interfaceXSSchemaSet
-
getAttGroupDecl
public XSAttGroupDecl getAttGroupDecl(java.lang.String ns, java.lang.String localName)
- Specified by:
getAttGroupDecl
in interfaceXSSchemaSet
-
getComplexType
public XSComplexType getComplexType(java.lang.String ns, java.lang.String localName)
- Specified by:
getComplexType
in interfaceXSSchemaSet
-
getIdentityConstraint
public XSIdentityConstraint getIdentityConstraint(java.lang.String ns, java.lang.String localName)
- Specified by:
getIdentityConstraint
in interfaceXSSchemaSet
-
iterateElementDecls
public java.util.Iterator<XSElementDecl> iterateElementDecls()
Description copied from interface:XSSchemaSet
Iterates all element declarations in all the schemas.- Specified by:
iterateElementDecls
in interfaceXSSchemaSet
-
iterateTypes
public java.util.Iterator<XSType> iterateTypes()
Description copied from interface:XSSchemaSet
Iterates all type definitions in all the schemas.- Specified by:
iterateTypes
in interfaceXSSchemaSet
-
iterateAttributeDecls
public java.util.Iterator<XSAttributeDecl> iterateAttributeDecls()
Description copied from interface:XSSchemaSet
Iterates all atribute declarations in all the schemas.- Specified by:
iterateAttributeDecls
in interfaceXSSchemaSet
-
iterateAttGroupDecls
public java.util.Iterator<XSAttGroupDecl> iterateAttGroupDecls()
Description copied from interface:XSSchemaSet
Iterates all attribute group declarations in all the schemas.- Specified by:
iterateAttGroupDecls
in interfaceXSSchemaSet
-
iterateModelGroupDecls
public java.util.Iterator<XSModelGroupDecl> iterateModelGroupDecls()
Description copied from interface:XSSchemaSet
Iterates all model group declarations in all the schemas.- Specified by:
iterateModelGroupDecls
in interfaceXSSchemaSet
-
iterateSimpleTypes
public java.util.Iterator<XSSimpleType> iterateSimpleTypes()
Description copied from interface:XSSchemaSet
Iterates all simple type definitions in all the schemas.- Specified by:
iterateSimpleTypes
in interfaceXSSchemaSet
-
iterateComplexTypes
public java.util.Iterator<XSComplexType> iterateComplexTypes()
Description copied from interface:XSSchemaSet
Iterates all complex type definitions in all the schemas.- Specified by:
iterateComplexTypes
in interfaceXSSchemaSet
-
iterateNotations
public java.util.Iterator<XSNotation> iterateNotations()
Description copied from interface:XSSchemaSet
Iterates all notation declarations in all the schemas.- Specified by:
iterateNotations
in interfaceXSSchemaSet
-
iterateIdentityConstraints
public java.util.Iterator<XSIdentityConstraint> iterateIdentityConstraints()
Description copied from interface:XSSchemaSet
Iterates all identity constraints in all the schemas.- Specified by:
iterateIdentityConstraints
in interfaceXSSchemaSet
-
select
public java.util.Collection<XSComponent> select(java.lang.String scd, javax.xml.namespace.NamespaceContext nsContext)
Description copied from interface:XSSchemaSet
Evaluates a schema component designator against this schema component and returns the resulting schema components.- Specified by:
select
in interfaceXSSchemaSet
- 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.
-
selectSingle
public XSComponent selectSingle(java.lang.String scd, javax.xml.namespace.NamespaceContext nsContext)
Description copied from interface:XSSchemaSet
Evaluates a schema component designator against this schema component and returns the first resulting schema component.- Specified by:
selectSingle
in interfaceXSSchemaSet
- 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.
-
getEmpty
public XSContentType getEmpty()
- Specified by:
getEmpty
in interfaceXSSchemaSet
-
getAnySimpleType
public XSSimpleType getAnySimpleType()
- Specified by:
getAnySimpleType
in interfaceXSSchemaSet
-
getAnyType
public XSComplexType getAnyType()
- Specified by:
getAnyType
in interfaceXSSchemaSet
-
-