public class DOMElementImpl extends DOMNodeImpl implements Element
adapteeATTRIBUTE_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| Modifier | Constructor and Description |
|---|---|
protected |
DOMElementImpl(Node adaptee)
Instantiates a new DOM element.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String name) |
Attr |
getAttributeNode(String name) |
Attr |
getAttributeNodeNS(String namespaceURI,
String localName) |
String |
getAttributeNS(String namespaceURI,
String localName) |
NodeList |
getElementsByTagName(String name) |
NodeList |
getElementsByTagNameNS(String namespaceURI,
String localName) |
short |
getNodeType() |
TypeInfo |
getSchemaTypeInfo() |
String |
getTagName() |
boolean |
hasAttribute(String name) |
boolean |
hasAttributeNS(String namespaceURI,
String localName) |
void |
normalize()
Do nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.
|
void |
removeAttribute(String name) |
Attr |
removeAttributeNode(Attr oldAttr) |
void |
removeAttributeNS(String namespaceURI,
String localName) |
void |
setAttribute(String name,
String value) |
Attr |
setAttributeNode(Attr newAttr) |
Attr |
setAttributeNodeNS(Attr newAttr) |
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String value) |
void |
setIdAttribute(String name,
boolean isId) |
void |
setIdAttributeNode(Attr idAttr,
boolean isId) |
void |
setIdAttributeNS(String namespaceURI,
String localName,
boolean isId) |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, supportsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataprotected DOMElementImpl(Node adaptee)
adaptee - Tidy Node.public short getNodeType()
getNodeType in interface NodegetNodeType in class DOMNodeImplNode.getNodeType()public String getTagName()
getTagName in interface ElementElement.getTagName()public String getAttribute(String name)
getAttribute in interface ElementElement.getAttribute(java.lang.String)public void setAttribute(String name, String value) throws DOMException
setAttribute in interface ElementDOMExceptionElement.setAttribute(java.lang.String, java.lang.String)public void removeAttribute(String name) throws DOMException
removeAttribute in interface ElementDOMExceptionElement.removeAttribute(java.lang.String)public Attr getAttributeNode(String name)
getAttributeNode in interface ElementElement.getAttributeNode(java.lang.String)public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode in interface ElementDOMExceptionElement.setAttributeNode(org.w3c.dom.Attr)public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode in interface ElementDOMExceptionElement.removeAttributeNode(org.w3c.dom.Attr)public NodeList getElementsByTagName(String name)
getElementsByTagName in interface ElementElement.getElementsByTagName(java.lang.String)public void normalize()
DOMNodeImplnormalize in interface Nodenormalize in class DOMNodeImplNode.normalize()public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS in interface ElementElement.getAttributeNS(java.lang.String, java.lang.String)public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS in interface ElementDOMExceptionElement.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS in interface ElementDOMExceptionElement.removeAttributeNS(java.lang.String, java.lang.String)public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS in interface ElementElement.getAttributeNodeNS(java.lang.String, java.lang.String)public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS in interface ElementDOMExceptionElement.setAttributeNodeNS(org.w3c.dom.Attr)public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS in interface ElementElement.getElementsByTagNameNS(java.lang.String, java.lang.String)public boolean hasAttribute(String name)
hasAttribute in interface ElementElement.hasAttribute(java.lang.String)public boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS in interface ElementElement.hasAttributeNS(java.lang.String, java.lang.String)public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo in interface ElementElement.getSchemaTypeInfo()public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute in interface ElementDOMExceptionElement.setIdAttribute(java.lang.String, boolean)public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode in interface ElementDOMExceptionElement.setIdAttributeNode(org.w3c.dom.Attr, boolean)public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS in interface ElementDOMExceptionElement.setIdAttributeNS(java.lang.String, java.lang.String, boolean)Copyright © 2000–2012 sourceforge. All rights reserved.