Package com.sun.xml.xsom
Interface XSSchema
-
- All Superinterfaces:
XSComponent
- All Known Implementing Classes:
SchemaImpl
public interface XSSchema extends XSComponent
Schema. Container of declarations that belong to the same target namespace.- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
-
Method Summary
-
Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, select, selectSingle, visit
-
-
-
-
Method Detail
-
getTargetNamespace
String getTargetNamespace()
Gets the target namespace of the schema.- Returns:
- can be empty, but never be null.
-
getAttributeDecls
Map<String,XSAttributeDecl> getAttributeDecls()
Gets all theXSAttributeDecls in this schema keyed by their local names.
-
iterateAttributeDecls
Iterator<XSAttributeDecl> iterateAttributeDecls()
-
getAttributeDecl
XSAttributeDecl getAttributeDecl(String localName)
-
getElementDecls
Map<String,XSElementDecl> getElementDecls()
Gets all theXSElementDecls in this schema.
-
iterateElementDecls
Iterator<XSElementDecl> iterateElementDecls()
-
getElementDecl
XSElementDecl getElementDecl(String localName)
-
getAttGroupDecls
Map<String,XSAttGroupDecl> getAttGroupDecls()
Gets all theXSAttGroupDecls in this schema.
-
iterateAttGroupDecls
Iterator<XSAttGroupDecl> iterateAttGroupDecls()
-
getAttGroupDecl
XSAttGroupDecl getAttGroupDecl(String localName)
-
getModelGroupDecls
Map<String,XSModelGroupDecl> getModelGroupDecls()
Gets all theXSModelGroupDecls in this schema.
-
iterateModelGroupDecls
Iterator<XSModelGroupDecl> iterateModelGroupDecls()
-
getModelGroupDecl
XSModelGroupDecl getModelGroupDecl(String localName)
-
getSimpleTypes
Map<String,XSSimpleType> getSimpleTypes()
Gets all theXSSimpleTypes in this schema.
-
iterateSimpleTypes
Iterator<XSSimpleType> iterateSimpleTypes()
-
getSimpleType
XSSimpleType getSimpleType(String localName)
-
getComplexTypes
Map<String,XSComplexType> getComplexTypes()
Gets all theXSComplexTypes in this schema.
-
iterateComplexTypes
Iterator<XSComplexType> iterateComplexTypes()
-
getComplexType
XSComplexType getComplexType(String localName)
-
getNotations
Map<String,XSNotation> getNotations()
Gets all theXSNotations in this schema.
-
iterateNotations
Iterator<XSNotation> iterateNotations()
-
getNotation
XSNotation getNotation(String localName)
-
getIdentityConstraints
Map<String,XSIdentityConstraint> getIdentityConstraints()
Gets all theXSIdentityConstraints in this schema, keyed by their names.
-
getIdentityConstraint
XSIdentityConstraint getIdentityConstraint(String localName)
Gets the identity constraint of the given name, or null if not found.
-
getSourceDocument
SchemaDocument getSourceDocument()
Deprecated.Since this method always returns null, if you are calling this method fromXSSchemaand not fromXSComponent, there's something wrong with your code.Sine anXSSchemais 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.- Specified by:
getSourceDocumentin interfaceXSComponent- Returns:
- null for components that are built-in to XML Schema, such
as anyType, or "empty"
XSContentType. This method also returns null forXSSchema. For all other user-defined components this method returns non-null, even if they are local.
-
getRoot
XSSchemaSet getRoot()
Gets the root schema set that includes this schema.- Specified by:
getRootin interfaceXSComponent- Returns:
- never null.
-
-