Package com.sun.xml.xsom
Interface XSSchema
- All Superinterfaces:
XSComponent
- All Known Implementing Classes:
SchemaImpl
Schema.
Container of declarations that belong to the same target namespace.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
-
Method Summary
Modifier and TypeMethodDescriptiongetAttGroupDecl(String localName) Gets all theXSAttGroupDecls in this schema.getAttributeDecl(String localName) Gets all theXSAttributeDecls in this schema keyed by their local names.getComplexType(String localName) Gets all theXSComplexTypes in this schema.getElementDecl(String localName) Gets all theXSElementDecls in this schema.getIdentityConstraint(String localName) Gets the identity constraint of the given name, or null if not found.Gets all theXSIdentityConstraints in this schema, keyed by their names.getModelGroupDecl(String localName) Gets all theXSModelGroupDecls in this schema.getNotation(String localName) Gets all theXSNotations in this schema.getRoot()Gets the root schema set that includes this schema.getSimpleType(String localName) Gets all theXSSimpleTypes in this schema.Deprecated.Gets the target namespace of the schema.getTypes()Methods inherited from interface com.sun.xml.xsom.XSComponent
apply, getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, select, selectSingle, visit
-
Method Details
-
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
-
getElementDecls
Map<String,XSElementDecl> getElementDecls()Gets all theXSElementDecls in this schema. -
iterateElementDecls
Iterator<XSElementDecl> iterateElementDecls() -
getElementDecl
-
getAttGroupDecls
Map<String,XSAttGroupDecl> getAttGroupDecls()Gets all theXSAttGroupDecls in this schema. -
iterateAttGroupDecls
Iterator<XSAttGroupDecl> iterateAttGroupDecls() -
getAttGroupDecl
-
getModelGroupDecls
Map<String,XSModelGroupDecl> getModelGroupDecls()Gets all theXSModelGroupDecls in this schema. -
iterateModelGroupDecls
Iterator<XSModelGroupDecl> iterateModelGroupDecls() -
getModelGroupDecl
-
getTypes
-
iterateTypes
-
getType
-
getSimpleTypes
Map<String,XSSimpleType> getSimpleTypes()Gets all theXSSimpleTypes in this schema. -
iterateSimpleTypes
Iterator<XSSimpleType> iterateSimpleTypes() -
getSimpleType
-
getComplexTypes
Map<String,XSComplexType> getComplexTypes()Gets all theXSComplexTypes in this schema. -
iterateComplexTypes
Iterator<XSComplexType> iterateComplexTypes() -
getComplexType
-
getNotations
Map<String,XSNotation> getNotations()Gets all theXSNotations in this schema. -
iterateNotations
Iterator<XSNotation> iterateNotations() -
getNotation
-
getIdentityConstraints
Map<String,XSIdentityConstraint> getIdentityConstraints()Gets all theXSIdentityConstraints in this schema, keyed by their names. -
getIdentityConstraint
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.
-
XSSchemaand not fromXSComponent, there's something wrong with your code.