public class ElementImpl extends Object implements SOAPElement, SOAPBodyElement
Modifier and Type | Field and Description |
---|---|
static String |
DSIG_NS |
protected QName |
elementQName |
protected static Logger |
log |
static String |
WSU_NS |
static String |
XENC_NS |
static String |
XML_URI
The XML Namespace ("http://www.w3.org/XML/1998/namespace").
|
static String |
XMLNS_URI
XML Information Set REC
all namespace attributes (including those named xmlns,
whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
|
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 and Description |
---|
ElementImpl(SOAPDocumentImpl ownerDoc,
Element domElement) |
ElementImpl(SOAPDocumentImpl ownerDoc,
Name name) |
ElementImpl(SOAPDocumentImpl ownerDoc,
QName name) |
ElementImpl(SOAPDocumentImpl ownerDoc,
String uri,
String qualifiedName) |
public static final String DSIG_NS
public static final String XENC_NS
public static final String WSU_NS
protected QName elementQName
protected static final Logger log
public static final String XMLNS_URI
public static final String XML_URI
public ElementImpl(SOAPDocumentImpl ownerDoc, Name name)
public ElementImpl(SOAPDocumentImpl ownerDoc, QName name)
public ElementImpl(SOAPDocumentImpl ownerDoc, Element domElement)
public ElementImpl(SOAPDocumentImpl ownerDoc, String uri, String qualifiedName)
public String getTagName()
getTagName
in interface Element
public String getAttribute(String name)
getAttribute
in interface Element
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
DOMException
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
public String getAttributeNS(String namespaceURI, String localName) throws DOMException
getAttributeNS
in interface Element
DOMException
public Document getOwnerDocument()
getOwnerDocument
in interface Node
public Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore
in interface Node
DOMException
public Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild
in interface Node
DOMException
public Node removeChild(Node oldChild) throws DOMException
removeChild
in interface Node
DOMException
public Node appendChild(Node newChild) throws DOMException
appendChild
in interface Node
DOMException
public boolean hasChildNodes()
hasChildNodes
in interface Node
public boolean isSupported(String feature, String version)
isSupported
in interface Node
public String getNamespaceURI()
getNamespaceURI
in interface Node
public void setPrefix(String prefix) throws DOMException
setPrefix
in interface Node
DOMException
public String getLocalName()
getLocalName
in interface Node
public boolean hasAttributes()
hasAttributes
in interface Node
public String getBaseURI()
getBaseURI
in interface Node
public short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition
in interface Node
DOMException
public String getTextContent() throws DOMException
getTextContent
in interface Node
DOMException
public void setTextContent(String textContent) throws DOMException
setTextContent
in interface Node
DOMException
public boolean isSameNode(Node other)
isSameNode
in interface Node
public String lookupPrefix(String namespaceURI)
lookupPrefix
in interface Node
public boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace
in interface Node
public String lookupNamespaceURI(String prefix)
lookupNamespaceURI
in interface Node
public boolean isEqualNode(Node arg)
isEqualNode
in interface Node
public Object getFeature(String feature, String version)
getFeature
in interface Node
public Object setUserData(String key, Object data, UserDataHandler handler)
setUserData
in interface Node
public Object getUserData(String key)
getUserData
in interface Node
public SOAPElement addChildElement(Name name) throws SOAPException
addChildElement
in interface SOAPElement
SOAPException
public SOAPElement addChildElement(QName qname) throws SOAPException
addChildElement
in interface SOAPElement
SOAPException
public SOAPElement addChildElement(String localName) throws SOAPException
addChildElement
in interface SOAPElement
SOAPException
public SOAPElement addChildElement(String localName, String prefix) throws SOAPException
addChildElement
in interface SOAPElement
SOAPException
public String getNamespaceURI(String prefix)
getNamespaceURI
in interface SOAPElement
public SOAPElement setElementQName(QName newName) throws SOAPException
setElementQName
in interface SOAPElement
SOAPException
public QName createQName(String localName, String prefix) throws SOAPException
createQName
in interface SOAPElement
SOAPException
public NamespaceContextIterator getNamespaceContextNodes()
public NamespaceContextIterator getNamespaceContextNodes(boolean traverseStack)
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException
addChildElement
in interface SOAPElement
SOAPException
public SOAPElement addChildElement(SOAPElement element) throws SOAPException
addChildElement
in interface SOAPElement
SOAPException
protected SOAPElement addElement(Name name) throws SOAPException
SOAPException
protected SOAPElement addElement(QName name) throws SOAPException
SOAPException
protected SOAPElement createElement(Name name)
protected SOAPElement createElement(QName name)
protected void addNode(Node newElement) throws SOAPException
SOAPException
protected SOAPElement findChild(NameImpl name)
protected SOAPElement findAndConvertChildElement(NameImpl name)
public SOAPElement addTextNode(String text) throws SOAPException
addTextNode
in interface SOAPElement
SOAPException
protected SOAPElement addCDATA(String text) throws SOAPException
SOAPException
protected SOAPElement addText(String text) throws SOAPException
SOAPException
public SOAPElement addAttribute(Name name, String value) throws SOAPException
addAttribute
in interface SOAPElement
SOAPException
public SOAPElement addAttribute(QName qname, String value) throws SOAPException
addAttribute
in interface SOAPElement
SOAPException
public SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException
addNamespaceDeclaration
in interface SOAPElement
SOAPException
public String getAttributeValue(Name name)
getAttributeValue
in interface SOAPElement
public String getAttributeValue(QName qname)
getAttributeValue
in interface SOAPElement
public Iterator<Name> getAllAttributes()
getAllAttributes
in interface SOAPElement
public Iterator<QName> getAllAttributesAsQNames()
getAllAttributesAsQNames
in interface SOAPElement
public Iterator<String> getNamespacePrefixes()
getNamespacePrefixes
in interface SOAPElement
public Iterator<String> getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes
in interface SOAPElement
public Name getElementName()
getElementName
in interface SOAPElement
public QName getElementQName()
getElementQName
in interface SOAPElement
public boolean removeAttribute(Name name)
removeAttribute
in interface SOAPElement
public boolean removeAttribute(QName name)
removeAttribute
in interface SOAPElement
public boolean removeNamespaceDeclaration(String prefix)
removeNamespaceDeclaration
in interface SOAPElement
public Iterator<Node> getChildElements()
getChildElements
in interface SOAPElement
protected SOAPElement convertToSoapElement(Element element)
protected TextImpl convertToSoapText(CharacterData characterData)
protected SOAPElement replaceElementWithSOAPElement(Element element, ElementImpl copy)
public Iterator<Node> getChildElements(Name name)
getChildElements
in interface SOAPElement
public Iterator<Node> getChildElements(QName qname)
getChildElements
in interface SOAPElement
public void removeContents()
removeContents
in interface SOAPElement
public void setEncodingStyle(String encodingStyle) throws SOAPException
setEncodingStyle
in interface SOAPElement
SOAPException
public String getEncodingStyle()
getEncodingStyle
in interface SOAPElement
public String getValue()
public void setValue(String value)
protected Node getValueNodeStrict()
protected Node getValueNode()
public void setParentElement(SOAPElement element) throws SOAPException
SOAPException
protected void findEncodingStyleAttributeName() throws SOAPException
SOAPException
protected void setEncodingStyleNamespace(String soapNamespace, String soapNamespacePrefix) throws SOAPException
SOAPException
public SOAPElement getParentElement()
protected String getSOAPNamespace()
public void detachNode()
public void tryToFindEncodingStyleAttributeName()
public void recycleNode()
protected boolean isNamespaceQualified(Name name)
protected boolean isNamespaceQualified(QName name)
public void setAttributeNS(String namespaceURI, String qualifiedName, String value)
setAttributeNS
in interface Element
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
DOMException
public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
getAttributeNodeNS
in interface Element
DOMException
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
public NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
getElementsByTagNameNS
in interface Element
DOMException
public boolean hasAttribute(String name)
hasAttribute
in interface Element
public boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS
in interface Element
DOMException
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in interface Element
DOMException
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in interface Element
DOMException
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in interface Element
DOMException
public String getNodeName()
getNodeName
in interface Node
public String getNodeValue() throws DOMException
getNodeValue
in interface Node
DOMException
public void setNodeValue(String nodeValue) throws DOMException
setNodeValue
in interface Node
DOMException
public short getNodeType()
getNodeType
in interface Node
public Node getParentNode()
getParentNode
in interface Node
public NodeList getChildNodes()
getChildNodes
in interface Node
public Node getFirstChild()
getFirstChild
in interface Node
public Node getLastChild()
getLastChild
in interface Node
public Node getPreviousSibling()
getPreviousSibling
in interface Node
public Node getNextSibling()
getNextSibling
in interface Node
public NamedNodeMap getAttributes()
getAttributes
in interface Node
public Element getDomElement()
public SOAPDocumentImpl getSoapDocument()
Copyright © 2019 Oracle. All rights reserved.