org.w3c.tidy
Class DOMAttrImpl

org.w3c.tidy.DOMAttrImpl

public class DOMAttrImpl

DOMAttrImpl (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)

Field Summary
protected  AttVal avAdaptee
           
 
Constructor Summary
protected DOMAttrImpl(AttVal adaptee)
           
 
Method Summary
 Node appendChild(Node newChild)
           
 Node cloneNode(boolean deep)
           
 NamedNodeMap getAttributes()
           
 NodeList getChildNodes()
           
 Node getFirstChild()
           
 Node getLastChild()
           
 String getName()
           
 Node getNextSibling()
           
 String getNodeName()
           
 short getNodeType()
           
 String getNodeValue()
           
 Document getOwnerDocument()
           
 Element getOwnerElement()
          DOM2 - not implemented.
 Node getParentNode()
           
 Node getPreviousSibling()
           
 boolean getSpecified()
           
 String getValue()
          Returns value of this attribute.
 boolean hasChildNodes()
           
 Node insertBefore(Node newChild, Node refChild)
           
 Node removeChild(Node oldChild)
           
 Node replaceChild(Node newChild, Node oldChild)
           
 void setNodeValue(String nodeValue)
           
 void setValue(String value)
           
 

Field Detail

avAdaptee

protected AttVal avAdaptee
Constructor Detail

DOMAttrImpl

protected DOMAttrImpl(AttVal adaptee)
Method Detail

getNodeValue

public String getNodeValue()
                    throws DOMException

setNodeValue

public void setNodeValue(String nodeValue)
                  throws DOMException

getNodeName

public String getNodeName()

getNodeType

public short getNodeType()

getParentNode

public Node getParentNode()

getChildNodes

public NodeList getChildNodes()

getFirstChild

public Node getFirstChild()

getLastChild

public Node getLastChild()

getPreviousSibling

public Node getPreviousSibling()

getNextSibling

public Node getNextSibling()

getAttributes

public NamedNodeMap getAttributes()

getOwnerDocument

public Document getOwnerDocument()

insertBefore

public Node insertBefore(Node newChild,
                         Node refChild)
                  throws DOMException

replaceChild

public Node replaceChild(Node newChild,
                         Node oldChild)
                  throws DOMException

removeChild

public Node removeChild(Node oldChild)
                 throws DOMException

appendChild

public Node appendChild(Node newChild)
                 throws DOMException

hasChildNodes

public boolean hasChildNodes()

cloneNode

public Node cloneNode(boolean deep)

getName

public String getName()
See Also:
org.w3c.dom.Attr#getName

getSpecified

public boolean getSpecified()
See Also:
org.w3c.dom.Attr#getSpecified

getValue

public String getValue()
Returns value of this attribute. If this attribute has a null value, then the attribute name is returned instead. Thanks to Brett Knights for this fix.
See Also:
org.w3c.dom.Attr#getValue

setValue

public void setValue(String value)
See Also:
org.w3c.dom.Attr#setValue

getOwnerElement

public Element getOwnerElement()
DOM2 - not implemented.


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.