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 Elementpublic String getAttribute(String name)
getAttribute in interface Elementpublic void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionpublic void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionpublic Attr getAttributeNode(String name)
getAttributeNode in interface Elementpublic Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionpublic Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionpublic NodeList getElementsByTagName(String name)
getElementsByTagName in interface Elementpublic String getAttributeNS(String namespaceURI, String localName) throws DOMException
getAttributeNS in interface ElementDOMExceptionpublic Document getOwnerDocument()
getOwnerDocument in interface Nodepublic Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodeDOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NodeDOMExceptionpublic Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface Nodepublic boolean isSupported(String feature, String version)
isSupported in interface Nodepublic String getNamespaceURI()
getNamespaceURI in interface Nodepublic void setPrefix(String prefix) throws DOMException
setPrefix in interface NodeDOMExceptionpublic String getLocalName()
getLocalName in interface Nodepublic boolean hasAttributes()
hasAttributes in interface Nodepublic String getBaseURI()
getBaseURI in interface Nodepublic short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition in interface NodeDOMExceptionpublic String getTextContent() throws DOMException
getTextContent in interface NodeDOMExceptionpublic void setTextContent(String textContent) throws DOMException
setTextContent in interface NodeDOMExceptionpublic boolean isSameNode(Node other)
isSameNode in interface Nodepublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface Nodepublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface Nodepublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface Nodepublic boolean isEqualNode(Node arg)
isEqualNode in interface Nodepublic Object getFeature(String feature, String version)
getFeature in interface Nodepublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface Nodepublic Object getUserData(String key)
getUserData in interface Nodepublic SOAPElement addChildElement(Name name) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(QName qname) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(String localName) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(String localName, String prefix) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic String getNamespaceURI(String prefix)
getNamespaceURI in interface SOAPElementpublic SOAPElement setElementQName(QName newName) throws SOAPException
setElementQName in interface SOAPElementSOAPExceptionpublic QName createQName(String localName, String prefix) throws SOAPException
createQName in interface SOAPElementSOAPExceptionpublic NamespaceContextIterator getNamespaceContextNodes()
public NamespaceContextIterator getNamespaceContextNodes(boolean traverseStack)
public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionpublic SOAPElement addChildElement(SOAPElement element) throws SOAPException
addChildElement in interface SOAPElementSOAPExceptionprotected SOAPElement addElement(Name name) throws SOAPException
SOAPExceptionprotected SOAPElement addElement(QName name) throws SOAPException
SOAPExceptionprotected SOAPElement createElement(Name name)
protected SOAPElement createElement(QName name)
protected void addNode(Node newElement) throws SOAPException
SOAPExceptionprotected SOAPElement findChild(NameImpl name)
protected SOAPElement findAndConvertChildElement(NameImpl name)
public SOAPElement addTextNode(String text) throws SOAPException
addTextNode in interface SOAPElementSOAPExceptionprotected SOAPElement addCDATA(String text) throws SOAPException
SOAPExceptionprotected SOAPElement addText(String text) throws SOAPException
SOAPExceptionpublic SOAPElement addAttribute(Name name, String value) throws SOAPException
addAttribute in interface SOAPElementSOAPExceptionpublic SOAPElement addAttribute(QName qname, String value) throws SOAPException
addAttribute in interface SOAPElementSOAPExceptionpublic SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException
addNamespaceDeclaration in interface SOAPElementSOAPExceptionpublic String getAttributeValue(Name name)
getAttributeValue in interface SOAPElementpublic String getAttributeValue(QName qname)
getAttributeValue in interface SOAPElementpublic Iterator<Name> getAllAttributes()
getAllAttributes in interface SOAPElementpublic Iterator<QName> getAllAttributesAsQNames()
getAllAttributesAsQNames in interface SOAPElementpublic Iterator<String> getNamespacePrefixes()
getNamespacePrefixes in interface SOAPElementpublic Iterator<String> getVisibleNamespacePrefixes()
getVisibleNamespacePrefixes in interface SOAPElementpublic Name getElementName()
getElementName in interface SOAPElementpublic QName getElementQName()
getElementQName in interface SOAPElementpublic boolean removeAttribute(Name name)
removeAttribute in interface SOAPElementpublic boolean removeAttribute(QName name)
removeAttribute in interface SOAPElementpublic boolean removeNamespaceDeclaration(String prefix)
removeNamespaceDeclaration in interface SOAPElementpublic Iterator<Node> getChildElements()
getChildElements in interface SOAPElementprotected 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 SOAPElementpublic Iterator<Node> getChildElements(QName qname)
getChildElements in interface SOAPElementpublic void removeContents()
removeContents in interface SOAPElementpublic void setEncodingStyle(String encodingStyle) throws SOAPException
setEncodingStyle in interface SOAPElementSOAPExceptionpublic String getEncodingStyle()
getEncodingStyle in interface SOAPElementpublic String getValue()
public void setValue(String value)
protected Node getValueNodeStrict()
protected Node getValueNode()
public void setParentElement(SOAPElement element) throws SOAPException
SOAPExceptionprotected void findEncodingStyleAttributeName()
throws SOAPException
SOAPExceptionprotected void setEncodingStyleNamespace(String soapNamespace, String soapNamespacePrefix) throws SOAPException
SOAPExceptionpublic 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 Elementpublic void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionpublic Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException
getAttributeNodeNS in interface ElementDOMExceptionpublic Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionpublic NodeList getElementsByTagNameNS(String namespaceURI, String localName) throws DOMException
getElementsByTagNameNS in interface ElementDOMExceptionpublic boolean hasAttribute(String name)
hasAttribute in interface Elementpublic boolean hasAttributeNS(String namespaceURI, String localName) throws DOMException
hasAttributeNS in interface ElementDOMExceptionpublic TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface Elementpublic void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute in interface ElementDOMExceptionpublic void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionpublic void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode in interface ElementDOMExceptionpublic String getNodeName()
getNodeName in interface Nodepublic String getNodeValue() throws DOMException
getNodeValue in interface NodeDOMExceptionpublic void setNodeValue(String nodeValue) throws DOMException
setNodeValue in interface NodeDOMExceptionpublic short getNodeType()
getNodeType in interface Nodepublic Node getParentNode()
getParentNode in interface Nodepublic NodeList getChildNodes()
getChildNodes in interface Nodepublic Node getFirstChild()
getFirstChild in interface Nodepublic Node getLastChild()
getLastChild in interface Nodepublic Node getPreviousSibling()
getPreviousSibling in interface Nodepublic Node getNextSibling()
getNextSibling in interface Nodepublic NamedNodeMap getAttributes()
getAttributes in interface Nodepublic Element getDomElement()
public SOAPDocumentImpl getSoapDocument()
Copyright © 2005–2017 Oracle Corporation. All rights reserved.