Element

interface Element

Encapsulation of a javax.xml.soap.SOAPElement

Author:cyng

Methods

addAttribute

Element addAttribute(Name name, String value)

Add an attribute of the given name and value to this Element

Parameters:
  • name – the attribute name in javax.xml.soap.Name representation
  • value – the attribute value
Returns:

this Element to which the attribute is added

addChildElement

Element addChildElement(Element child)

Add a child element to this Element

Parameters:
  • child – the child Element
Returns:

the newly added child Element

getAllAttributes

Iterator getAllAttributes()

Get all attributes of this Element. Each Iterator entry is in the form of Map.Entry representing a (javax.xml.soap.Name name, String value) pair.

getAttributeValue

String getAttributeValue(Name name)

Get the attribute value of the specified attribute name

getChildElements

Iterator getChildElements(Name name)

Get all descendant child elements of the specified javax.xml.soap.Name, in the order in which they are encountered in a preorder traversal of this Element tree. Each Iterator entry is in the form of an javax.xml.soap.SOAPElement.

getChildElements

Iterator getChildElements()

Get all immediate child elements in the form of an javax.xml.soap.SOAPElement in each Iterator entry

getElementName

Name getElementName()

Get the element name of this Element

getSOAPElement

SOAPElement getSOAPElement()

Return the javax.xml.soap.SOAPElement representation of this Element

getValue

String getValue()

Get the text node value of this Element. Returns null if it does not exist.