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
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, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.w3c.dom.Elementelementprotected QNameelementTypeprotected java.lang.Booleanrequiredstatic longserialVersionUID
-
Constructor Summary
Constructors Constructor Description SchemaImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddImport(SchemaImport importSchema)Add an import to this LightWeightSchemavoidaddInclude(SchemaReference includeSchema)Add an include to this LightWeightSchemavoidaddRedefine(SchemaReference redefineSchema)Add a redefine to this LightWeightSchemaSchemaImportcreateImport()Create a new schema import.SchemaReferencecreateInclude()Create a new schema reference to represent an include.SchemaReferencecreateRedefine()Create a new schema reference to represent a redefine.java.lang.StringgetDocumentBaseURI()Get the document base URI of this schemaorg.w3c.dom.ElementgetElement()Get the DOM Element that represents this schema element.QNamegetElementType()Get the type of this extensibility element.java.util.MapgetImports()Get a map of lists containing all the imports defined here.java.util.ListgetIncludes()Get list of includes defined here.java.util.ListgetRedefines()Get a list containing all of the redefines defined here.java.lang.BooleangetRequired()Get whether or not the semantics of this extension are required.voidsetDocumentBaseURI(java.lang.String documentBaseURI)Set the document base URI of this schema definition.voidsetElement(org.w3c.dom.Element element)Set the DOM Element that represents this schema element.voidsetElementType(QName elementType)Set the type of this extensibility element.voidsetRequired(java.lang.Boolean required)Set whether or not the semantics of this extension are required.java.lang.StringtoString()
-
-
-
Field Detail
-
elementType
protected QName elementType
-
required
protected java.lang.Boolean required
-
element
protected org.w3c.dom.Element element
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
getImportsin interfaceSchema- Returns:
- a Map of Lists of Import instances keyed off the import's namespace
-
createImport
public SchemaImport createImport()
Create a new schema import.- Specified by:
createImportin interfaceSchema- Returns:
- the newly created schema import
-
addImport
public void addImport(SchemaImport importSchema)
Add an import to this LightWeightSchema
-
getIncludes
public java.util.List getIncludes()
Get list of includes defined here.- Specified by:
getIncludesin interfaceSchema- Returns:
- a List of SchemaReference instances representing the schema includes.
-
createInclude
public SchemaReference createInclude()
Description copied from interface:SchemaCreate a new schema reference to represent an include.- Specified by:
createIncludein interfaceSchema- Returns:
- the newly created SchemaReference
-
addInclude
public void addInclude(SchemaReference includeSchema)
Description copied from interface:SchemaAdd an include to this LightWeightSchema- Specified by:
addIncludein interfaceSchema- Parameters:
includeSchema- The include to be added, represented as a SchemaReference
-
getRedefines
public java.util.List getRedefines()
Description copied from interface:SchemaGet a list containing all of the redefines defined here. The list elements are schema references.- Specified by:
getRedefinesin interfaceSchema- Returns:
- a list of schema references.
-
createRedefine
public SchemaReference createRedefine()
Description copied from interface:SchemaCreate a new schema reference to represent a redefine.- Specified by:
createRedefinein interfaceSchema- Returns:
- the newly created SchemaReference
-
addRedefine
public void addRedefine(SchemaReference redefineSchema)
Description copied from interface:SchemaAdd a redefine to this LightWeightSchema- Specified by:
addRedefinein interfaceSchema- Parameters:
redefineSchema- The redefine to be added, represented as a SchemaReference
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setElementType
public void setElementType(QName elementType)
Set the type of this extensibility element.- Specified by:
setElementTypein interfaceExtensibilityElement- Parameters:
elementType- the type
-
getElementType
public QName getElementType()
Get the type of this extensibility element.- Specified by:
getElementTypein 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:
setRequiredin 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:
getRequiredin interfaceExtensibilityElement
-
setElement
public void setElement(org.w3c.dom.Element element)
Set the DOM Element that represents this schema element.- Specified by:
setElementin 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:
getElementin 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:
setDocumentBaseURIin 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:
getDocumentBaseURIin interfaceSchema- Returns:
- the document base URI
-
-