com.ibm.wsdl.extensions.schema

Class SchemaImpl

public class SchemaImpl extends 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

Field Summary
protected Elementelement
protected QNameelementType
protected Booleanrequired
static longserialVersionUID
Method Summary
voidaddImport(SchemaImport importSchema)
Add an import to this LightWeightSchema
voidaddInclude(SchemaReference includeSchema)
voidaddRedefine(SchemaReference redefineSchema)
SchemaImportcreateImport()
Create a new schema import.
SchemaReferencecreateInclude()
SchemaReferencecreateRedefine()
StringgetDocumentBaseURI()
Get the document base URI of this schema
ElementgetElement()
Get the DOM Element that represents this schema element.
QNamegetElementType()
Get the type of this extensibility element.
MapgetImports()
Get a map of lists containing all the imports defined here.
ListgetIncludes()
Get list of includes defined here.
ListgetRedefines()
BooleangetRequired()
Get whether or not the semantics of this extension are required.
voidsetDocumentBaseURI(String documentBaseURI)
Set the document base URI of this schema definition.
voidsetElement(Element element)
Set the DOM Element that represents this schema element.
voidsetElementType(QName elementType)
Set the type of this extensibility element.
voidsetRequired(Boolean required)
Set whether or not the semantics of this extension are required.
StringtoString()

Field Detail

element

protected Element element

elementType

protected QName elementType

required

protected Boolean required

serialVersionUID

public static final long serialVersionUID

Method Detail

addImport

public void addImport(SchemaImport importSchema)
Add an import to this LightWeightSchema

Parameters: importSchema the import to be added

addInclude

public void addInclude(SchemaReference includeSchema)

addRedefine

public void addRedefine(SchemaReference redefineSchema)

createImport

public SchemaImport createImport()
Create a new schema import.

Returns: the newly created schema import

createInclude

public SchemaReference createInclude()

createRedefine

public SchemaReference createRedefine()

getDocumentBaseURI

public String getDocumentBaseURI()
Get the document base URI of this schema

Returns: the document base URI

getElement

public Element getElement()
Get the DOM Element that represents this schema element.

Returns: the DOM element representing this schema

getElementType

public QName getElementType()
Get the type of this extensibility element.

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.

Returns: a Map of Lists of Import instances keyed off the import's namespace

getIncludes

public List getIncludes()
Get list of includes defined here.

Returns: a List of SchemaReference instances representing the schema includes.

getRedefines

public List getRedefines()

getRequired

public Boolean getRequired()
Get whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.

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).

Parameters: documentBaseURI the document base URI of this schema

setElement

public void setElement(Element element)
Set the DOM Element that represents this schema element.

Parameters: element the DOM element representing this schema

setElementType

public void setElementType(QName elementType)
Set the type of this extensibility element.

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.

toString

public String toString()
Copyright B) 2003,2005 IBM. All Rights Reserved.