|
|||||||||
| Home >> All >> com >> port80 >> html >> [ tidy overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.port80.html.tidy
Class DOMNodeImpl

java.lang.Objectcom.port80.html.tidy.DOMNodeImpl
- All Implemented Interfaces:
- org.w3c.dom.Node
- Direct Known Subclasses:
- DOMAttrImpl, DOMCharacterDataImpl, DOMDocumentImpl, DOMDocumentTypeImpl, DOMElementImpl, DOMProcessingInstructionImpl
- public class DOMNodeImpl
- extends java.lang.Object
- implements org.w3c.dom.Node
- extends java.lang.Object
DOMNodeImpl (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, 1.5, 1999/10/23 Tidy Release 27 Sep 1999, 1.6, 1999/11/01 Tidy Release 22 Oct 1999, 1.7, 1999/12/06 Tidy Release 30 Nov 1999, 1.8, 2000/01/22 Tidy Release 13 Jan 2000, 1.9, 2000/06/03 Tidy Release 30 Apr 2000, 1.10, 2000/07/22 Tidy Release 8 Jul 2000, 1.11, 2000/08/16 Tidy Release 4 Aug 2000
| Field Summary | |
protected Node |
adaptee
|
| Constructor Summary | |
protected |
DOMNodeImpl(Node adaptee)
|
| Method Summary | |
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
Adds the node newChild to the end of the list of children
of this node. |
org.w3c.dom.Node |
cloneNode(boolean deep)
Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. |
org.w3c.dom.NamedNodeMap |
getAttributes()
A NamedNodeMap containing the attributes of this node (if
it is an Element) or null otherwise. |
org.w3c.dom.NodeList |
getChildNodes()
A NodeList that contains all children of this node. |
org.w3c.dom.Node |
getFirstChild()
The first child of this node. |
org.w3c.dom.Node |
getLastChild()
The last child of this node. |
java.lang.String |
getLocalName()
DOM2 - not implemented. |
java.lang.String |
getNamespaceURI()
DOM2 - not implemented. |
org.w3c.dom.Node |
getNextSibling()
The node immediately following this node. |
java.lang.String |
getNodeName()
The name of this node, depending on its type; see the table above. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
java.lang.String |
getNodeValue()
The value of this node, depending on its type; see the table above. |
org.w3c.dom.Document |
getOwnerDocument()
The Document object associated with this node. |
org.w3c.dom.Node |
getParentNode()
The parent of this node. |
java.lang.String |
getPrefix()
DOM2 - not implemented. |
org.w3c.dom.Node |
getPreviousSibling()
The node immediately preceding this node. |
boolean |
hasAttributes()
DOM2 - @see org.w3c.dom.Node#hasAttributes contributed by dlp@users.sourceforge.net |
boolean |
hasChildNodes()
Returns whether this node has any children. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
Inserts the node newChild before the existing child node
refChild. |
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
DOM2 - not implemented. |
void |
normalize()
DOM2 - not implemented. |
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
Removes the child node indicated by oldChild from the list
of children, and returns it. |
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
Replaces the child node oldChild with newChild
in the list of children, and returns the oldChild node. |
void |
setNodeValue(java.lang.String nodeValue)
The value of this node, depending on its type; see the table above. |
void |
setPrefix(java.lang.String prefix)
DOM2 - not implemented. |
boolean |
supports(java.lang.String feature,
java.lang.String version)
DOM2 - not implemented. |
| 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 |
compareDocumentPosition, getBaseURI, getFeature, getTextContent, getUserData, isDefaultNamespace, isEqualNode, isSameNode, lookupNamespaceURI, lookupPrefix, setTextContent, setUserData |
| Field Detail |
adaptee
protected Node adaptee
| Constructor Detail |
DOMNodeImpl
protected DOMNodeImpl(Node adaptee)
| Method Detail |
getNodeValue
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Node - The value of this node, depending on its type; see the table above.
When it is defined to be
null, setting it has no effect, including if the node is read-only.- Specified by:
getNodeValuein interfaceorg.w3c.dom.Node
setNodeValue
public void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Node - The value of this node, depending on its type; see the table above.
When it is defined to be
null, setting it has no effect, including if the node is read-only.- Specified by:
setNodeValuein interfaceorg.w3c.dom.Node
getNodeName
public java.lang.String getNodeName()
- Description copied from interface:
org.w3c.dom.Node - The name of this node, depending on its type; see the table above.
- Specified by:
getNodeNamein interfaceorg.w3c.dom.Node
getNodeType
public short getNodeType()
- Description copied from interface:
org.w3c.dom.Node - A code representing the type of the underlying object, as defined above.
- Specified by:
getNodeTypein interfaceorg.w3c.dom.Node
getParentNode
public org.w3c.dom.Node getParentNode()
- Description copied from interface:
org.w3c.dom.Node - The parent of this node. All nodes, except
Attr,Document,DocumentFragment,Entity, andNotationmay have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this isnull.- Specified by:
getParentNodein interfaceorg.w3c.dom.Node
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- Description copied from interface:
org.w3c.dom.Node - A
NodeListthat contains all children of this node. If there are no children, this is aNodeListcontaining no nodes.- Specified by:
getChildNodesin interfaceorg.w3c.dom.Node
getFirstChild
public org.w3c.dom.Node getFirstChild()
- Description copied from interface:
org.w3c.dom.Node - The first child of this node. If there is no such node, this returns
null.- Specified by:
getFirstChildin interfaceorg.w3c.dom.Node
getLastChild
public org.w3c.dom.Node getLastChild()
- Description copied from interface:
org.w3c.dom.Node - The last child of this node. If there is no such node, this returns
null.- Specified by:
getLastChildin interfaceorg.w3c.dom.Node
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- Description copied from interface:
org.w3c.dom.Node - The node immediately preceding this node. If there is no such node,
this returns
null.- Specified by:
getPreviousSiblingin interfaceorg.w3c.dom.Node
getNextSibling
public org.w3c.dom.Node getNextSibling()
- Description copied from interface:
org.w3c.dom.Node - The node immediately following this node. If there is no such node,
this returns
null.- Specified by:
getNextSiblingin interfaceorg.w3c.dom.Node
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
- Description copied from interface:
org.w3c.dom.Node - A
NamedNodeMapcontaining the attributes of this node (if it is anElement) ornullotherwise.- Specified by:
getAttributesin interfaceorg.w3c.dom.Node
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- Description copied from interface:
org.w3c.dom.Node - The
Documentobject associated with this node. This is also theDocumentobject used to create new nodes. When this node is aDocumentor aDocumentTypewhich is not used with anyDocumentyet, this isnull.- Specified by:
getOwnerDocumentin interfaceorg.w3c.dom.Node
insertBefore
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Node - Inserts the node
newChildbefore the existing child noderefChild. IfrefChildisnull, insertnewChildat the end of the list of children.
IfnewChildis aDocumentFragmentobject, all of its children are inserted, in the same order, beforerefChild. If thenewChildis already in the tree, it is first removed.Note: Inserting a node before itself is implementation dependent.
- Specified by:
insertBeforein interfaceorg.w3c.dom.Node
replaceChild
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Node - Replaces the child node
oldChildwithnewChildin the list of children, and returns theoldChildnode.
IfnewChildis aDocumentFragmentobject,oldChildis replaced by all of theDocumentFragmentchildren, which are inserted in the same order. If thenewChildis already in the tree, it is first removed.Note: Replacing a node with itself is implementation dependent.
- Specified by:
replaceChildin interfaceorg.w3c.dom.Node
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Node - Removes the child node indicated by
oldChildfrom the list of children, and returns it.- Specified by:
removeChildin interfaceorg.w3c.dom.Node
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
- Description copied from interface:
org.w3c.dom.Node - Adds the node
newChildto the end of the list of children of this node. If thenewChildis already in the tree, it is first removed.- Specified by:
appendChildin interfaceorg.w3c.dom.Node
hasChildNodes
public boolean hasChildNodes()
- Description copied from interface:
org.w3c.dom.Node - Returns whether this node has any children.
- Specified by:
hasChildNodesin interfaceorg.w3c.dom.Node
cloneNode
public org.w3c.dom.Node cloneNode(boolean deep)
- Description copied from interface:
org.w3c.dom.Node - Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes. The duplicate node has no parent (
parentNodeisnull) and no user data. User data associated to the imported node is not carried over. However, if anyUserDataHandlershas been specified along with the associated data these handlers will be called with the appropriate parameters before this method returns.
Cloning anElementcopies all attributes and their values, including those generated by the XML processor to represent defaulted attributes, but this method does not copy any children it contains unless it is a deep clone. This includes text contained in an theElementsince the text is contained in a childTextnode. Cloning anAttrdirectly, as opposed to be cloned as part of anElementcloning operation, returns a specified attribute (specifiedistrue). Cloning anAttralways clones its children, since they represent its value, no matter whether this is a deep clone or not. Cloning anEntityReferenceautomatically constructs its subtree if a correspondingEntityis available, no matter whether this is a deep clone or not. Cloning any other type of node simply returns a copy of this node.
Note that cloning an immutable subtree results in a mutable copy, but the children of anEntityReferenceclone are readonly . In addition, clones of unspecifiedAttrnodes are specified. And, cloningDocument,DocumentType,Entity, andNotationnodes is implementation dependent.- Specified by:
cloneNodein interfaceorg.w3c.dom.Node
normalize
public void normalize()
- DOM2 - not implemented.
- Specified by:
normalizein interfaceorg.w3c.dom.Node
supports
public boolean supports(java.lang.String feature, java.lang.String version)
- DOM2 - not implemented.
getNamespaceURI
public java.lang.String getNamespaceURI()
- DOM2 - not implemented.
- Specified by:
getNamespaceURIin interfaceorg.w3c.dom.Node
getPrefix
public java.lang.String getPrefix()
- DOM2 - not implemented.
- Specified by:
getPrefixin interfaceorg.w3c.dom.Node
setPrefix
public void setPrefix(java.lang.String prefix) throws org.w3c.dom.DOMException
- DOM2 - not implemented.
- Specified by:
setPrefixin interfaceorg.w3c.dom.Node
getLocalName
public java.lang.String getLocalName()
- DOM2 - not implemented.
- Specified by:
getLocalNamein interfaceorg.w3c.dom.Node
isSupported
public boolean isSupported(java.lang.String feature, java.lang.String version)
- DOM2 - not implemented.
- Specified by:
isSupportedin interfaceorg.w3c.dom.Node
hasAttributes
public boolean hasAttributes()
- DOM2 - @see org.w3c.dom.Node#hasAttributes
contributed by dlp@users.sourceforge.net
- Specified by:
hasAttributesin interfaceorg.w3c.dom.Node
|
|||||||||
| Home >> All >> com >> port80 >> html >> [ tidy overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.port80.html.tidy.DOMNodeImpl