Top Description Methods
com.sun.xml.xsom

public Interface XSSchema

extends XSComponent
Known Direct Implementers
com.sun.xml.xsom.impl.SchemaImpl
Imports
com.sun.xml.xsom.parser.SchemaDocument, java.util.Iterator, .Map

Schema. Container of declarations that belong to the same target namespace.
Author
Kohsuke Kawaguchi ([email protected])

Method Summary

Modifier and TypeMethod and Description
public XSAttGroupDecl
public Map<String, XSAttGroupDecl>
getAttGroupDecls()

Gets all the XSAttGroupDecls in this schema.

public XSAttributeDecl
public Map<String, XSAttributeDecl>
getAttributeDecls()

Gets all the XSAttributeDecls in this schema keyed by their local names.

public XSComplexType
public Map<String, XSComplexType>
getComplexTypes()

Gets all the XSComplexTypes in this schema.

public XSElementDecl
public Map<String, XSElementDecl>
getElementDecls()

Gets all the XSElementDecls in this schema.

public XSIdentityConstraint
getIdentityConstraint(String localName)

Gets the identity constraint of the given name, or null if not found.

public Map<String, XSIdentityConstraint>
getIdentityConstraints()

Gets all the XSIdentityConstraints in this schema, keyed by their names.

public XSModelGroupDecl
public Map<String, XSModelGroupDecl>
getModelGroupDecls()

Gets all the XSModelGroupDecls in this schema.

public XSNotation
getNotation(String localName)

public Map<String, XSNotation>
getNotations()

Gets all the XSNotations in this schema.

public XSSchemaSet

Returns:

never null.
getRoot
()

Redeclares com.sun.xml.xsom.XSComponent.getRoot.

Gets the root schema set that includes this schema.

public XSSimpleType
getSimpleType(String localName)

public Map<String, XSSimpleType>
getSimpleTypes()

Gets all the XSSimpleTypes in this schema.

public SchemaDocument
getSourceDocument()

Redeclares com.sun.xml.xsom.XSComponent.getSourceDocument.

Deprecated since 2.3. Since this method always returns null, if you are calling this method from and not from XSComponent, there's something wrong with your code.

Sine an is not necessarily defined in one schema document (for example one schema can span across many documents through <xs:include>s.), so this method always returns null.

public String

Returns:

can be empty, but never be null.
getTargetNamespace
()

Gets the target namespace of the schema.

public XSType
getType(String localName)

public Map<String, XSType>
getTypes()

Gets all the XSTypes in this schema (union of getSimpleTypes() and getComplexTypes()

public Iterator<XSAttGroupDecl>
public Iterator<XSAttributeDecl>
public Iterator<XSComplexType>
public Iterator<XSElementDecl>
public Iterator<XSModelGroupDecl>
public Iterator<XSNotation>
public Iterator<XSSimpleType>
public Iterator<XSType>
Inherited from com.sun.xml.xsom.XSComponent:
applygetAnnotationgetAnnotationgetForeignAttributegetForeignAttributesgetLocatorgetOwnerSchemaselectselectSinglevisit

Method Detail

getAttGroupDeclback to summary
public XSAttGroupDecl getAttGroupDecl(String localName)
getAttGroupDeclsback to summary
public Map<String, XSAttGroupDecl> getAttGroupDecls()

Gets all the XSAttGroupDecls in this schema.

getAttributeDeclback to summary
public XSAttributeDecl getAttributeDecl(String localName)
getAttributeDeclsback to summary
public Map<String, XSAttributeDecl> getAttributeDecls()

Gets all the XSAttributeDecls in this schema keyed by their local names.

getComplexTypeback to summary
public XSComplexType getComplexType(String localName)
getComplexTypesback to summary
public Map<String, XSComplexType> getComplexTypes()

Gets all the XSComplexTypes in this schema.

getElementDeclback to summary
public XSElementDecl getElementDecl(String localName)
getElementDeclsback to summary
public Map<String, XSElementDecl> getElementDecls()

Gets all the XSElementDecls in this schema.

getIdentityConstraintback to summary
public XSIdentityConstraint getIdentityConstraint(String localName)

Gets the identity constraint of the given name, or null if not found.

getIdentityConstraintsback to summary
public Map<String, XSIdentityConstraint> getIdentityConstraints()

Gets all the XSIdentityConstraints in this schema, keyed by their names.

getModelGroupDeclback to summary
public XSModelGroupDecl getModelGroupDecl(String localName)
getModelGroupDeclsback to summary
public Map<String, XSModelGroupDecl> getModelGroupDecls()

Gets all the XSModelGroupDecls in this schema.

getNotationback to summary
public XSNotation getNotation(String localName)
getNotationsback to summary
public Map<String, XSNotation> getNotations()

Gets all the XSNotations in this schema.

getRootback to summary
public XSSchemaSet getRoot()

Redeclares com.sun.xml.xsom.XSComponent.getRoot.

Gets the root schema set that includes this schema.

Returns:XSSchemaSet

never null.

getSimpleTypeback to summary
public XSSimpleType getSimpleType(String localName)
getSimpleTypesback to summary
public Map<String, XSSimpleType> getSimpleTypes()

Gets all the XSSimpleTypes in this schema.

getSourceDocumentback to summary
public SchemaDocument getSourceDocument()

Redeclares com.sun.xml.xsom.XSComponent.getSourceDocument.

Deprecated

since 2.3.

Since this method always returns null, if you are calling this method from and not from XSComponent, there's something wrong with your code.

Sine an is not necessarily defined in one schema document (for example one schema can span across many documents through <xs:include>s.), so this method always returns null.

Annotations
@Deprecated
since:2.3
getTargetNamespaceback to summary
public String getTargetNamespace()

Gets the target namespace of the schema.

Returns:String

can be empty, but never be null.

getTypeback to summary
public XSType getType(String localName)
getTypesback to summary
public Map<String, XSType> getTypes()

Gets all the XSTypes in this schema (union of getSimpleTypes() and getComplexTypes()

iterateAttGroupDeclsback to summary
public Iterator<XSAttGroupDecl> iterateAttGroupDecls()
iterateAttributeDeclsback to summary
public Iterator<XSAttributeDecl> iterateAttributeDecls()
iterateComplexTypesback to summary
public Iterator<XSComplexType> iterateComplexTypes()
iterateElementDeclsback to summary
public Iterator<XSElementDecl> iterateElementDecls()
iterateModelGroupDeclsback to summary
public Iterator<XSModelGroupDecl> iterateModelGroupDecls()
iterateNotationsback to summary
public Iterator<XSNotation> iterateNotations()
iterateSimpleTypesback to summary
public Iterator<XSSimpleType> iterateSimpleTypes()
iterateTypesback to summary
public Iterator<XSType> iterateTypes()