- All Implemented Interfaces:
Node
,SOAPBodyElement
,SOAPElement
,Element
,Node
- Direct Known Subclasses:
BodyElementImpl
,BodyImpl
,DetailEntryImpl
,EnvelopeImpl
,FaultElementImpl
,FaultImpl
,HeaderElementImpl
,HeaderImpl
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected QName
static final String
static final String
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
Constructor Summary
ConstructorDescriptionElementImpl
(SOAPDocumentImpl ownerDoc, Name name) ElementImpl
(SOAPDocumentImpl ownerDoc, String uri, String qualifiedName) ElementImpl
(SOAPDocumentImpl ownerDoc, QName name) ElementImpl
(SOAPDocumentImpl ownerDoc, Element domElement) -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(Name name, String value) Adds an attribute with the specified name and value to thisSOAPElement
object.addAttribute
(QName qname, String value) Adds an attribute with the specified name and value to thisSOAPElement
object.protected SOAPElement
addChildElement
(Name name) Creates a newSOAPElement
object initialized with the givenName
object and adds the new element to thisSOAPElement
object.addChildElement
(SOAPElement element) Add aSOAPElement
as a child of thisSOAPElement
instance.addChildElement
(String localName) Creates a newSOAPElement
object initialized with the specified local name and adds the new element to thisSOAPElement
object.addChildElement
(String localName, String prefix) Creates a newSOAPElement
object initialized with the specified local name and prefix and adds the new element to thisSOAPElement
object.addChildElement
(String localName, String prefix, String uri) Creates a newSOAPElement
object initialized with the specified local name, prefix, and URI and adds the new element to thisSOAPElement
object.addChildElement
(QName qname) Creates a newSOAPElement
object initialized with the givenQName
object and adds the new element to thisSOAPElement
object.protected SOAPElement
addElement
(Name name) protected SOAPElement
addElement
(QName name) addNamespaceDeclaration
(String prefix, String uri) Adds a namespace declaration with the specified prefix and URI to thisSOAPElement
object.protected void
protected SOAPElement
addTextNode
(String text) Creates a newText
object initialized with the givenString
and adds it to thisSOAPElement
object.appendChild
(Node newChild) cloneNode
(boolean deep) short
compareDocumentPosition
(Node other) protected SOAPElement
convertToSoapElement
(Element element) protected TextImpl
convertToSoapText
(CharacterData characterData) protected SOAPElement
createElement
(Name name) protected SOAPElement
createElement
(QName name) createQName
(String localName, String prefix) Creates aQName
whose namespace URI is the one associated with the parameter,prefix
, in the context of thisSOAPElement
.void
Removes thisNode
object from the tree.doGetNamespacePrefixes
(boolean deep) void
ensureNamespaceIsDeclared
(String prefix, String uri) protected SOAPElement
protected SOAPElement
protected void
Returns anIterator
over all the attributeName
objects in thisSOAPElement
object.Returns anIterator
over all the attributes in thisSOAPElement
asQName
objects.getAllAttributesFrom
(Element element) getAttribute
(String name) getAttributeNode
(String name) getAttributeNodeNS
(String namespaceURI, String localName) getAttributeNS
(String namespaceURI, String localName) getAttributeValue
(Name name) Returns the value of the attribute with the specified name.getAttributeValue
(QName qname) Returns the value of the attribute with the specified qname.protected static String
getAttributeValueFrom
(Element element, Name name) Returns anIterator
over all the immediate childNode
s of this element.getChildElements
(Name name) Returns anIterator
over all the immediate childNode
s of this element with the specified name.getChildElements
(QName qname) Returns anIterator
over all the immediate childNode
s of this element with the specified qname.getChildElementsFrom
(Element element) Returns the name of thisSOAPElement
object.Returns the qname of thisSOAPElement
object.getElementsByTagName
(String name) getElementsByTagNameNS
(String namespaceURI, String localName) Returns the encoding style for thisSOAPElement
object.getFeature
(String feature, String version) static String
getLocalPart
(String qualifiedName) protected Attr
getNamespaceAttr
(String prefix) protected static Attr
getNamespaceAttrFrom
(Element element, String prefix) getNamespaceContextNodes
(boolean traverseStack) getNamespacePrefix
(String uri) Returns anIterator
over the namespace prefixString
s declared by this element.getNamespaceURI
(String prefix) Returns the URI of the namespace that has the given prefix.short
Returns the parent element of thisNode
object.static String
static String
getQualifiedName
(QName name) protected String
getUserData
(String key) getValue()
Returns the value of this node if this is aText
node or the value of the immediate child of this node otherwise.protected Node
protected Node
Returns anIterator
over the namespace prefixString
s visible to this element.boolean
hasAttribute
(String name) boolean
hasAttributeNS
(String namespaceURI, String localName) boolean
boolean
protected Element
importElement
(Element element) insertBefore
(Node newChild, Node refChild) boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node arg) protected boolean
isNamespaceQualified
(Name name) protected boolean
isNamespaceQualified
(QName name) boolean
isSameNode
(Node other) boolean
isSupported
(String feature, String version) lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) void
void
Notifies the implementation that thisNode
object is no longer being used by the application and that the implementation is free to reuse this object for nodes that may be created later.boolean
removeAttribute
(Name name) Removes the attribute with the specified name.void
removeAttribute
(String name) boolean
removeAttribute
(QName name) Removes the attribute with the specified qname.removeAttributeNode
(Attr oldAttr) void
removeAttributeNS
(String namespaceURI, String localName) removeChild
(Node oldChild) void
Detaches all children of thisSOAPElement
.boolean
removeNamespaceDeclaration
(String prefix) Removes the namespace declaration corresponding to the given prefix.replaceChild
(Node newChild, Node oldChild) protected SOAPElement
replaceElementWithSOAPElement
(Element element, ElementImpl copy) void
setAttribute
(String name, String value) setAttributeNode
(Attr newAttr) setAttributeNodeNS
(Attr newAttr) void
setAttributeNS
(String namespaceURI, String qualifiedName, String value) setElementQName
(QName newName) Changes the name of thisElement
tonewName
if possible.void
setEncodingStyle
(String encodingStyle) Sets the encoding style for thisSOAPElement
object to one specified.protected void
setEncodingStyleNamespace
(String soapNamespace, String soapNamespacePrefix) void
setIdAttribute
(String name, boolean isId) void
setIdAttributeNode
(Attr idAttr, boolean isId) void
setIdAttributeNS
(String namespaceURI, String localName, boolean isId) void
setNodeValue
(String nodeValue) void
setParentElement
(SOAPElement element) Sets the parent of thisNode
object to the givenSOAPElement
object.void
void
setTextContent
(String textContent) setUserData
(String key, Object data, UserDataHandler handler) void
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node.void
-
Field Details
-
DSIG_NS
- See Also:
-
XENC_NS
- See Also:
-
WSU_NS
- See Also:
-
elementQName
-
-
Constructor Details
-
ElementImpl
-
ElementImpl
-
ElementImpl
-
ElementImpl
-
-
Method Details
-
getTagName
- Specified by:
getTagName
in interfaceElement
-
getAttribute
- Specified by:
getAttribute
in interfaceElement
-
setAttribute
- Specified by:
setAttribute
in interfaceElement
- Throws:
DOMException
-
removeAttribute
- Specified by:
removeAttribute
in interfaceElement
- Throws:
DOMException
-
getAttributeNode
- Specified by:
getAttributeNode
in interfaceElement
-
setAttributeNode
- Specified by:
setAttributeNode
in interfaceElement
- Throws:
DOMException
-
removeAttributeNode
- Specified by:
removeAttributeNode
in interfaceElement
- Throws:
DOMException
-
getElementsByTagName
- Specified by:
getElementsByTagName
in interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNS
in interfaceElement
- Throws:
DOMException
-
ensureNamespaceIsDeclared
-
getOwnerDocument
- Specified by:
getOwnerDocument
in interfaceNode
-
insertBefore
- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
removeChild
- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
appendChild
- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodes
in interfaceNode
-
cloneNode
-
normalize
public void normalize() -
isSupported
- Specified by:
isSupported
in interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
-
getBaseURI
- Specified by:
getBaseURI
in interfaceNode
-
compareDocumentPosition
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContent
in interfaceNode
- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNode
in interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefix
in interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURI
in interfaceNode
-
isEqualNode
- Specified by:
isEqualNode
in interfaceNode
-
getFeature
- Specified by:
getFeature
in interfaceNode
-
setUserData
- Specified by:
setUserData
in interfaceNode
-
getUserData
- Specified by:
getUserData
in interfaceNode
-
addChildElement
Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the givenName
object and adds the new element to thisSOAPElement
object.This method may be deprecated in a future release of SAAJ in favor of addChildElement(javax.xml.namespace.QName)
- Specified by:
addChildElement
in interfaceSOAPElement
- Parameters:
name
- aName
object with the XML name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object- See Also:
-
addChildElement
Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the givenQName
object and adds the new element to thisSOAPElement
object. The namespace, localname and prefix of the newSOAPElement
are all taken from theqname
argument.- Specified by:
addChildElement
in interfaceSOAPElement
- Parameters:
qname
- aQName
object with the XML name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object- See Also:
-
addChildElement
Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the specified local name and adds the new element to thisSOAPElement
object. The newSOAPElement
inherits any in-scope default namespace.- Specified by:
addChildElement
in interfaceSOAPElement
- Parameters:
localName
- aString
giving the local name for the element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object
-
addChildElement
Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the specified local name and prefix and adds the new element to thisSOAPElement
object.- Specified by:
addChildElement
in interfaceSOAPElement
- Parameters:
localName
- aString
giving the local name for the new elementprefix
- aString
giving the namespace prefix for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if theprefix
is not valid in the context of thisSOAPElement
or if there is an error in creating theSOAPElement
object
-
getNamespaceURI
Description copied from interface:SOAPElement
Returns the URI of the namespace that has the given prefix.- Specified by:
getNamespaceURI
in interfaceSOAPElement
- Parameters:
prefix
- aString
giving the prefix of the namespace for which to search- Returns:
- a
String
with the uri of the namespace that has the given prefix
-
setElementQName
Description copied from interface:SOAPElement
Changes the name of thisElement
tonewName
if possible. SOAP Defined elements such as SOAPEnvelope, SOAPHeader, SOAPBody etc. cannot have their names changed using this method. Any attempt to do so will result in a SOAPException being thrown.Callers should not rely on the element instance being renamed as is. Implementations could end up copying the content of the
SOAPElement
to a renamed instance.- Specified by:
setElementQName
in interfaceSOAPElement
- Parameters:
newName
- the new name for theElement
.- Returns:
- The renamed Node
- Throws:
SOAPException
- if changing the name of thisElement
is not allowed.
-
createQName
Description copied from interface:SOAPElement
Creates aQName
whose namespace URI is the one associated with the parameter,prefix
, in the context of thisSOAPElement
. The remaining elements of the newQName
are taken directly from the parameters,localName
andprefix
.- Specified by:
createQName
in interfaceSOAPElement
- Parameters:
localName
- aString
containing the local part of the name.prefix
- aString
containing the prefix for the name.- Returns:
- a
QName
with the specifiedlocalName
andprefix
, and with a namespace that is associated with theprefix
in the context of thisSOAPElement
. This namespace will be the same as the one that would be returned bySOAPElement.getNamespaceURI(String)
if it were givenprefix
as it's parameter. - Throws:
SOAPException
- if theQName
cannot be created.
-
getNamespacePrefix
-
getNamespaceAttr
-
getNamespaceContextNodes
-
getNamespaceContextNodes
-
addChildElement
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException Description copied from interface:SOAPElement
Creates a newSOAPElement
object initialized with the specified local name, prefix, and URI and adds the new element to thisSOAPElement
object.- Specified by:
addChildElement
in interfaceSOAPElement
- Parameters:
localName
- aString
giving the local name for the new elementprefix
- aString
giving the namespace prefix for the new elementuri
- aString
giving the URI of the namespace to which the new element belongs- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object
-
addChildElement
Description copied from interface:SOAPElement
Add aSOAPElement
as a child of thisSOAPElement
instance. TheSOAPElement
is expected to be created by aSOAPFactory
. Callers should not rely on the element instance being added as is into the XML tree. Implementations could end up copying the content of theSOAPElement
passed into an instance of a differentSOAPElement
implementation. For instance ifaddChildElement()
is called on aSOAPHeader
,element
will be copied into an instance of aSOAPHeaderElement
.The fragment rooted in
element
is either added as a whole or not at all, if there was an error.The fragment rooted in
element
cannot contain elements named "Envelope", "Header" or "Body" and in the SOAP namespace. Any namespace prefixes present in the fragment should be fully resolved using appropriate namespace declarations within the fragment itself.- Specified by:
addChildElement
in interfaceSOAPElement
- Parameters:
element
- theSOAPElement
to be added as a new child- Returns:
- an instance representing the new SOAP element that was actually added to the tree.
- Throws:
SOAPException
- if there was an error in adding this element as a child
-
importElement
-
addElement
- Throws:
SOAPException
-
addElement
- Throws:
SOAPException
-
createElement
-
createElement
-
addNode
- Throws:
SOAPException
-
findChild
-
findAndConvertChildElement
-
addTextNode
Description copied from interface:SOAPElement
Creates a newText
object initialized with the givenString
and adds it to thisSOAPElement
object.- Specified by:
addTextNode
in interfaceSOAPElement
- Parameters:
text
- aString
object with the textual content to be added- Returns:
- the
SOAPElement
object into which the newText
object was inserted - Throws:
SOAPException
- if there is an error in creating the newText
object or if it is not legal to attach it as a child to thisSOAPElement
-
addCDATA
- Throws:
SOAPException
-
addText
- Throws:
SOAPException
-
addAttribute
Description copied from interface:SOAPElement
Adds an attribute with the specified name and value to thisSOAPElement
object.- Specified by:
addAttribute
in interfaceSOAPElement
- Parameters:
name
- aName
object with the name of the attributevalue
- aString
giving the value of the attribute- Returns:
- the
SOAPElement
object into which the attribute was inserted - Throws:
SOAPException
- if there is an error in creating the Attribute, or it is invalid to set an attribute withName
name
on this SOAPElement.- See Also:
-
addAttribute
Description copied from interface:SOAPElement
Adds an attribute with the specified name and value to thisSOAPElement
object.- Specified by:
addAttribute
in interfaceSOAPElement
- Parameters:
qname
- aQName
object with the name of the attributevalue
- aString
giving the value of the attribute- Returns:
- the
SOAPElement
object into which the attribute was inserted - Throws:
SOAPException
- if there is an error in creating the Attribute, or it is invalid to set an attribute withQName
qname
on this SOAPElement.- See Also:
-
addNamespaceDeclaration
Description copied from interface:SOAPElement
Adds a namespace declaration with the specified prefix and URI to thisSOAPElement
object.- Specified by:
addNamespaceDeclaration
in interfaceSOAPElement
- Parameters:
prefix
- aString
giving the prefix of the namespaceuri
- aString
giving the uri of the namespace- Returns:
- the
SOAPElement
object into which this namespace declaration was inserted. - Throws:
SOAPException
- if there is an error in creating the namespace
-
getAttributeValue
Description copied from interface:SOAPElement
Returns the value of the attribute with the specified name.- Specified by:
getAttributeValue
in interfaceSOAPElement
- Parameters:
name
- aName
object with the name of the attribute- Returns:
- a
String
giving the value of the specified attribute, Null if there is no such attribute - See Also:
-
getAttributeValue
Description copied from interface:SOAPElement
Returns the value of the attribute with the specified qname.- Specified by:
getAttributeValue
in interfaceSOAPElement
- Parameters:
qname
- aQName
object with the qname of the attribute- Returns:
- a
String
giving the value of the specified attribute, Null if there is no such attribute - See Also:
-
getAllAttributes
Description copied from interface:SOAPElement
Returns anIterator
over all the attributeName
objects in thisSOAPElement
object. The iterator can be used to get the attribute names, which can then be passed to the methodgetAttributeValue
to retrieve the value of each attribute.- Specified by:
getAllAttributes
in interfaceSOAPElement
- Returns:
- an iterator over the names of the attributes
- See Also:
-
getAllAttributesAsQNames
Description copied from interface:SOAPElement
Returns anIterator
over all the attributes in thisSOAPElement
asQName
objects. The iterator can be used to get the attribute QName, which can then be passed to the methodgetAttributeValue
to retrieve the value of each attribute.- Specified by:
getAllAttributesAsQNames
in interfaceSOAPElement
- Returns:
- an iterator over the QNames of the attributes
- See Also:
-
getNamespacePrefixes
Description copied from interface:SOAPElement
Returns anIterator
over the namespace prefixString
s declared by this element. The prefixes returned by this iterator can be passed to the methodgetNamespaceURI
to retrieve the URI of each namespace.- Specified by:
getNamespacePrefixes
in interfaceSOAPElement
- Returns:
- an iterator over the namespace prefixes in this
SOAPElement
object
-
getVisibleNamespacePrefixes
Description copied from interface:SOAPElement
Returns anIterator
over the namespace prefixString
s visible to this element. The prefixes returned by this iterator can be passed to the methodgetNamespaceURI
to retrieve the URI of each namespace.- Specified by:
getVisibleNamespacePrefixes
in interfaceSOAPElement
- Returns:
- an iterator over the namespace prefixes are within scope of this
SOAPElement
object
-
doGetNamespacePrefixes
-
getElementName
Description copied from interface:SOAPElement
Returns the name of thisSOAPElement
object.- Specified by:
getElementName
in interfaceSOAPElement
- Returns:
- a
Name
object with the name of thisSOAPElement
object
-
getElementQName
Description copied from interface:SOAPElement
Returns the qname of thisSOAPElement
object.- Specified by:
getElementQName
in interfaceSOAPElement
- Returns:
- a
QName
object with the qname of thisSOAPElement
object - See Also:
-
removeAttribute
Description copied from interface:SOAPElement
Removes the attribute with the specified name.- Specified by:
removeAttribute
in interfaceSOAPElement
- Parameters:
name
- theName
object with the name of the attribute to be removed- Returns:
true
if the attribute was removed successfully;false
if it was not- See Also:
-
removeAttribute
Description copied from interface:SOAPElement
Removes the attribute with the specified qname.- Specified by:
removeAttribute
in interfaceSOAPElement
- Parameters:
name
- theQName
object with the qname of the attribute to be removed- Returns:
true
if the attribute was removed successfully;false
if it was not- See Also:
-
removeNamespaceDeclaration
Description copied from interface:SOAPElement
Removes the namespace declaration corresponding to the given prefix.- Specified by:
removeNamespaceDeclaration
in interfaceSOAPElement
- Parameters:
prefix
- aString
giving the prefix for which to search- Returns:
true
if the namespace declaration was removed successfully;false
if it was not
-
getChildElements
Description copied from interface:SOAPElement
Returns anIterator
over all the immediate childNode
s of this element. This includesjakarta.xml.soap.Text
objects as well asSOAPElement
objects.Calling this method must cause child
Element
,SOAPElement
andorg.w3c.dom.Text
nodes to be replaced bySOAPElement
,SOAPHeaderElement
,SOAPBodyElement
orjakarta.xml.soap.Text
nodes as appropriate for the type of this parent node. As a result the calling application must treat any existing references to these child nodes that have been obtained through DOM APIs as invalid and either discard them or refresh them with the values returned by thisIterator
. This behavior can be avoided by calling the equivalent DOM APIs. Seejakarta.xml.soap
for more details.- Specified by:
getChildElements
in interfaceSOAPElement
- Returns:
- an iterator with the content of this
SOAPElement
object
-
convertToSoapElement
-
convertToSoapText
-
replaceElementWithSOAPElement
-
getChildElementNodes
-
getChildElements
Description copied from interface:SOAPElement
Returns anIterator
over all the immediate childNode
s of this element with the specified name. All of these children will beSOAPElement
nodes.Calling this method must cause child
Element
,SOAPElement
andorg.w3c.dom.Text
nodes to be replaced bySOAPElement
,SOAPHeaderElement
,SOAPBodyElement
orjakarta.xml.soap.Text
nodes as appropriate for the type of this parent node. As a result the calling application must treat any existing references to these child nodes that have been obtained through DOM APIs as invalid and either discard them or refresh them with the values returned by thisIterator
. This behavior can be avoided by calling the equivalent DOM APIs. Seejakarta.xml.soap
for more details.- Specified by:
getChildElements
in interfaceSOAPElement
- Parameters:
name
- aName
object with the name of the child elements to be returned- Returns:
- an
Iterator
object over all the elements in thisSOAPElement
object with the specified name - See Also:
-
getChildElements
Description copied from interface:SOAPElement
Returns anIterator
over all the immediate childNode
s of this element with the specified qname. All of these children will beSOAPElement
nodes.Calling this method must cause child
Element
,SOAPElement
andorg.w3c.dom.Text
nodes to be replaced bySOAPElement
,SOAPHeaderElement
,SOAPBodyElement
orjakarta.xml.soap.Text
nodes as appropriate for the type of this parent node. As a result the calling application must treat any existing references to these child nodes that have been obtained through DOM APIs as invalid and either discard them or refresh them with the values returned by thisIterator
. This behavior can be avoided by calling the equivalent DOM APIs. Seejakarta.xml.soap
for more details.- Specified by:
getChildElements
in interfaceSOAPElement
- Parameters:
qname
- aQName
object with the qname of the child elements to be returned- Returns:
- an
Iterator
object over all the elements in thisSOAPElement
object with the specified qname - See Also:
-
removeContents
public void removeContents()Description copied from interface:SOAPElement
Detaches all children of thisSOAPElement
.This method is useful for rolling back the construction of partially completed
SOAPHeaders
andSOAPBodys
in preparation for sending a fault when an error condition is detected. It is also useful for recycling portions of a document within a SOAP message.- Specified by:
removeContents
in interfaceSOAPElement
-
setEncodingStyle
Description copied from interface:SOAPElement
Sets the encoding style for thisSOAPElement
object to one specified.- Specified by:
setEncodingStyle
in interfaceSOAPElement
- Parameters:
encodingStyle
- aString
giving the encoding style- Throws:
SOAPException
- if setting the encodingStyle is invalid for this SOAPElement.- See Also:
-
getEncodingStyle
Description copied from interface:SOAPElement
Returns the encoding style for thisSOAPElement
object.- Specified by:
getEncodingStyle
in interfaceSOAPElement
- Returns:
- a
String
giving the encoding style - See Also:
-
getValue
Description copied from interface:Node
Returns the value of this node if this is aText
node or the value of the immediate child of this node otherwise. If there is an immediate child of thisNode
that it is aText
node then it's value will be returned. If there is more than oneText
node then the value of the firstText
Node will be returned. Otherwisenull
is returned. -
setValue
Description copied from interface:Node
If this is a Text node then this method will set its value, otherwise it sets the value of the immediate (Text) child of this node. The value of the immediate child of this node can be set only if, there is one child node and that node is aText
node, or if there are no children in which case a childText
node will be created. -
getValueNodeStrict
-
getValueNode
-
setParentElement
Description copied from interface:Node
Sets the parent of thisNode
object to the givenSOAPElement
object.- Specified by:
setParentElement
in interfaceNode
- Parameters:
element
- theSOAPElement
object to be set as the parent of thisNode
object- Throws:
SOAPException
- if there is a problem in setting the parent to the given element- See Also:
-
findEncodingStyleAttributeName
- Throws:
SOAPException
-
setEncodingStyleNamespace
protected void setEncodingStyleNamespace(String soapNamespace, String soapNamespacePrefix) throws SOAPException - Throws:
SOAPException
-
getParentElement
Description copied from interface:Node
Returns the parent element of thisNode
object. This method can throw anUnsupportedOperationException
if the tree is not kept in memory.- Specified by:
getParentElement
in interfaceNode
- Returns:
- the
SOAPElement
object that is the parent of thisNode
object ornull
if thisNode
object is root - See Also:
-
getSOAPNamespace
-
detachNode
public void detachNode()Description copied from interface:Node
Removes thisNode
object from the tree.- Specified by:
detachNode
in interfaceNode
-
tryToFindEncodingStyleAttributeName
public void tryToFindEncodingStyleAttributeName() -
recycleNode
public void recycleNode()Description copied from interface:Node
Notifies the implementation that thisNode
object is no longer being used by the application and that the implementation is free to reuse this object for nodes that may be created later.Calling the method
recycleNode
implies that the methoddetachNode
has been called previously.- Specified by:
recycleNode
in interfaceNode
-
getNamespaceAttrFrom
-
getAllAttributesFrom
-
getAttributeValueFrom
-
getChildElementsFrom
-
getQualifiedName
-
getLocalPart
-
getPrefix
-
isNamespaceQualified
-
isNamespaceQualified
-
setAttributeNS
- Specified by:
setAttributeNS
in interfaceElement
-
removeAttributeNS
- Specified by:
removeAttributeNS
in interfaceElement
- Throws:
DOMException
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNS
in interfaceElement
- Throws:
DOMException
-
hasAttribute
- Specified by:
hasAttribute
in interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNS
in interfaceElement
- Throws:
DOMException
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfo
in interfaceElement
-
setIdAttribute
- Specified by:
setIdAttribute
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Specified by:
setIdAttributeNS
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNode
- Specified by:
setIdAttributeNode
in interfaceElement
- Throws:
DOMException
-
getNodeName
- Specified by:
getNodeName
in interfaceNode
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeType
in interfaceNode
-
getParentNode
- Specified by:
getParentNode
in interfaceNode
-
getChildNodes
- Specified by:
getChildNodes
in interfaceNode
-
getFirstChild
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
- Specified by:
getLastChild
in interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSibling
in interfaceNode
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
-
getDomElement
-
getSoapDocument
-