- All Implemented Interfaces:
Node,SOAPBodyElement,SOAPElement,Element,Node
- Direct Known Subclasses:
BodyElementImpl,BodyImpl,DetailEntryImpl,EnvelopeImpl,FaultElementImpl,FaultImpl,HeaderElementImpl,HeaderImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected QNamestatic final Stringstatic final StringFields 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
ConstructorsConstructorDescriptionElementImpl(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 thisSOAPElementobject.addAttribute(QName qname, String value) Adds an attribute with the specified name and value to thisSOAPElementobject.protected SOAPElementaddChildElement(Name name) Creates a newSOAPElementobject initialized with the givenNameobject and adds the new element to thisSOAPElementobject.addChildElement(SOAPElement element) Add aSOAPElementas a child of thisSOAPElementinstance.addChildElement(String localName) Creates a newSOAPElementobject initialized with the specified local name and adds the new element to thisSOAPElementobject.addChildElement(String localName, String prefix) Creates a newSOAPElementobject initialized with the specified local name and prefix and adds the new element to thisSOAPElementobject.addChildElement(String localName, String prefix, String uri) Creates a newSOAPElementobject initialized with the specified local name, prefix, and URI and adds the new element to thisSOAPElementobject.addChildElement(QName qname) Creates a newSOAPElementobject initialized with the givenQNameobject and adds the new element to thisSOAPElementobject.protected SOAPElementaddElement(Name name) protected SOAPElementaddElement(QName name) addNamespaceDeclaration(String prefix, String uri) Adds a namespace declaration with the specified prefix and URI to thisSOAPElementobject.protected voidprotected SOAPElementaddTextNode(String text) Creates a newTextobject initialized with the givenStringand adds it to thisSOAPElementobject.appendChild(Node newChild) cloneNode(boolean deep) shortcompareDocumentPosition(Node other) protected SOAPElementconvertToSoapElement(Element element) protected TextImplconvertToSoapText(CharacterData characterData) protected SOAPElementcreateElement(Name name) protected SOAPElementcreateElement(QName name) createQName(String localName, String prefix) Creates aQNamewhose namespace URI is the one associated with the parameter,prefix, in the context of thisSOAPElement.voidRemoves thisNodeobject from the tree.doGetNamespacePrefixes(boolean deep) voidensureNamespaceIsDeclared(String prefix, String uri) protected SOAPElementprotected SOAPElementprotected voidReturns anIteratorover all the attributeNameobjects in thisSOAPElementobject.Returns anIteratorover all the attributes in thisSOAPElementasQNameobjects.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 StringgetAttributeValueFrom(Element element, Name name) Returns anIteratorover all the immediate childNodes of this element.getChildElements(Name name) Returns anIteratorover all the immediate childNodes of this element with the specified name.getChildElements(QName qname) Returns anIteratorover all the immediate childNodes of this element with the specified qname.getChildElementsFrom(Element element) Returns the name of thisSOAPElementobject.Returns the qname of thisSOAPElementobject.getElementsByTagName(String name) getElementsByTagNameNS(String namespaceURI, String localName) Returns the encoding style for thisSOAPElementobject.getFeature(String feature, String version) static StringgetLocalPart(String qualifiedName) protected AttrgetNamespaceAttr(String prefix) protected static AttrgetNamespaceAttrFrom(Element element, String prefix) getNamespaceContextNodes(boolean traverseStack) getNamespacePrefix(String uri) Returns anIteratorover the namespace prefixStrings declared by this element.getNamespaceURI(String prefix) Returns the URI of the namespace that has the given prefix.shortReturns the parent element of thisNodeobject.static Stringstatic StringgetQualifiedName(QName name) protected StringgetUserData(String key) getValue()Returns the value of this node if this is aTextnode or the value of the immediate child of this node otherwise.protected Nodeprotected NodeReturns anIteratorover the namespace prefixStrings visible to this element.booleanhasAttribute(String name) booleanhasAttributeNS(String namespaceURI, String localName) booleanbooleanprotected ElementimportElement(Element element) insertBefore(Node newChild, Node refChild) booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node arg) protected booleanisNamespaceQualified(Name name) protected booleanisNamespaceQualified(QName name) booleanisSameNode(Node other) booleanisSupported(String feature, String version) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) voidvoidNotifies the implementation that thisNodeobject 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.booleanremoveAttribute(Name name) Removes the attribute with the specified name.voidremoveAttribute(String name) booleanremoveAttribute(QName name) Removes the attribute with the specified qname.removeAttributeNode(Attr oldAttr) voidremoveAttributeNS(String namespaceURI, String localName) removeChild(Node oldChild) voidDetaches all children of thisSOAPElement.booleanremoveNamespaceDeclaration(String prefix) Removes the namespace declaration corresponding to the given prefix.replaceChild(Node newChild, Node oldChild) protected SOAPElementreplaceElementWithSOAPElement(Element element, ElementImpl copy) voidsetAttribute(String name, String value) setAttributeNode(Attr newAttr) setAttributeNodeNS(Attr newAttr) voidsetAttributeNS(String namespaceURI, String qualifiedName, String value) setElementQName(QName newName) Changes the name of thisElementtonewNameif possible.voidsetEncodingStyle(String encodingStyle) Sets the encoding style for thisSOAPElementobject to one specified.protected voidsetEncodingStyleNamespace(String soapNamespace, String soapNamespacePrefix) voidsetIdAttribute(String name, boolean isId) voidsetIdAttributeNode(Attr idAttr, boolean isId) voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) voidsetNodeValue(String nodeValue) voidsetParentElement(SOAPElement element) Sets the parent of thisNodeobject to the givenSOAPElementobject.voidvoidsetTextContent(String textContent) setUserData(String key, Object data, UserDataHandler handler) voidIf 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:
getTagNamein interfaceElement
-
getAttribute
- Specified by:
getAttributein interfaceElement
-
setAttribute
- Specified by:
setAttributein interfaceElement- Throws:
DOMException
-
removeAttribute
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException
-
getAttributeNode
- Specified by:
getAttributeNodein interfaceElement
-
setAttributeNode
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException
-
removeAttributeNode
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceElement
-
getAttributeNS
- Specified by:
getAttributeNSin interfaceElement- Throws:
DOMException
-
ensureNamespaceIsDeclared
-
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
insertBefore
- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
removeChild
- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
appendChild
- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
cloneNode
-
normalize
public void normalize() -
isSupported
- Specified by:
isSupportedin interfaceNode
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getPrefix
-
setPrefix
- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode
-
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
getTextContent
- Specified by:
getTextContentin interfaceNode- Throws:
DOMException
-
setTextContent
- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-
addChildElement
Description copied from interface:SOAPElementCreates a newSOAPElementobject initialized with the givenNameobject and adds the new element to thisSOAPElementobject.This method may be deprecated in a future release of SAAJ in favor of addChildElement(javax.xml.namespace.QName)
- Specified by:
addChildElementin interfaceSOAPElement- Parameters:
name- aNameobject with the XML name for the new element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject- See Also:
-
addChildElement
Description copied from interface:SOAPElementCreates a newSOAPElementobject initialized with the givenQNameobject and adds the new element to thisSOAPElementobject. The namespace, localname and prefix of the newSOAPElementare all taken from theqnameargument.- Specified by:
addChildElementin interfaceSOAPElement- Parameters:
qname- aQNameobject with the XML name for the new element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject- See Also:
-
addChildElement
Description copied from interface:SOAPElementCreates a newSOAPElementobject initialized with the specified local name and adds the new element to thisSOAPElementobject. The newSOAPElementinherits any in-scope default namespace.- Specified by:
addChildElementin interfaceSOAPElement- Parameters:
localName- aStringgiving the local name for the element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject
-
addChildElement
Description copied from interface:SOAPElementCreates a newSOAPElementobject initialized with the specified local name and prefix and adds the new element to thisSOAPElementobject.- Specified by:
addChildElementin interfaceSOAPElement- Parameters:
localName- aStringgiving the local name for the new elementprefix- aStringgiving the namespace prefix for the new element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if theprefixis not valid in the context of thisSOAPElementor if there is an error in creating theSOAPElementobject
-
getNamespaceURI
Description copied from interface:SOAPElementReturns the URI of the namespace that has the given prefix.- Specified by:
getNamespaceURIin interfaceSOAPElement- Parameters:
prefix- aStringgiving the prefix of the namespace for which to search- Returns:
- a
Stringwith the uri of the namespace that has the given prefix
-
setElementQName
Description copied from interface:SOAPElementChanges the name of thisElementtonewNameif 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
SOAPElementto a renamed instance.- Specified by:
setElementQNamein interfaceSOAPElement- Parameters:
newName- the new name for theElement.- Returns:
- The renamed Node
- Throws:
SOAPException- if changing the name of thisElementis not allowed.
-
createQName
Description copied from interface:SOAPElementCreates aQNamewhose namespace URI is the one associated with the parameter,prefix, in the context of thisSOAPElement. The remaining elements of the newQNameare taken directly from the parameters,localNameandprefix.- Specified by:
createQNamein interfaceSOAPElement- Parameters:
localName- aStringcontaining the local part of the name.prefix- aStringcontaining the prefix for the name.- Returns:
- a
QNamewith the specifiedlocalNameandprefix, and with a namespace that is associated with theprefixin the context of thisSOAPElement. This namespace will be the same as the one that would be returned bySOAPElement.getNamespaceURI(String)if it were givenprefixas it's parameter. - Throws:
SOAPException- if theQNamecannot be created.
-
getNamespacePrefix
-
getNamespaceAttr
-
getNamespaceContextNodes
-
getNamespaceContextNodes
-
addChildElement
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException Description copied from interface:SOAPElementCreates a newSOAPElementobject initialized with the specified local name, prefix, and URI and adds the new element to thisSOAPElementobject.- Specified by:
addChildElementin interfaceSOAPElement- Parameters:
localName- aStringgiving the local name for the new elementprefix- aStringgiving the namespace prefix for the new elementuri- aStringgiving the URI of the namespace to which the new element belongs- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject
-
addChildElement
Description copied from interface:SOAPElementAdd aSOAPElementas a child of thisSOAPElementinstance. TheSOAPElementis 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 theSOAPElementpassed into an instance of a differentSOAPElementimplementation. For instance ifaddChildElement()is called on aSOAPHeader,elementwill be copied into an instance of aSOAPHeaderElement.The fragment rooted in
elementis either added as a whole or not at all, if there was an error.The fragment rooted in
elementcannot 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:
addChildElementin interfaceSOAPElement- Parameters:
element- theSOAPElementto 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:SOAPElementCreates a newTextobject initialized with the givenStringand adds it to thisSOAPElementobject.- Specified by:
addTextNodein interfaceSOAPElement- Parameters:
text- aStringobject with the textual content to be added- Returns:
- the
SOAPElementobject into which the newTextobject was inserted - Throws:
SOAPException- if there is an error in creating the newTextobject 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:SOAPElementAdds an attribute with the specified name and value to thisSOAPElementobject.- Specified by:
addAttributein interfaceSOAPElement- Parameters:
name- aNameobject with the name of the attributevalue- aStringgiving the value of the attribute- Returns:
- the
SOAPElementobject 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 withNamenameon this SOAPElement.- See Also:
-
addAttribute
Description copied from interface:SOAPElementAdds an attribute with the specified name and value to thisSOAPElementobject.- Specified by:
addAttributein interfaceSOAPElement- Parameters:
qname- aQNameobject with the name of the attributevalue- aStringgiving the value of the attribute- Returns:
- the
SOAPElementobject 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 withQNameqnameon this SOAPElement.- See Also:
-
addNamespaceDeclaration
Description copied from interface:SOAPElementAdds a namespace declaration with the specified prefix and URI to thisSOAPElementobject.- Specified by:
addNamespaceDeclarationin interfaceSOAPElement- Parameters:
prefix- aStringgiving the prefix of the namespaceuri- aStringgiving the uri of the namespace- Returns:
- the
SOAPElementobject into which this namespace declaration was inserted. - Throws:
SOAPException- if there is an error in creating the namespace
-
getAttributeValue
Description copied from interface:SOAPElementReturns the value of the attribute with the specified name.- Specified by:
getAttributeValuein interfaceSOAPElement- Parameters:
name- aNameobject with the name of the attribute- Returns:
- a
Stringgiving the value of the specified attribute, Null if there is no such attribute - See Also:
-
getAttributeValue
Description copied from interface:SOAPElementReturns the value of the attribute with the specified qname.- Specified by:
getAttributeValuein interfaceSOAPElement- Parameters:
qname- aQNameobject with the qname of the attribute- Returns:
- a
Stringgiving the value of the specified attribute, Null if there is no such attribute - See Also:
-
getAllAttributes
Description copied from interface:SOAPElementReturns anIteratorover all the attributeNameobjects in thisSOAPElementobject. The iterator can be used to get the attribute names, which can then be passed to the methodgetAttributeValueto retrieve the value of each attribute.- Specified by:
getAllAttributesin interfaceSOAPElement- Returns:
- an iterator over the names of the attributes
- See Also:
-
getAllAttributesAsQNames
Description copied from interface:SOAPElementReturns anIteratorover all the attributes in thisSOAPElementasQNameobjects. The iterator can be used to get the attribute QName, which can then be passed to the methodgetAttributeValueto retrieve the value of each attribute.- Specified by:
getAllAttributesAsQNamesin interfaceSOAPElement- Returns:
- an iterator over the QNames of the attributes
- See Also:
-
getNamespacePrefixes
Description copied from interface:SOAPElementReturns anIteratorover the namespace prefixStrings declared by this element. The prefixes returned by this iterator can be passed to the methodgetNamespaceURIto retrieve the URI of each namespace.- Specified by:
getNamespacePrefixesin interfaceSOAPElement- Returns:
- an iterator over the namespace prefixes in this
SOAPElementobject
-
getVisibleNamespacePrefixes
Description copied from interface:SOAPElementReturns anIteratorover the namespace prefixStrings visible to this element. The prefixes returned by this iterator can be passed to the methodgetNamespaceURIto retrieve the URI of each namespace.- Specified by:
getVisibleNamespacePrefixesin interfaceSOAPElement- Returns:
- an iterator over the namespace prefixes are within scope of this
SOAPElementobject
-
doGetNamespacePrefixes
-
getElementName
Description copied from interface:SOAPElementReturns the name of thisSOAPElementobject.- Specified by:
getElementNamein interfaceSOAPElement- Returns:
- a
Nameobject with the name of thisSOAPElementobject
-
getElementQName
Description copied from interface:SOAPElementReturns the qname of thisSOAPElementobject.- Specified by:
getElementQNamein interfaceSOAPElement- Returns:
- a
QNameobject with the qname of thisSOAPElementobject - See Also:
-
removeAttribute
Description copied from interface:SOAPElementRemoves the attribute with the specified name.- Specified by:
removeAttributein interfaceSOAPElement- Parameters:
name- theNameobject with the name of the attribute to be removed- Returns:
trueif the attribute was removed successfully;falseif it was not- See Also:
-
removeAttribute
Description copied from interface:SOAPElementRemoves the attribute with the specified qname.- Specified by:
removeAttributein interfaceSOAPElement- Parameters:
name- theQNameobject with the qname of the attribute to be removed- Returns:
trueif the attribute was removed successfully;falseif it was not- See Also:
-
removeNamespaceDeclaration
Description copied from interface:SOAPElementRemoves the namespace declaration corresponding to the given prefix.- Specified by:
removeNamespaceDeclarationin interfaceSOAPElement- Parameters:
prefix- aStringgiving the prefix for which to search- Returns:
trueif the namespace declaration was removed successfully;falseif it was not
-
getChildElements
Description copied from interface:SOAPElementReturns anIteratorover all the immediate childNodes of this element. This includesjakarta.xml.soap.Textobjects as well asSOAPElementobjects.Calling this method must cause child
Element,SOAPElementandorg.w3c.dom.Textnodes to be replaced bySOAPElement,SOAPHeaderElement,SOAPBodyElementorjakarta.xml.soap.Textnodes 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.soapfor more details.- Specified by:
getChildElementsin interfaceSOAPElement- Returns:
- an iterator with the content of this
SOAPElementobject
-
convertToSoapElement
-
convertToSoapText
-
replaceElementWithSOAPElement
-
getChildElementNodes
-
getChildElements
Description copied from interface:SOAPElementReturns anIteratorover all the immediate childNodes of this element with the specified name. All of these children will beSOAPElementnodes.Calling this method must cause child
Element,SOAPElementandorg.w3c.dom.Textnodes to be replaced bySOAPElement,SOAPHeaderElement,SOAPBodyElementorjakarta.xml.soap.Textnodes 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.soapfor more details.- Specified by:
getChildElementsin interfaceSOAPElement- Parameters:
name- aNameobject with the name of the child elements to be returned- Returns:
- an
Iteratorobject over all the elements in thisSOAPElementobject with the specified name - See Also:
-
getChildElements
Description copied from interface:SOAPElementReturns anIteratorover all the immediate childNodes of this element with the specified qname. All of these children will beSOAPElementnodes.Calling this method must cause child
Element,SOAPElementandorg.w3c.dom.Textnodes to be replaced bySOAPElement,SOAPHeaderElement,SOAPBodyElementorjakarta.xml.soap.Textnodes 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.soapfor more details.- Specified by:
getChildElementsin interfaceSOAPElement- Parameters:
qname- aQNameobject with the qname of the child elements to be returned- Returns:
- an
Iteratorobject over all the elements in thisSOAPElementobject with the specified qname - See Also:
-
removeContents
public void removeContents()Description copied from interface:SOAPElementDetaches all children of thisSOAPElement.This method is useful for rolling back the construction of partially completed
SOAPHeadersandSOAPBodysin 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:
removeContentsin interfaceSOAPElement
-
setEncodingStyle
Description copied from interface:SOAPElementSets the encoding style for thisSOAPElementobject to one specified.- Specified by:
setEncodingStylein interfaceSOAPElement- Parameters:
encodingStyle- aStringgiving the encoding style- Throws:
SOAPException- if setting the encodingStyle is invalid for this SOAPElement.- See Also:
-
getEncodingStyle
Description copied from interface:SOAPElementReturns the encoding style for thisSOAPElementobject.- Specified by:
getEncodingStylein interfaceSOAPElement- Returns:
- a
Stringgiving the encoding style - See Also:
-
getValue
Description copied from interface:NodeReturns the value of this node if this is aTextnode or the value of the immediate child of this node otherwise. If there is an immediate child of thisNodethat it is aTextnode then it's value will be returned. If there is more than oneTextnode then the value of the firstTextNode will be returned. Otherwisenullis returned. -
setValue
Description copied from interface:NodeIf 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 aTextnode, or if there are no children in which case a childTextnode will be created. -
getValueNodeStrict
-
getValueNode
-
setParentElement
Description copied from interface:NodeSets the parent of thisNodeobject to the givenSOAPElementobject.- Specified by:
setParentElementin interfaceNode- Parameters:
element- theSOAPElementobject to be set as the parent of thisNodeobject- 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:NodeReturns the parent element of thisNodeobject. This method can throw anUnsupportedOperationExceptionif the tree is not kept in memory.- Specified by:
getParentElementin interfaceNode- Returns:
- the
SOAPElementobject that is the parent of thisNodeobject ornullif thisNodeobject is root - See Also:
-
getSOAPNamespace
-
detachNode
public void detachNode()Description copied from interface:NodeRemoves thisNodeobject from the tree.- Specified by:
detachNodein interfaceNode
-
tryToFindEncodingStyleAttributeName
public void tryToFindEncodingStyleAttributeName() -
recycleNode
public void recycleNode()Description copied from interface:NodeNotifies the implementation that thisNodeobject 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
recycleNodeimplies that the methoddetachNodehas been called previously.- Specified by:
recycleNodein interfaceNode
-
getNamespaceAttrFrom
-
getAllAttributesFrom
-
getAttributeValueFrom
-
getChildElementsFrom
-
getQualifiedName
-
getLocalPart
-
getPrefix
-
isNamespaceQualified
-
isNamespaceQualified
-
setAttributeNS
- Specified by:
setAttributeNSin interfaceElement
-
removeAttributeNS
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNSin interfaceElement- Throws:
DOMException
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceElement- Throws:
DOMException
-
hasAttribute
- Specified by:
hasAttributein interfaceElement
-
hasAttributeNS
- Specified by:
hasAttributeNSin interfaceElement- Throws:
DOMException
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfoin interfaceElement
-
setIdAttribute
- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Specified by:
setIdAttributeNSin interfaceElement- Throws:
DOMException
-
setIdAttributeNode
- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode- Throws:
DOMException
-
setNodeValue
- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
getDomElement
-
getSoapDocument
-