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 theXSAttGroupDecl
s in this schema.getAttributeDecl
(String localName) Gets all theXSAttributeDecl
s in this schema keyed by their local names.getComplexType
(String localName) Gets all theXSComplexType
s in this schema.getElementDecl
(String localName) Gets all theXSElementDecl
s in this schema.getIdentityConstraint
(String localName) Gets the identity constraint of the given name, or null if not found.Gets all theXSIdentityConstraint
s in this schema, keyed by their names.getModelGroupDecl
(String localName) Gets all theXSModelGroupDecl
s in this schema.getNotation
(String localName) Gets all theXSNotation
s in this schema.getRoot()
Gets the root schema set that includes this schema.getSimpleType
(String localName) Gets all theXSSimpleType
s 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 theXSAttributeDecl
s in this schema keyed by their local names. -
iterateAttributeDecls
Iterator<XSAttributeDecl> iterateAttributeDecls() -
getAttributeDecl
-
getElementDecls
Map<String,XSElementDecl> getElementDecls()Gets all theXSElementDecl
s in this schema. -
iterateElementDecls
Iterator<XSElementDecl> iterateElementDecls() -
getElementDecl
-
getAttGroupDecls
Map<String,XSAttGroupDecl> getAttGroupDecls()Gets all theXSAttGroupDecl
s in this schema. -
iterateAttGroupDecls
Iterator<XSAttGroupDecl> iterateAttGroupDecls() -
getAttGroupDecl
-
getModelGroupDecls
Map<String,XSModelGroupDecl> getModelGroupDecls()Gets all theXSModelGroupDecl
s in this schema. -
iterateModelGroupDecls
Iterator<XSModelGroupDecl> iterateModelGroupDecls() -
getModelGroupDecl
-
getTypes
-
iterateTypes
-
getType
-
getSimpleTypes
Map<String,XSSimpleType> getSimpleTypes()Gets all theXSSimpleType
s in this schema. -
iterateSimpleTypes
Iterator<XSSimpleType> iterateSimpleTypes() -
getSimpleType
-
getComplexTypes
Map<String,XSComplexType> getComplexTypes()Gets all theXSComplexType
s in this schema. -
iterateComplexTypes
Iterator<XSComplexType> iterateComplexTypes() -
getComplexType
-
getNotations
Map<String,XSNotation> getNotations()Gets all theXSNotation
s in this schema. -
iterateNotations
Iterator<XSNotation> iterateNotations() -
getNotation
-
getIdentityConstraints
Map<String,XSIdentityConstraint> getIdentityConstraints()Gets all theXSIdentityConstraint
s 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 fromXSSchema
and not fromXSComponent
, there's something wrong with your code.Sine anXSSchema
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.- Specified by:
getSourceDocument
in 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:
getRoot
in interfaceXSComponent
- Returns:
- never null.
-
XSSchema
and not fromXSComponent
, there's something wrong with your code.