The elements of a SOAP message form a tree. Each node in that tree implements the Node interface and, starting at the envelope level, each node implements the SOAPElement interface as well. The resulting shared methods are described in Table 5–1.
Table 5–1 Inherited Methods
Inherited From |
Method Name |
Purpose |
||
---|---|---|---|---|
|
|
Add an attribute with the specified Name object and string value |
||
|
Create a new SOAPElement object, initialized with the given Name object, and add the new element (Use the Envelope.createName method to create a Name object) |
|||
|
Add a namespace declaration with the specified prefix and URI |
|||
|
Create a new Text object initialized with the given String and add it to this SOAPElement object |
|||
|
Return an iterator over all the attribute names in this object |
|||
|
Return the value of the specified attribute |
|||
|
Return an iterator over all the immediate content of this element |
|||
|
Return an iterator over all the child elements with the specified name |
|||
|
Return the name of this object |
|||
|
Return the encoding style for this object |
|||
|
Return an iterator of namespace prefixes |
|||
|
Return the URI of the namespace with the given prefix |
|||
|
Remove the specified attribute |
|||
|
Remove the namespace declaration that corresponds to the specified prefix |
|||
|
Set the encoding style for this object to that specified by String |
|||
|
|
Remove this Node object from the tree |
||
|
Return the parent element of this Node object |
|||
|
Return the value of the immediate child of this Node object if a child exists and its value is text |
|||
|
Notify the implementation that his Node object is no longer being used and is free for reuse |
|||
|
Set the parent of this object to that specified by the SOAPElement parameter |