Methods in this interface that are required to return SAAJ specific objects
may "silently" replace nodes in the tree as required to successfully return
objects of the correct type. See getChildElements() and
jakarta.xml.soap for details.
| Modifier and Type | Method and Description |
|---|---|
| public SOAPElement | Returns: theSOAPElement object into which the attribute was
inserteda name, String Name object with the name of the attributea value)String giving the value of the attributeAdds an attribute with the specified name and value to this
|
| public SOAPElement | Returns: theSOAPElement object into which the attribute was
inserteda qname, String QName object with the name of the attributea value)String giving the value of the attributeAdds an attribute with the specified name and value to this
|
| public SOAPElement | Returns: the newSOAPElement object that was createda name)Name object with the XML name for the
new elementCreates a new |
| public SOAPElement | Returns: the newSOAPElement object that was createda qname)QName object with the XML name for the
new elementCreates a new |
| public SOAPElement | Returns: the newSOAPElement object that was createda localName)String giving the local name for
the elementCreates a new |
| public SOAPElement | Returns: the newSOAPElement object that was createda localName, String String giving the local name for
the new elementa prefix)String giving the namespace prefix for
the new elementCreates a new |
| public SOAPElement | Returns: the newSOAPElement object that was createda localName, String String giving the local name for
the new elementa prefix, String String giving the namespace prefix for
the new elementa uri)String giving the URI of the namespace
to which the new element belongsCreates a new |
| public SOAPElement | Returns: an instance representing the new SOAP element that was actually added to the tree.the element)SOAPElement to be added as a
new childAdd a |
| public SOAPElement | Returns: theSOAPElement object into which this
namespace declaration was inserted.a prefix, String String giving the prefix of the namespacea uri)String giving the uri of the namespaceAdds a namespace declaration with the specified prefix and URI to this
|
| public SOAPElement | Returns: theSOAPElement object into which
the new Text object was inserteda text)String object with the textual content to be addedCreates a new |
| public QName | Returns: aQName with the specified localName
and prefix, and with a namespace that is associated
with the prefix in the context of this
SOAPElement. This namespace will be the same as
the one that would be returned by
getNamespaceURI(String) if it were given
prefix as it's parameter.a localName, String String containing the local part of the name.a prefix)String containing the prefix for the name.Creates a |
| public Iterator | Returns: an iterator over the names of the attributesReturns an |
| public Iterator | Returns: an iterator over the QNames of the attributesReturns an |
| public String | Returns: aString giving the value of the specified
attribute, Null if there is no such attributea name)Name object with the name of the attributeReturns the value of the attribute with the specified name. |
| public String | Returns: aString giving the value of the specified
attribute, Null if there is no such attributea qname)QName object with the qname of the attributeReturns the value of the attribute with the specified qname. |
| public Iterator | Returns: an iterator with the content of thisSOAPElement
objectReturns an |
| public Iterator | Returns: anIterator object over all the elements
in this SOAPElement object with the
specified namea name)Name object with the name of the child
elements to be returnedReturns an |
| public Iterator | Returns: anIterator object over all the elements
in this SOAPElement object with the
specified qnamea qname)QName object with the qname of the child
elements to be returnedReturns an |
| public Name | Returns: aName object with the name of this
SOAPElement objectReturns the name of this |
| public QName | Returns: aQName object with the qname of this
SOAPElement objectReturns the qname of this |
| public String | Returns: aString giving the encoding styleReturns the encoding style for this |
| public Iterator | Returns: an iterator over the namespace prefixes in thisSOAPElement objectReturns an |
| public String | Returns: aString with the uri of the namespace that has
the given prefixa prefix)String giving the prefix of the namespace
for which to searchReturns the URI of the namespace that has the given prefix. |
| public Iterator | Returns: an iterator over the namespace prefixes are within scope of thisSOAPElement objectReturns an |
| public boolean | Returns: true if the attribute was
removed successfully; false if it was notthe name)Name object with the name of the
attribute to be removedRemoves the attribute with the specified name. |
| public boolean | Returns: true if the attribute was
removed successfully; false if it was notthe qname)QName object with the qname of the
attribute to be removedRemoves the attribute with the specified qname. |
| public void | |
| public boolean | Returns: true if the namespace declaration was
removed successfully; false if it was nota prefix)String giving the prefix for which
to searchRemoves the namespace declaration corresponding to the given prefix. |
| public SOAPElement | Returns: The renamed Nodethe new name for the newName)Element.Changes the name of this |
| public void | setEncodingStyle(String
a encodingStyle)String giving the encoding styleSets the encoding style for this |
| addAttribute | back to summary |
|---|---|
| public SOAPElement addAttribute(Name name, String value) throws SOAPException Adds an attribute with the specified name and value to this
| |
| addAttribute | back to summary |
|---|---|
| public SOAPElement addAttribute(QName qname, String value) throws SOAPException Adds an attribute with the specified name and value to this
| |
| addChildElement | back to summary |
|---|---|
| public SOAPElement addChildElement(Name name) throws SOAPException Creates a new This method may be deprecated in a future release of SAAJ in favor of addChildElement(javax.xml.namespace.QName)
| |
| addChildElement | back to summary |
|---|---|
| public SOAPElement addChildElement(QName qname) throws SOAPException Creates a new
| |
| addChildElement | back to summary |
|---|---|
| public SOAPElement addChildElement(String localName) throws SOAPException Creates a new
| |
| addChildElement | back to summary |
|---|---|
| public SOAPElement addChildElement(String localName, String prefix) throws SOAPException Creates a new
| |
| addChildElement | back to summary |
|---|---|
| public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException Creates a new
| |
| addChildElement | back to summary |
|---|---|
| public SOAPElement addChildElement(SOAPElement element) throws SOAPException Add a The fragment rooted in The fragment rooted in
| |
| addNamespaceDeclaration | back to summary |
|---|---|
| public SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException Adds a namespace declaration with the specified prefix and URI to this
| |
| addTextNode | back to summary |
|---|---|
| public SOAPElement addTextNode(String text) throws SOAPException Creates a new
| |
| createQName | back to summary |
|---|---|
| public QName createQName(String localName, String prefix) throws SOAPException Creates a
| |
| getAllAttributes | back to summary |
|---|---|
| public Iterator Returns an
| |
| getAllAttributesAsQNames | back to summary |
|---|---|
| public Iterator Returns an
| |
| getAttributeValue | back to summary |
|---|---|
| public String getAttributeValue(Name name) Returns the value of the attribute with the specified name.
| |
| getAttributeValue | back to summary |
|---|---|
| public String getAttributeValue(QName qname) Returns the value of the attribute with the specified qname.
| |
| getChildElements | back to summary |
|---|---|
| public Iterator Returns an
Calling this method must cause child | |
| getChildElements | back to summary |
|---|---|
| public Iterator Returns an
Calling this method must cause child
| |
| getChildElements | back to summary |
|---|---|
| public Iterator Returns an
Calling this method must cause child
| |
| getElementName | back to summary |
|---|---|
| public Name getElementName() Returns the name of this
| |
| getElementQName | back to summary |
|---|---|
| public QName getElementQName() Returns the qname of this
| |
| getEncodingStyle | back to summary |
|---|---|
| public String getEncodingStyle() Returns the encoding style for this
| |
| getNamespacePrefixes | back to summary |
|---|---|
| public Iterator Returns an | |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI(String prefix) Returns the URI of the namespace that has the given prefix. | |
| getVisibleNamespacePrefixes | back to summary |
|---|---|
| public Iterator Returns an | |
| removeAttribute | back to summary |
|---|---|
| public boolean removeAttribute(Name name) Removes the attribute with the specified name.
| |
| removeAttribute | back to summary |
|---|---|
| public boolean removeAttribute(QName qname) Removes the attribute with the specified qname.
| |
| removeContents | back to summary |
|---|---|
| public void removeContents() Detaches all children of this
This method is useful for rolling back the construction of partially
completed
| |
| removeNamespaceDeclaration | back to summary |
|---|---|
| public boolean removeNamespaceDeclaration(String prefix) Removes the namespace declaration corresponding to the given prefix.
| |
| setElementQName | back to summary |
|---|---|
| public SOAPElement setElementQName(QName newName) throws SOAPException Changes the name of this
Callers should not rely on the element instance being renamed as is.
Implementations could end up copying the content of the
| |
| setEncodingStyle | back to summary |
|---|---|
| public void setEncodingStyle(String encodingStyle) throws SOAPException Sets the encoding style for this
| |