Top Description Methods
com.sun.xml.xsom

public Interface XSSchemaSet

Known Direct Implementers
com.sun.xml.xsom.impl.SchemaSetImpl
Imports
javax.xml.namespace.NamespaceContext, java.util.Iterator, .Collection

Set of XSSchema objects.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public XSSimpleType
public XSComplexType
public XSAttGroupDecl
getAttGroupDecl(String namespaceURI, String localName)

public XSAttributeDecl
getAttributeDecl(String namespaceURI, String localName)

public XSComplexType
getComplexType(String namespaceURI, String localName)

public XSElementDecl
getElementDecl(String namespaceURI, String localName)

public XSContentType
public XSIdentityConstraint
getIdentityConstraint(String namespaceURI, String localName)

public XSModelGroupDecl
getModelGroupDecl(String namespaceURI, String localName)

public XSSchema
getSchema(String targetNamespace)

public XSSchema
getSchema(int idx)

public Collection<XSSchema>
getSchemas()

Gets all XSSchemas in a single collection.

public int
public XSSimpleType
getSimpleType(String namespaceURI, String localName)

public XSType
getType(String namespaceURI, String localName)

public Iterator<XSAttGroupDecl>
iterateAttGroupDecls()

Iterates all attribute group declarations in all the schemas.

public Iterator<XSAttributeDecl>
iterateAttributeDecls()

Iterates all atribute declarations in all the schemas.

public Iterator<XSComplexType>
iterateComplexTypes()

Iterates all complex type definitions in all the schemas.

public Iterator<XSElementDecl>
iterateElementDecls()

Iterates all element declarations in all the schemas.

public Iterator<XSIdentityConstraint>
iterateIdentityConstraints()

Iterates all identity constraints in all the schemas.

public Iterator<XSModelGroupDecl>
iterateModelGroupDecls()

Iterates all model group declarations in all the schemas.

public Iterator<XSNotation>
iterateNotations()

Iterates all notation declarations in all the schemas.

public Iterator<XSSchema>
public Iterator<XSSimpleType>
iterateSimpleTypes()

Iterates all simple type definitions in all the schemas.

public Iterator<XSType>
iterateTypes()

Iterates all type definitions in all the schemas.

public Collection<XSComponent>

Returns:

Can be empty but never null.
select
(String
Schema component designator. See SCD for more details.
scd
,
NamespaceContext
The namespace context in which SCD is evaluated. Cannot be null.
nsContext
)

Evaluates a schema component designator against this schema component and returns the resulting schema components.

public XSComponent

Returns:

null if the SCD didn't match anything. If the SCD matched more than one node, the first one will be returned.
selectSingle
(String
Schema component designator. See SCD for more details.
scd
,
NamespaceContext
The namespace context in which SCD is evaluated. Cannot be null.
nsContext
)

Evaluates a schema component designator against this schema component and returns the first resulting schema component.

Method Detail

getAnySimpleTypeback to summary
public XSSimpleType getAnySimpleType()
getAnyTypeback to summary
public XSComplexType getAnyType()
getAttGroupDeclback to summary
public XSAttGroupDecl getAttGroupDecl(String namespaceURI, String localName)
getAttributeDeclback to summary
public XSAttributeDecl getAttributeDecl(String namespaceURI, String localName)
getComplexTypeback to summary
public XSComplexType getComplexType(String namespaceURI, String localName)
getElementDeclback to summary
public XSElementDecl getElementDecl(String namespaceURI, String localName)
getEmptyback to summary
public XSContentType getEmpty()
getIdentityConstraintback to summary
public XSIdentityConstraint getIdentityConstraint(String namespaceURI, String localName)
getModelGroupDeclback to summary
public XSModelGroupDecl getModelGroupDecl(String namespaceURI, String localName)
getSchemaback to summary
public XSSchema getSchema(String targetNamespace)
getSchemaback to summary
public XSSchema getSchema(int idx)
getSchemasback to summary
public Collection<XSSchema> getSchemas()

Gets all XSSchemas in a single collection.

getSchemaSizeback to summary
public int getSchemaSize()
getSimpleTypeback to summary
public XSSimpleType getSimpleType(String namespaceURI, String localName)
getTypeback to summary
public XSType getType(String namespaceURI, String localName)
iterateAttGroupDeclsback to summary
public Iterator<XSAttGroupDecl> iterateAttGroupDecls()

Iterates all attribute group declarations in all the schemas.

iterateAttributeDeclsback to summary
public Iterator<XSAttributeDecl> iterateAttributeDecls()

Iterates all atribute declarations in all the schemas.

iterateComplexTypesback to summary
public Iterator<XSComplexType> iterateComplexTypes()

Iterates all complex type definitions in all the schemas.

iterateElementDeclsback to summary
public Iterator<XSElementDecl> iterateElementDecls()

Iterates all element declarations in all the schemas.

iterateIdentityConstraintsback to summary
public Iterator<XSIdentityConstraint> iterateIdentityConstraints()

Iterates all identity constraints in all the schemas.

iterateModelGroupDeclsback to summary
public Iterator<XSModelGroupDecl> iterateModelGroupDecls()

Iterates all model group declarations in all the schemas.

iterateNotationsback to summary
public Iterator<XSNotation> iterateNotations()

Iterates all notation declarations in all the schemas.

iterateSchemaback to summary
public Iterator<XSSchema> iterateSchema()
iterateSimpleTypesback to summary
public Iterator<XSSimpleType> iterateSimpleTypes()

Iterates all simple type definitions in all the schemas.

iterateTypesback to summary
public Iterator<XSType> iterateTypes()

Iterates all type definitions in all the schemas.

selectback to summary
public Collection<XSComponent> select(String scd, NamespaceContext nsContext)

Evaluates a schema component designator against this schema component and returns the resulting schema components.

Parameters
scd:String

Schema component designator. See SCD for more details.

nsContext:NamespaceContext

The namespace context in which SCD is evaluated. Cannot be null.

Returns:Collection<XSComponent>

Can be empty but never null.

Exceptions
IllegalArgumentException:
if SCD is syntactically incorrect.
selectSingleback to summary
public XSComponent selectSingle(String scd, NamespaceContext nsContext)

Evaluates a schema component designator against this schema component and returns the first resulting schema component.

Parameters
scd:String

Schema component designator. See SCD for more details.

nsContext:NamespaceContext

The namespace context in which SCD is evaluated. Cannot be null.

Returns:XSComponent

null if the SCD didn't match anything. If the SCD matched more than one node, the first one will be returned.

Exceptions
IllegalArgumentException:
if SCD is syntactically incorrect.