public class DOMElementImpl extends DOMNodeImpl implements Element
adaptee
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
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, supports
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
protected DOMElementImpl(Node adaptee)
adaptee
- Tidy Node.public short getNodeType()
getNodeType
in interface Node
getNodeType
in class DOMNodeImpl
Node.getNodeType()
public String getTagName()
getTagName
in interface Element
Element.getTagName()
public String getAttribute(String name)
getAttribute
in interface Element
Element.getAttribute(java.lang.String)
public void setAttribute(String name, String value) throws DOMException
setAttribute
in interface Element
DOMException
Element.setAttribute(java.lang.String, java.lang.String)
public void removeAttribute(String name) throws DOMException
removeAttribute
in interface Element
DOMException
Element.removeAttribute(java.lang.String)
public Attr getAttributeNode(String name)
getAttributeNode
in interface Element
Element.getAttributeNode(java.lang.String)
public Attr setAttributeNode(Attr newAttr) throws DOMException
setAttributeNode
in interface Element
DOMException
Element.setAttributeNode(org.w3c.dom.Attr)
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
removeAttributeNode
in interface Element
DOMException
Element.removeAttributeNode(org.w3c.dom.Attr)
public NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Element
Element.getElementsByTagName(java.lang.String)
public void normalize()
DOMNodeImpl
normalize
in interface Node
normalize
in class DOMNodeImpl
Node.normalize()
public String getAttributeNS(String namespaceURI, String localName)
getAttributeNS
in interface Element
Element.getAttributeNS(java.lang.String, java.lang.String)
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
setAttributeNS
in interface Element
DOMException
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
removeAttributeNS
in interface Element
DOMException
Element.removeAttributeNS(java.lang.String, java.lang.String)
public Attr getAttributeNodeNS(String namespaceURI, String localName)
getAttributeNodeNS
in interface Element
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
setAttributeNodeNS
in interface Element
DOMException
Element.setAttributeNodeNS(org.w3c.dom.Attr)
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Element
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)
public boolean hasAttribute(String name)
hasAttribute
in interface Element
Element.hasAttribute(java.lang.String)
public boolean hasAttributeNS(String namespaceURI, String localName)
hasAttributeNS
in interface Element
Element.hasAttributeNS(java.lang.String, java.lang.String)
public TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface Element
Element.getSchemaTypeInfo()
public void setIdAttribute(String name, boolean isId) throws DOMException
setIdAttribute
in interface Element
DOMException
Element.setIdAttribute(java.lang.String, boolean)
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
setIdAttributeNode
in interface Element
DOMException
Element.setIdAttributeNode(org.w3c.dom.Attr, boolean)
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
setIdAttributeNS
in interface Element
DOMException
Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean)
Copyright © 2000–2012 sourceforge. All rights reserved.