Package com.ibm.wsdl.extensions.schema
Class SchemaImpl
java.lang.Object
com.ibm.wsdl.extensions.schema.SchemaImpl
- All Implemented Interfaces:
java.io.Serializable
,ExtensibilityElement
,Schema
This class is used to wrap schema elements. It holds the DOM Element to the
<schema>
element.- Author:
- Jeremy Hughes <hughesj@uk.ibm.com>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.w3c.dom.Element
protected QName
protected java.lang.Boolean
static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addImport
(SchemaImport importSchema) Add an import to this LightWeightSchemavoid
addInclude
(SchemaReference includeSchema) Add an include to this LightWeightSchemavoid
addRedefine
(SchemaReference redefineSchema) Add a redefine to this LightWeightSchemaCreate a new schema import.Create a new schema reference to represent an include.Create a new schema reference to represent a redefine.java.lang.String
Get the document base URI of this schemaorg.w3c.dom.Element
Get the DOM Element that represents this schema element.Get the type of this extensibility element.java.util.Map
Get a map of lists containing all the imports defined here.java.util.List
Get list of includes defined here.java.util.List
Get a list containing all of the redefines defined here.java.lang.Boolean
Get whether or not the semantics of this extension are required.void
setDocumentBaseURI
(java.lang.String documentBaseURI) Set the document base URI of this schema definition.void
setElement
(org.w3c.dom.Element element) Set the DOM Element that represents this schema element.void
setElementType
(QName elementType) Set the type of this extensibility element.void
setRequired
(java.lang.Boolean required) Set whether or not the semantics of this extension are required.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
elementType
-
required
protected java.lang.Boolean required -
element
protected org.w3c.dom.Element element -
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SchemaImpl
public SchemaImpl()
-
-
Method Details
-
getImports
public java.util.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.- Specified by:
getImports
in interfaceSchema
- Returns:
- a Map of Lists of Import instances keyed off the import's namespace
-
createImport
Create a new schema import.- Specified by:
createImport
in interfaceSchema
- Returns:
- the newly created schema import
-
addImport
Add an import to this LightWeightSchema -
getIncludes
public java.util.List getIncludes()Get list of includes defined here.- Specified by:
getIncludes
in interfaceSchema
- Returns:
- a List of SchemaReference instances representing the schema includes.
-
createInclude
Description copied from interface:Schema
Create a new schema reference to represent an include.- Specified by:
createInclude
in interfaceSchema
- Returns:
- the newly created SchemaReference
-
addInclude
Description copied from interface:Schema
Add an include to this LightWeightSchema- Specified by:
addInclude
in interfaceSchema
- Parameters:
includeSchema
- The include to be added, represented as a SchemaReference
-
getRedefines
public java.util.List getRedefines()Description copied from interface:Schema
Get a list containing all of the redefines defined here. The list elements are schema references.- Specified by:
getRedefines
in interfaceSchema
- Returns:
- a list of schema references.
-
createRedefine
Description copied from interface:Schema
Create a new schema reference to represent a redefine.- Specified by:
createRedefine
in interfaceSchema
- Returns:
- the newly created SchemaReference
-
addRedefine
Description copied from interface:Schema
Add a redefine to this LightWeightSchema- Specified by:
addRedefine
in interfaceSchema
- Parameters:
redefineSchema
- The redefine to be added, represented as a SchemaReference
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setElementType
Set the type of this extensibility element.- Specified by:
setElementType
in interfaceExtensibilityElement
- Parameters:
elementType
- the type
-
getElementType
Get the type of this extensibility element.- Specified by:
getElementType
in interfaceExtensibilityElement
- Returns:
- the extensibility element's type
-
setRequired
public void setRequired(java.lang.Boolean required) Set whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.- Specified by:
setRequired
in interfaceExtensibilityElement
-
getRequired
public java.lang.Boolean getRequired()Get whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.- Specified by:
getRequired
in interfaceExtensibilityElement
-
setElement
public void setElement(org.w3c.dom.Element element) Set the DOM Element that represents this schema element.- Specified by:
setElement
in interfaceSchema
- Parameters:
element
- the DOM element representing this schema
-
getElement
public org.w3c.dom.Element getElement()Get the DOM Element that represents this schema element.- Specified by:
getElement
in interfaceSchema
- Returns:
- the DOM element representing this schema
-
setDocumentBaseURI
public void setDocumentBaseURI(java.lang.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).- Specified by:
setDocumentBaseURI
in interfaceSchema
- Parameters:
documentBaseURI
- the document base URI of this schema
-
getDocumentBaseURI
public java.lang.String getDocumentBaseURI()Get the document base URI of this schema- Specified by:
getDocumentBaseURI
in interfaceSchema
- Returns:
- the document base URI
-