org.w3c.tidy
Class DOMElementImpl

java.lang.Object
  |
  +--org.w3c.tidy.DOMNodeImpl
        |
        +--org.w3c.tidy.DOMElementImpl
All Implemented Interfaces:
Element, Node

public class DOMElementImpl
extends DOMNodeImpl
implements Element

DOMElementImpl (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.java for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000

Version:
1.4, 1999/09/04 DOM Support
Author:
Dave Raggett , Andy Quick (translation to Java)

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
protected DOMElementImpl(Node adaptee)
           
 
Method Summary
 String getAttribute(String name)
           
 Attr getAttributeNode(String name)
           
 Attr getAttributeNodeNS(String namespaceURI, String localName)
          DOM2 - not implemented.
 String getAttributeNS(String namespaceURI, String localName)
          DOM2 - not implemented.
 NodeList getElementsByTagName(String name)
           
 NodeList getElementsByTagNameNS(String namespaceURI, String localName)
          DOM2 - not implemented.
 short getNodeType()
           
 TypeInfo getSchemaTypeInfo()
           
 String getTagName()
           
 boolean hasAttribute(String name)
          DOM2 - not implemented.
 boolean hasAttributeNS(String namespaceURI, String localName)
          DOM2 - not implemented.
 void normalize()
          DOM2 - not implemented.
 void removeAttribute(String name)
           
 Attr removeAttributeNode(Attr oldAttr)
           
 void removeAttributeNS(String namespaceURI, String localName)
          DOM2 - not implemented.
 void setAttribute(String name, String value)
           
 Attr setAttributeNode(Attr newAttr)
           
 Attr setAttributeNodeNS(Attr newAttr)
          DOM2 - not implemented.
 void setAttributeNS(String namespaceURI, String qualifiedName, String value)
          DOM2 - not implemented.
 void setIdAttribute(String name, boolean isId)
           
 void setIdAttributeNode(Attr idAttr, boolean isId)
           
 void setIdAttributeNS(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, 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)
Method Detail

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node
Overrides:
getNodeType in class DOMNodeImpl
See Also:
Node.getNodeType()

getTagName

public String getTagName()
Specified by:
getTagName in interface Element
See Also:
Element.getTagName()

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface Element
See Also:
Element.getAttribute(java.lang.String)

setAttribute

public void setAttribute(String name,
                         String value)
                  throws DOMException
Specified by:
setAttribute in interface Element
See Also:
Element.setAttribute(java.lang.String, java.lang.String)

removeAttribute

public void removeAttribute(String name)
                     throws DOMException
Specified by:
removeAttribute in interface Element
See Also:
Element.removeAttribute(java.lang.String)

getAttributeNode

public Attr getAttributeNode(String name)
Specified by:
getAttributeNode in interface Element
See Also:
Element.getAttributeNode(java.lang.String)

setAttributeNode

public Attr setAttributeNode(Attr newAttr)
                      throws DOMException
Specified by:
setAttributeNode in interface Element
See Also:
Element.setAttributeNode(org.w3c.dom.Attr)

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)
                         throws DOMException
Specified by:
removeAttributeNode in interface Element
See Also:
Element.removeAttributeNode(org.w3c.dom.Attr)

getElementsByTagName

public NodeList getElementsByTagName(String name)
Specified by:
getElementsByTagName in interface Element
See Also:
Element.getElementsByTagName(java.lang.String)

normalize

public void normalize()
Description copied from class: DOMNodeImpl
DOM2 - not implemented.
Specified by:
normalize in interface Node
Overrides:
normalize in class DOMNodeImpl
See Also:
Node.normalize()

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
DOM2 - not implemented.
Specified by:
getAttributeNS in interface Element

setAttributeNS

public void setAttributeNS(String namespaceURI,
                           String qualifiedName,
                           String value)
                    throws DOMException
DOM2 - not implemented.
Specified by:
setAttributeNS in interface Element
Throws:
DOMException -  

removeAttributeNS

public void removeAttributeNS(String namespaceURI,
                              String localName)
                       throws DOMException
DOM2 - not implemented.
Specified by:
removeAttributeNS in interface Element
Throws:
DOMException -  

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI,
                               String localName)
DOM2 - not implemented.
Specified by:
getAttributeNodeNS in interface Element

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr newAttr)
                        throws DOMException
DOM2 - not implemented.
Specified by:
setAttributeNodeNS in interface Element
Throws:
DOMException -  

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)
DOM2 - not implemented.
Specified by:
getElementsByTagNameNS in interface Element

hasAttribute

public boolean hasAttribute(String name)
DOM2 - not implemented.
Specified by:
hasAttribute in interface Element

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)
DOM2 - not implemented.
Specified by:
hasAttributeNS in interface Element

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
Specified by:
getSchemaTypeInfo in interface Element

setIdAttribute

public void setIdAttribute(String name,
                           boolean isId)
                    throws DOMException
Specified by:
setIdAttribute in interface Element

setIdAttributeNS

public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean isId)
                      throws DOMException
Specified by:
setIdAttributeNS in interface Element

setIdAttributeNode

public void setIdAttributeNode(Attr idAttr,
                               boolean isId)
                        throws DOMException
Specified by:
setIdAttributeNode in interface Element


Copyright © 1998-2000 World Wide Web Consortium (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights reserved.