XSOM 20110809-redhat-3

com.sun.xml.xsom.impl
Class SchemaSetImpl

java.lang.Object
  extended by com.sun.xml.xsom.impl.SchemaSetImpl
All Implemented Interfaces:
XSSchemaSet

public class SchemaSetImpl
extends Object
implements XSSchemaSet


Field Summary
 com.sun.xml.xsom.impl.SchemaSetImpl.AnySimpleType anySimpleType
           
 com.sun.xml.xsom.impl.SchemaSetImpl.AnyType anyType
           
 EmptyImpl empty
           
 
Constructor Summary
SchemaSetImpl()
           
 
Method Summary
 SchemaImpl createSchema(String targetNamespace, Locator location)
          Gets a reference to the existing schema or creates a new one if none exists yet.
 XSSimpleType getAnySimpleType()
           
 XSComplexType getAnyType()
           
 XSAttGroupDecl getAttGroupDecl(String ns, String localName)
           
 XSAttributeDecl getAttributeDecl(String ns, String localName)
           
 XSComplexType getComplexType(String ns, String localName)
           
 XSElementDecl getElementDecl(String ns, String localName)
           
 XSContentType getEmpty()
           
 XSIdentityConstraint getIdentityConstraint(String ns, String localName)
           
 XSModelGroupDecl getModelGroupDecl(String ns, String localName)
           
 XSSchema getSchema(int idx)
           
 XSSchema getSchema(String targetNamespace)
           
 Collection<XSSchema> getSchemas()
          Gets all XSSchemas in a single collection.
 int getSchemaSize()
           
 XSSimpleType getSimpleType(String ns, String localName)
           
 XSType getType(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.
 XSComponent selectSingle(String scd, NamespaceContext nsContext)
          Evaluates a schema component designator against this schema component and returns the first resulting schema component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

SchemaSetImpl

public SchemaSetImpl()
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:
getSchemaSize in interface XSSchemaSet

getSchema

public XSSchema getSchema(String targetNamespace)
Specified by:
getSchema in interface XSSchemaSet

getSchema

public XSSchema getSchema(int idx)
Specified by:
getSchema in interface XSSchemaSet

iterateSchema

public Iterator<XSSchema> iterateSchema()
Specified by:
iterateSchema in interface XSSchemaSet

getSchemas

public final Collection<XSSchema> getSchemas()
Description copied from interface: XSSchemaSet
Gets all XSSchemas in a single collection.

Specified by:
getSchemas in interface XSSchemaSet

getType

public XSType getType(String ns,
                      String localName)
Specified by:
getType in interface XSSchemaSet

getSimpleType

public XSSimpleType getSimpleType(String ns,
                                  String localName)
Specified by:
getSimpleType in interface XSSchemaSet

getElementDecl

public XSElementDecl getElementDecl(String ns,
                                    String localName)
Specified by:
getElementDecl in interface XSSchemaSet

getAttributeDecl

public XSAttributeDecl getAttributeDecl(String ns,
                                        String localName)
Specified by:
getAttributeDecl in interface XSSchemaSet

getModelGroupDecl

public XSModelGroupDecl getModelGroupDecl(String ns,
                                          String localName)
Specified by:
getModelGroupDecl in interface XSSchemaSet

getAttGroupDecl

public XSAttGroupDecl getAttGroupDecl(String ns,
                                      String localName)
Specified by:
getAttGroupDecl in interface XSSchemaSet

getComplexType

public XSComplexType getComplexType(String ns,
                                    String localName)
Specified by:
getComplexType in interface XSSchemaSet

getIdentityConstraint

public XSIdentityConstraint getIdentityConstraint(String ns,
                                                  String localName)
Specified by:
getIdentityConstraint in interface XSSchemaSet

iterateElementDecls

public Iterator<XSElementDecl> iterateElementDecls()
Description copied from interface: XSSchemaSet
Iterates all element declarations in all the schemas.

Specified by:
iterateElementDecls in interface XSSchemaSet

iterateTypes

public Iterator<XSType> iterateTypes()
Description copied from interface: XSSchemaSet
Iterates all type definitions in all the schemas.

Specified by:
iterateTypes in interface XSSchemaSet

iterateAttributeDecls

public Iterator<XSAttributeDecl> iterateAttributeDecls()
Description copied from interface: XSSchemaSet
Iterates all atribute declarations in all the schemas.

Specified by:
iterateAttributeDecls in interface XSSchemaSet

iterateAttGroupDecls

public Iterator<XSAttGroupDecl> iterateAttGroupDecls()
Description copied from interface: XSSchemaSet
Iterates all attribute group declarations in all the schemas.

Specified by:
iterateAttGroupDecls in interface XSSchemaSet

iterateModelGroupDecls

public Iterator<XSModelGroupDecl> iterateModelGroupDecls()
Description copied from interface: XSSchemaSet
Iterates all model group declarations in all the schemas.

Specified by:
iterateModelGroupDecls in interface XSSchemaSet

iterateSimpleTypes

public Iterator<XSSimpleType> iterateSimpleTypes()
Description copied from interface: XSSchemaSet
Iterates all simple type definitions in all the schemas.

Specified by:
iterateSimpleTypes in interface XSSchemaSet

iterateComplexTypes

public Iterator<XSComplexType> iterateComplexTypes()
Description copied from interface: XSSchemaSet
Iterates all complex type definitions in all the schemas.

Specified by:
iterateComplexTypes in interface XSSchemaSet

iterateNotations

public Iterator<XSNotation> iterateNotations()
Description copied from interface: XSSchemaSet
Iterates all notation declarations in all the schemas.

Specified by:
iterateNotations in interface XSSchemaSet

iterateIdentityConstraints

public Iterator<XSIdentityConstraint> iterateIdentityConstraints()
Description copied from interface: XSSchemaSet
Iterates all identity constraints in all the schemas.

Specified by:
iterateIdentityConstraints in interface XSSchemaSet

select

public Collection<XSComponent> select(String scd,
                                      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 interface XSSchemaSet
Parameters:
scd - Schema component designator. See SCD 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(String scd,
                                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 interface XSSchemaSet
Parameters:
scd - Schema component designator. See SCD 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 interface XSSchemaSet

getAnySimpleType

public XSSimpleType getAnySimpleType()
Specified by:
getAnySimpleType in interface XSSchemaSet

getAnyType

public XSComplexType getAnyType()
Specified by:
getAnyType in interface XSSchemaSet

XSOM 20110809-redhat-3

Copyright © 2012 Oracle. All Rights Reserved.