Package org.w3c.tidy
Class DOMElementImpl
java.lang.Object
org.w3c.tidy.DOMNodeImpl
org.w3c.tidy.DOMElementImpl
DOMElementImpl.
- Version:
- $Revision: 738 $ ($Author: fgiust $)
- Author:
- Dave Raggett dsr@w3.org , Andy Quick ac.quick@sympatico.ca (translation to Java), Fabrizio Giustina
-
Field Summary
Fields inherited from class org.w3c.tidy.DOMNodeImpl
adapteeFields inherited from interface org.w3c.dom.Node
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 Summary
ConstructorsModifierConstructorDescriptionprotectedDOMElementImpl(Node adaptee) Instantiates a new DOM element. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) getAttributeNode(String name) getAttributeNodeNS(String namespaceURI, String localName) getAttributeNS(String namespaceURI, String localName) getElementsByTagName(String name) getElementsByTagNameNS(String namespaceURI, String localName) shortbooleanhasAttribute(String name) booleanhasAttributeNS(String namespaceURI, String localName) voidDo nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.voidremoveAttribute(String name) removeAttributeNode(Attr oldAttr) voidremoveAttributeNS(String namespaceURI, String localName) voidsetAttribute(String name, String value) setAttributeNode(Attr newAttr) setAttributeNodeNS(Attr newAttr) voidsetAttributeNS(String namespaceURI, String qualifiedName, String value) voidsetIdAttribute(String name, boolean isId) voidsetIdAttributeNode(Attr idAttr, boolean isId) voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) Methods inherited from class org.w3c.tidy.DOMNodeImpl
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, supportsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
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
-
Constructor Details
-
DOMElementImpl
Instantiates a new DOM element.- Parameters:
adaptee- Tidy Node.
-
-
Method Details
-
getNodeType
public short getNodeType()- Specified by:
getNodeTypein interfaceNode- Overrides:
getNodeTypein classDOMNodeImpl- See Also:
-
getTagName
- Specified by:
getTagNamein interfaceElement- See Also:
-
getAttribute
- Specified by:
getAttributein interfaceElement- See Also:
-
setAttribute
- Specified by:
setAttributein interfaceElement- Throws:
DOMException- See Also:
-
removeAttribute
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException- See Also:
-
getAttributeNode
- Specified by:
getAttributeNodein interfaceElement- See Also:
-
setAttributeNode
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException- See Also:
-
removeAttributeNode
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException- See Also:
-
getElementsByTagName
- Specified by:
getElementsByTagNamein interfaceElement- See Also:
-
normalize
public void normalize()Description copied from class:DOMNodeImplDo nothing: text nodes in html documents are important and jtidy already removes useless text during parsing.- Specified by:
normalizein interfaceNode- Overrides:
normalizein classDOMNodeImpl- See Also:
-
getAttributeNS
- Specified by:
getAttributeNSin interfaceElement- See Also:
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException - Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException- See Also:
-
removeAttributeNS
- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException- See Also:
-
getAttributeNodeNS
- Specified by:
getAttributeNodeNSin interfaceElement- See Also:
-
setAttributeNodeNS
- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException- See Also:
-
getElementsByTagNameNS
- Specified by:
getElementsByTagNameNSin interfaceElement- See Also:
-
hasAttribute
- Specified by:
hasAttributein interfaceElement- See Also:
-
hasAttributeNS
- Specified by:
hasAttributeNSin interfaceElement- See Also:
-
getSchemaTypeInfo
- Specified by:
getSchemaTypeInfoin interfaceElement- See Also:
-
setIdAttribute
- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException- See Also:
-
setIdAttributeNode
- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException- See Also:
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException - Specified by:
setIdAttributeNSin interfaceElement- Throws:
DOMException- See Also:
-