public class ElementHelper extends NodeHelper implements Element
| Modifier and Type | Field and Description |
|---|---|
Element |
element |
nodeATTRIBUTE_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 |
|---|
ElementHelper(Element node) |
getElements, xpathElements, xpathStringpublic final Element element
public ElementHelper(Element node)
public String getNodeName()
getNodeName in interface NodegetNodeName in class NodeHelperpublic String getNodeValue() throws DOMException
getNodeValue in interface NodegetNodeValue in class NodeHelperDOMExceptionpublic void setNodeValue(String nodeValue) throws DOMException
setNodeValue in interface NodesetNodeValue in class NodeHelperDOMExceptionpublic short getNodeType()
getNodeType in interface NodegetNodeType in class NodeHelperpublic Node getParentNode()
getParentNode in interface NodegetParentNode in class NodeHelperpublic NodeList getChildNodes()
getChildNodes in interface NodegetChildNodes in class NodeHelperpublic Node getFirstChild()
getFirstChild in interface NodegetFirstChild in class NodeHelperpublic Node getLastChild()
getLastChild in interface NodegetLastChild in class NodeHelperpublic Node getPreviousSibling()
getPreviousSibling in interface NodegetPreviousSibling in class NodeHelperpublic Node getNextSibling()
getNextSibling in interface NodegetNextSibling in class NodeHelperpublic Document getOwnerDocument()
getOwnerDocument in interface NodegetOwnerDocument in class NodeHelperpublic Node insertBefore(Node newChild, Node refChild) throws DOMException
insertBefore in interface NodeinsertBefore in class NodeHelperDOMExceptionpublic Node replaceChild(Node newChild, Node oldChild) throws DOMException
replaceChild in interface NodereplaceChild in class NodeHelperDOMExceptionpublic Node removeChild(Node oldChild) throws DOMException
removeChild in interface NoderemoveChild in class NodeHelperDOMExceptionpublic boolean hasChildNodes()
hasChildNodes in interface NodehasChildNodes in class NodeHelperpublic void normalize()
normalize in interface Nodenormalize in class NodeHelperpublic boolean isSupported(String feature, String version)
isSupported in interface NodeisSupported in class NodeHelperpublic String getNamespaceURI()
getNamespaceURI in interface NodegetNamespaceURI in class NodeHelperpublic String getPrefix()
getPrefix in interface NodegetPrefix in class NodeHelperpublic void setPrefix(String prefix) throws DOMException
setPrefix in interface NodesetPrefix in class NodeHelperDOMExceptionpublic String getLocalName()
getLocalName in interface NodegetLocalName in class NodeHelperpublic boolean hasAttributes()
hasAttributes in interface NodehasAttributes in class NodeHelperpublic String getBaseURI()
getBaseURI in interface NodegetBaseURI in class NodeHelperpublic String getTextContent() throws DOMException
getTextContent in interface NodegetTextContent in class NodeHelperDOMExceptionpublic void setTextContent(String textContent) throws DOMException
setTextContent in interface NodesetTextContent in class NodeHelperDOMExceptionpublic boolean isSameNode(Node other)
isSameNode in interface NodeisSameNode in class NodeHelperpublic String lookupPrefix(String namespaceURI)
lookupPrefix in interface NodelookupPrefix in class NodeHelperpublic boolean isDefaultNamespace(String namespaceURI)
isDefaultNamespace in interface NodeisDefaultNamespace in class NodeHelperpublic String lookupNamespaceURI(String prefix)
lookupNamespaceURI in interface NodelookupNamespaceURI in class NodeHelperpublic boolean isEqualNode(Node arg)
isEqualNode in interface NodeisEqualNode in class NodeHelperpublic Object getFeature(String feature, String version)
getFeature in interface NodegetFeature in class NodeHelperpublic NamedNodeMap getAttributes()
getAttributes in interface NodegetAttributes in class NodeHelperpublic Node appendChild(Node newChild) throws DOMException
appendChild in interface NodeappendChild in class NodeHelperDOMExceptionpublic Node cloneNode(boolean deep)
cloneNode in interface NodecloneNode in class NodeHelperpublic short compareDocumentPosition(Node other) throws DOMException
compareDocumentPosition in interface NodecompareDocumentPosition in class NodeHelperDOMExceptionpublic Object setUserData(String key, Object data, UserDataHandler handler)
setUserData in interface NodesetUserData in class NodeHelperpublic Object getUserData(String key)
getUserData in interface NodegetUserData in class NodeHelperpublic 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 void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionpublic 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 ElementDOMExceptionCopyright © 2018. All rights reserved.