com.ibm.wsdl.extensions.schema
Class SchemaImpl
java.lang.Object
com.ibm.wsdl.extensions.schema.SchemaImpl
- ExtensibilityElement, Schema, Serializable
public class SchemaImpl
extends java.lang.Object
This class is used to wrap schema elements. It holds the DOM Element to the
<schema>
element.
element
protected Element element
elementType
protected QName elementType
required
protected Boolean required
serialVersionUID
public static final long serialVersionUID
addImport
public void addImport(SchemaImport importSchema)
Add an import to this LightWeightSchema
- addImport in interface Schema
importSchema
- the import to be added
addInclude
public void addInclude(SchemaReference includeSchema)
Add an include to this LightWeightSchema
- addInclude in interface Schema
includeSchema
- The include to be added, represented as a SchemaReference
addRedefine
public void addRedefine(SchemaReference redefineSchema)
Add a redefine to this LightWeightSchema
- addRedefine in interface Schema
redefineSchema
- The redefine to be added, represented as a SchemaReference
createInclude
public SchemaReference createInclude()
Create a new schema reference to represent an include.
- createInclude in interface Schema
- the newly created SchemaReference
createRedefine
public SchemaReference createRedefine()
Create a new schema reference to represent a redefine.
- createRedefine in interface Schema
- the newly created SchemaReference
getDocumentBaseURI
public String getDocumentBaseURI()
Get the document base URI of this schema
- getDocumentBaseURI in interface Schema
getElement
public Element getElement()
Get the DOM Element that represents this schema element.
- getElement in interface Schema
- the DOM element representing this schema
getImports
public Map getImports()
Get a map of lists containing all the imports defined here. The map's keys
are Strings representing the namespace URIs, and the map's values are
lists. There is one list for each namespace URI for which imports have been
defined.
- getImports in interface Schema
- a Map of Lists of Import instances keyed off the import's namespace
getIncludes
public List getIncludes()
Get list of includes defined here.
- getIncludes in interface Schema
- a List of SchemaReference instances representing the schema
includes.
getRedefines
public List getRedefines()
Get a list containing all of the redefines defined here.
The list elements are schema references.
- getRedefines in interface Schema
- a list of schema references.
getRequired
public Boolean getRequired()
Get whether or not the semantics of this extension
are required. Relates to the wsdl:required attribute.
- getRequired in interface ExtensibilityElement
setDocumentBaseURI
public void setDocumentBaseURI(String documentBaseURI)
Set the document base URI of this schema definition. Can be used to
represent the origin of the schema, and can be exploited when resolving
relative URIs (e.g. in <import>s).
- setDocumentBaseURI in interface Schema
documentBaseURI
- the document base URI of this schema
setElement
public void setElement(Element element)
Set the DOM Element that represents this schema element.
- setElement in interface Schema
element
- the DOM element representing this schema
setRequired
public void setRequired(Boolean required)
Set whether or not the semantics of this extension
are required. Relates to the wsdl:required attribute.
- setRequired in interface ExtensibilityElement
toString
public String toString()
Copyright B) 2003,2006 IBM. All Rights Reserved.