com.ibm.wsdl

Class AbstractWSDLElement

public abstract class AbstractWSDLElement extends Object implements WSDLElement

Abstract super class for all WSDL Elements, providing some basic common functionality.
Field Summary
protected ElementdocEl
protected MapextensionAttributes
protected ListextElements
Method Summary
voidaddExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.
ElementgetDocumentationElement()
Get the documentation element.
ListgetExtensibilityElements()
Get all the extensibility elements defined here.
ObjectgetExtensionAttribute(QName name)
Retrieve an extension attribute from this element.
MapgetExtensionAttributes()
Get the map containing all the extension attributes defined on this element.
ExtensibilityElementremoveExtensibilityElement(ExtensibilityElement extElement)
Remove an extensibility element.
voidsetDocumentationElement(Element docEl)
Set the documentation element for this document.
voidsetExtensionAttribute(QName name, Object value)
Set an extension attribute on this element.
StringtoString()

Field Detail

docEl

protected Element docEl

extensionAttributes

protected Map extensionAttributes

extElements

protected List extElements

Method Detail

addExtensibilityElement

public void addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.

Parameters: extElement the extensibility element to be added

getDocumentationElement

public Element getDocumentationElement()
Get the documentation element. This dependency on org.w3c.dom.Element should eventually be removed when a more appropriate way of representing this information is employed.

Returns: the documentation element

getExtensibilityElements

public List getExtensibilityElements()
Get all the extensibility elements defined here.

getExtensionAttribute

public Object getExtensionAttribute(QName name)
Retrieve an extension attribute from this element. If the extension attribute is not defined, null is returned.

Parameters: name the extension attribute name

Returns: the value of the extension attribute, or null if it is not defined. Can be a String, a QName, a List of Strings, or a List of QNames.

See Also: AbstractWSDLElement AbstractWSDLElement ExtensionRegistry#registerExtensionAttributeType ExtensionRegistry#queryExtensionAttributeType

getExtensionAttributes

public Map getExtensionAttributes()
Get the map containing all the extension attributes defined on this element. The keys are the qnames of the attributes.

Returns: a map containing all the extension attributes defined on this element

See Also: AbstractWSDLElement AbstractWSDLElement

removeExtensibilityElement

public ExtensibilityElement removeExtensibilityElement(ExtensibilityElement extElement)
Remove an extensibility element.

Parameters: extElement the extensibility element to be removed.

Returns: the extensibility element which was removed.

setDocumentationElement

public void setDocumentationElement(Element docEl)
Set the documentation element for this document. This dependency on org.w3c.dom.Element should eventually be removed when a more appropriate way of representing this information is employed.

Parameters: docEl the documentation element

setExtensionAttribute

public void setExtensionAttribute(QName name, Object value)
Set an extension attribute on this element. Pass in a null value to remove an extension attribute.

Parameters: name the extension attribute name value the extension attribute value. Can be a String, a QName, a List of Strings, or a List of QNames.

See Also: AbstractWSDLElement AbstractWSDLElement ExtensionRegistry#registerExtensionAttributeType ExtensionRegistry#queryExtensionAttributeType

toString

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