Package org.w3c.tidy
Class DOMElementImpl
- java.lang.Object
-
- org.w3c.tidy.DOMNodeImpl
-
- org.w3c.tidy.DOMElementImpl
-
public class DOMElementImpl extends DOMNodeImpl implements Element
DOMElementImpl.- Version:
- $Revision$ ($Author$)
- 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
adaptee
-
Fields 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
Constructors Modifier Constructor Description protectedDOMElementImpl(Node adaptee)Instantiates a new DOM element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute(String name)AttrgetAttributeNode(String name)AttrgetAttributeNodeNS(String namespaceURI, String localName)TODO DOM level 2 getAttributeNodeNS() Not supported.StringgetAttributeNS(String namespaceURI, String localName)TODO DOM level 2 getAttributeNS() Not supported.NodeListgetElementsByTagName(String name)NodeListgetElementsByTagNameNS(String namespaceURI, String localName)TODO DOM level 2 getElementsByTagNameNS() Not supported.shortgetNodeType()TypeInfogetSchemaTypeInfo()TODO DOM level 3 getSchemaTypeInfo() Not supported.StringgetTagName()booleanhasAttribute(String name)TODO DOM level 2 hasAttribute() Not supported.booleanhasAttributeNS(String namespaceURI, String localName)TODO DOM level 2 hasAttribute() Not supported.voidnormalize()TODO DOM level 2 getOwnerDocument() Not supported.voidremoveAttribute(String name)AttrremoveAttributeNode(Attr oldAttr)voidremoveAttributeNS(String namespaceURI, String localName)TODO DOM level 2 removeAttributeNS() Not supported.voidsetAttribute(String name, String value)AttrsetAttributeNode(Attr newAttr)AttrsetAttributeNodeNS(Attr newAttr)TODO DOM level 2 setAttributeNodeNS() Not supported.voidsetAttributeNS(String namespaceURI, String qualifiedName, String value)TODO DOM level 2 setAttributeNS() Not supported.voidsetIdAttribute(String name, boolean isId)TODO DOM level 3 setIdAttribute() Not supported.voidsetIdAttributeNode(Attr idAttr, boolean isId)TODO DOM level 3 setIdAttributeNode() Not supported.voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId)TODO DOM level 3 setIdAttributeNS() Not supported.-
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, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods 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 Detail
-
DOMElementImpl
protected DOMElementImpl(Node adaptee)
Instantiates a new DOM element.- Parameters:
adaptee- Tidy Node.
-
-
Method Detail
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceNode- Overrides:
getNodeTypein classDOMNodeImpl- See Also:
Node.getNodeType()
-
getTagName
public String getTagName()
- Specified by:
getTagNamein interfaceElement- See Also:
Element.getTagName()
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttributein interfaceElement- See Also:
Element.getAttribute(java.lang.String)
-
setAttribute
public void setAttribute(String name, String value) throws DOMException
- Specified by:
setAttributein interfaceElement- Throws:
DOMException- See Also:
Element.setAttribute(java.lang.String, java.lang.String)
-
removeAttribute
public void removeAttribute(String name) throws DOMException
- Specified by:
removeAttributein interfaceElement- Throws:
DOMException- See Also:
Element.removeAttribute(java.lang.String)
-
getAttributeNode
public Attr getAttributeNode(String name)
- Specified by:
getAttributeNodein interfaceElement- See Also:
Element.getAttributeNode(java.lang.String)
-
setAttributeNode
public Attr setAttributeNode(Attr newAttr) throws DOMException
- Specified by:
setAttributeNodein interfaceElement- Throws:
DOMException- See Also:
Element.setAttributeNode(org.w3c.dom.Attr)
-
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
- Specified by:
removeAttributeNodein interfaceElement- Throws:
DOMException- See Also:
Element.removeAttributeNode(org.w3c.dom.Attr)
-
getElementsByTagName
public NodeList getElementsByTagName(String name)
- Specified by:
getElementsByTagNamein interfaceElement- See Also:
Element.getElementsByTagName(java.lang.String)
-
normalize
public void normalize()
TODO DOM level 2 getOwnerDocument() Not supported. Do nothing.- Specified by:
normalizein interfaceNode- Overrides:
normalizein classDOMNodeImpl- See Also:
Node.normalize()
-
getAttributeNS
public String getAttributeNS(String namespaceURI, String localName)
TODO DOM level 2 getAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
getAttributeNSin interfaceElement- See Also:
Element.getAttributeNS(java.lang.String, java.lang.String)
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
TODO DOM level 2 setAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
setAttributeNSin interfaceElement- Throws:
DOMException- See Also:
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)
-
removeAttributeNS
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
TODO DOM level 2 removeAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
removeAttributeNSin interfaceElement- Throws:
DOMException- See Also:
Element.removeAttributeNS(java.lang.String, java.lang.String)
-
getAttributeNodeNS
public Attr getAttributeNodeNS(String namespaceURI, String localName)
TODO DOM level 2 getAttributeNodeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
getAttributeNodeNSin interfaceElement- See Also:
Element.getAttributeNodeNS(java.lang.String, java.lang.String)
-
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
TODO DOM level 2 setAttributeNodeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
setAttributeNodeNSin interfaceElement- Throws:
DOMException- See Also:
Element.setAttributeNodeNS(org.w3c.dom.Attr)
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
TODO DOM level 2 getElementsByTagNameNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
getElementsByTagNameNSin interfaceElement- See Also:
Element.getElementsByTagNameNS(java.lang.String, java.lang.String)
-
hasAttribute
public boolean hasAttribute(String name)
TODO DOM level 2 hasAttribute() Not supported. Returns false.- Specified by:
hasAttributein interfaceElement- See Also:
Element.hasAttribute(java.lang.String)
-
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI, String localName)
TODO DOM level 2 hasAttribute() Not supported. Returns false.- Specified by:
hasAttributeNSin interfaceElement- See Also:
Element.hasAttributeNS(java.lang.String, java.lang.String)
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
TODO DOM level 3 getSchemaTypeInfo() Not supported. Returns null.- Specified by:
getSchemaTypeInfoin interfaceElement- See Also:
Element.getSchemaTypeInfo()
-
setIdAttribute
public void setIdAttribute(String name, boolean isId) throws DOMException
TODO DOM level 3 setIdAttribute() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
setIdAttributein interfaceElement- Throws:
DOMException- See Also:
Element.setIdAttribute(java.lang.String, boolean)
-
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
TODO DOM level 3 setIdAttributeNode() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
setIdAttributeNodein interfaceElement- Throws:
DOMException- See Also:
Element.setIdAttributeNode(org.w3c.dom.Attr, boolean)
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
TODO DOM level 3 setIdAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.- Specified by:
setIdAttributeNSin interfaceElement- Throws:
DOMException- See Also:
Element.setIdAttributeNS(java.lang.String, java.lang.String, boolean)
-
-