com.ibm.wsdl.extensions.schema

Class SchemaImpl

Implemented Interfaces:
ExtensibilityElement, Schema, Serializable

public class SchemaImpl
extends java.lang.Object
implements Schema

This class is used to wrap schema elements. It holds the DOM Element to the <schema> element.
Author:
Jeremy Hughes
See Also:
SchemaSerializer, SchemaDeserializer

Field Summary

protected Element
element
protected QName
elementType
protected Boolean
required
static long
serialVersionUID

Method Summary

void
addImport(SchemaImport importSchema)
Add an import to this LightWeightSchema
void
addInclude(SchemaReference includeSchema)
Add an include to this LightWeightSchema
void
addRedefine(SchemaReference redefineSchema)
Add a redefine to this LightWeightSchema
SchemaImport
createImport()
Create a new schema import.
SchemaReference
createInclude()
Create a new schema reference to represent an include.
SchemaReference
createRedefine()
Create a new schema reference to represent a redefine.
String
getDocumentBaseURI()
Get the document base URI of this schema
Element
getElement()
Get the DOM Element that represents this schema element.
QName
getElementType()
Get the type of this extensibility element.
Map
getImports()
Get a map of lists containing all the imports defined here.
List
getIncludes()
Get list of includes defined here.
List
getRedefines()
Get a list containing all of the redefines defined here.
Boolean
getRequired()
Get whether or not the semantics of this extension are required.
void
setDocumentBaseURI(String documentBaseURI)
Set the document base URI of this schema definition.
void
setElement(Element element)
Set the DOM Element that represents this schema element.
void
setElementType(QName elementType)
Set the type of this extensibility element.
void
setRequired(Boolean required)
Set whether or not the semantics of this extension are required.
String
toString()

Field Details

element

protected Element element

elementType

protected QName elementType

required

protected Boolean required

serialVersionUID

public static final long serialVersionUID
Field Value:
1L

Method Details

addImport

public void addImport(SchemaImport importSchema)
Add an import to this LightWeightSchema
Specified by:
addImport in interface Schema
Parameters:
importSchema - the import to be added

addInclude

public void addInclude(SchemaReference includeSchema)
Add an include to this LightWeightSchema
Specified by:
addInclude in interface Schema
Parameters:
includeSchema - The include to be added, represented as a SchemaReference

addRedefine

public void addRedefine(SchemaReference redefineSchema)
Add a redefine to this LightWeightSchema
Specified by:
addRedefine in interface Schema
Parameters:
redefineSchema - The redefine to be added, represented as a SchemaReference

createImport

public SchemaImport createImport()
Create a new schema import.
Specified by:
createImport in interface Schema
Returns:
the newly created schema import

createInclude

public SchemaReference createInclude()
Create a new schema reference to represent an include.
Specified by:
createInclude in interface Schema
Returns:
the newly created SchemaReference

createRedefine

public SchemaReference createRedefine()
Create a new schema reference to represent a redefine.
Specified by:
createRedefine in interface Schema
Returns:
the newly created SchemaReference

getDocumentBaseURI

public String getDocumentBaseURI()
Get the document base URI of this schema
Specified by:
getDocumentBaseURI in interface Schema
Returns:
the document base URI

getElement

public Element getElement()
Get the DOM Element that represents this schema element.
Specified by:
getElement in interface Schema
Returns:
the DOM element representing this schema

getElementType

public QName getElementType()
Get the type of this extensibility element.
Specified by:
getElementType in interface ExtensibilityElement
Returns:
the extensibility element's type

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.
Specified by:
getImports in interface Schema
Returns:
a Map of Lists of Import instances keyed off the import's namespace

getIncludes

public List getIncludes()
Get list of includes defined here.
Specified by:
getIncludes in interface Schema
Returns:
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.
Specified by:
getRedefines in interface Schema
Returns:
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.
Specified by:
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).
Specified by:
setDocumentBaseURI in interface Schema
Parameters:
documentBaseURI - the document base URI of this schema

setElement

public void setElement(Element element)
Set the DOM Element that represents this schema element.
Specified by:
setElement in interface Schema
Parameters:
element - the DOM element representing this schema

setElementType

public void setElementType(QName elementType)
Set the type of this extensibility element.
Specified by:
setElementType in interface ExtensibilityElement
Parameters:
elementType - the type

setRequired

public void setRequired(Boolean required)
Set whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.
Specified by:
setRequired in interface ExtensibilityElement

toString

public String toString()

Copyright B) 2003,2006 IBM. All Rights Reserved.