SOAPElement (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addAttribute](../../../javax/xml/soap/SOAPElement.html#addAttribute-javax.xml.soap.Name-java.lang.String-)([Name](../../../javax/xml/soap/Name.html "interface in javax.xml.soap") name,[String](../../../java/lang/String.html "class in java.lang") value)
Adds an attribute with the specified name and value to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addAttribute](../../../javax/xml/soap/SOAPElement.html#addAttribute-javax.xml.namespace.QName-java.lang.String-)([QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace") qname,[String](../../../java/lang/String.html "class in java.lang") value)
Adds an attribute with the specified name and value to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addChildElement](../../../javax/xml/soap/SOAPElement.html#addChildElement-javax.xml.soap.Name-)([Name](../../../javax/xml/soap/Name.html "interface in javax.xml.soap") name)
Creates a new SOAPElement
object initialized with the given Name
object and adds the new element to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addChildElement](../../../javax/xml/soap/SOAPElement.html#addChildElement-javax.xml.namespace.QName-)([QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace") qname)
Creates a new SOAPElement
object initialized with the givenQName
object and adds the new element to this SOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addChildElement](../../../javax/xml/soap/SOAPElement.html#addChildElement-javax.xml.soap.SOAPElement-)([SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap") element)
Add a SOAPElement
as a child of thisSOAPElement
instance.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addChildElement](../../../javax/xml/soap/SOAPElement.html#addChildElement-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") localName)
Creates a new SOAPElement
object initialized with the specified local name and adds the new element to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addChildElement](../../../javax/xml/soap/SOAPElement.html#addChildElement-java.lang.String-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") localName,[String](../../../java/lang/String.html "class in java.lang") prefix)
Creates a new SOAPElement
object initialized with the specified local name and prefix and adds the new element to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addChildElement](../../../javax/xml/soap/SOAPElement.html#addChildElement-java.lang.String-java.lang.String-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") localName,[String](../../../java/lang/String.html "class in java.lang") prefix,[String](../../../java/lang/String.html "class in java.lang") uri)
Creates a new SOAPElement
object initialized with the specified local name, prefix, and URI and adds the new element to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addNamespaceDeclaration](../../../javax/xml/soap/SOAPElement.html#addNamespaceDeclaration-java.lang.String-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") prefix,[String](../../../java/lang/String.html "class in java.lang") uri)
Adds a namespace declaration with the specified prefix and URI to thisSOAPElement
object.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[addTextNode](../../../javax/xml/soap/SOAPElement.html#addTextNode-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") text)
Creates a new Text
object initialized with the givenString
and adds it to this SOAPElement
object.
[QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace")
[createQName](../../../javax/xml/soap/SOAPElement.html#createQName-java.lang.String-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") localName,[String](../../../java/lang/String.html "class in java.lang") prefix)
Creates a QName
whose namespace URI is the one associated with the parameter, prefix
, in the context of thisSOAPElement
.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getAllAttributes](../../../javax/xml/soap/SOAPElement.html#getAllAttributes--)()
Returns an Iterator
over all of the attributeName
objects in thisSOAPElement
object.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getAllAttributesAsQNames](../../../javax/xml/soap/SOAPElement.html#getAllAttributesAsQNames--)()
Returns an Iterator
over all of the attributes in this SOAPElement
as QName
objects.
[String](../../../java/lang/String.html "class in java.lang")
[getAttributeValue](../../../javax/xml/soap/SOAPElement.html#getAttributeValue-javax.xml.soap.Name-)([Name](../../../javax/xml/soap/Name.html "interface in javax.xml.soap") name)
Returns the value of the attribute with the specified name.
[String](../../../java/lang/String.html "class in java.lang")
[getAttributeValue](../../../javax/xml/soap/SOAPElement.html#getAttributeValue-javax.xml.namespace.QName-)([QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace") qname)
Returns the value of the attribute with the specified qname.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getChildElements](../../../javax/xml/soap/SOAPElement.html#getChildElements--)()
Returns an Iterator
over all the immediate childNodes of this element.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getChildElements](../../../javax/xml/soap/SOAPElement.html#getChildElements-javax.xml.soap.Name-)([Name](../../../javax/xml/soap/Name.html "interface in javax.xml.soap") name)
Returns an Iterator
over all the immediate childNodes of this element with the specified name.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getChildElements](../../../javax/xml/soap/SOAPElement.html#getChildElements-javax.xml.namespace.QName-)([QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace") qname)
Returns an Iterator
over all the immediate childNodes of this element with the specified qname.
[Name](../../../javax/xml/soap/Name.html "interface in javax.xml.soap")
[getElementName](../../../javax/xml/soap/SOAPElement.html#getElementName--)()
Returns the name of this SOAPElement
object.
[QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace")
[getElementQName](../../../javax/xml/soap/SOAPElement.html#getElementQName--)()
Returns the qname of this SOAPElement
object.
[String](../../../java/lang/String.html "class in java.lang")
[getEncodingStyle](../../../javax/xml/soap/SOAPElement.html#getEncodingStyle--)()
Returns the encoding style for this SOAPElement
object.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getNamespacePrefixes](../../../javax/xml/soap/SOAPElement.html#getNamespacePrefixes--)()
Returns an Iterator
over the namespace prefixString
s declared by this element.
[String](../../../java/lang/String.html "class in java.lang")
[getNamespaceURI](../../../javax/xml/soap/SOAPElement.html#getNamespaceURI-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") prefix)
Returns the URI of the namespace that has the given prefix.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getVisibleNamespacePrefixes](../../../javax/xml/soap/SOAPElement.html#getVisibleNamespacePrefixes--)()
Returns an Iterator
over the namespace prefixString
s visible to this element.
boolean
[removeAttribute](../../../javax/xml/soap/SOAPElement.html#removeAttribute-javax.xml.soap.Name-)([Name](../../../javax/xml/soap/Name.html "interface in javax.xml.soap") name)
Removes the attribute with the specified name.
boolean
[removeAttribute](../../../javax/xml/soap/SOAPElement.html#removeAttribute-javax.xml.namespace.QName-)([QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace") qname)
Removes the attribute with the specified qname.
void
[removeContents](../../../javax/xml/soap/SOAPElement.html#removeContents--)()
Detaches all children of this SOAPElement
.
boolean
[removeNamespaceDeclaration](../../../javax/xml/soap/SOAPElement.html#removeNamespaceDeclaration-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") prefix)
Removes the namespace declaration corresponding to the given prefix.
[SOAPElement](../../../javax/xml/soap/SOAPElement.html "interface in javax.xml.soap")
[setElementQName](../../../javax/xml/soap/SOAPElement.html#setElementQName-javax.xml.namespace.QName-)([QName](../../../javax/xml/namespace/QName.html "class in javax.xml.namespace") newName)
Changes the name of this Element
to newName
if possible.
void
[setEncodingStyle](../../../javax/xml/soap/SOAPElement.html#setEncodingStyle-java.lang.String-)([String](../../../java/lang/String.html "class in java.lang") encodingStyle)
Sets the encoding style for this SOAPElement
object to one specified.