|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnu.validator.saxtree.Node
nu.validator.saxtree.ParentNode
public abstract class ParentNode
Common superclass for parent nodes.
| Field Summary | |
|---|---|
protected Locator |
endLocator
The end locator. |
private Node |
firstChild
The first child. |
private Node |
lastChild
The last child (for efficiency). |
| Constructor Summary | |
|---|---|
ParentNode(Locator locator)
The constuctor. |
|
| Method Summary | |
|---|---|
Node |
appendChild(Node child)
Append a child to this node and return the child. |
void |
appendChildren(Node parent)
Append the children of another node to this node removing them from the other node . |
void |
copyEndLocator(ParentNode another)
Copies the endLocator from another node. |
Node |
getFirstChild()
Returns the firstChild. |
Node |
getLastChild()
Returns the lastChild. |
Node |
insertBefore(Node child,
Node sibling)
Insert a new child before a pre-existing child and return the newly inserted child. |
Node |
insertBetween(Node child,
Node prev,
Node next)
|
(package private) void |
removeChild(Node node)
Remove a child from this node. |
void |
setEndLocator(Locator endLocator)
Sets the endLocator. |
| Methods inherited from class nu.validator.saxtree.Node |
|---|
detach, getAttributes, getColumnNumber, getData, getLineNumber, getLocalName, getName, getNextSibling, getNodeType, getParentNode, getPrefixMappings, getPreviousSibling, getPublicId, getPublicIdentifier, getQName, getSystemId, getSystemIdentifier, getTarget, getUri, revisit, setNextSibling, setParentNode, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Locator endLocator
private Node firstChild
private Node lastChild
| Constructor Detail |
|---|
ParentNode(Locator locator)
locator - the locator| Method Detail |
|---|
public void setEndLocator(Locator endLocator)
endLocator - the endLocator to setpublic void copyEndLocator(ParentNode another)
another - the another nodepublic final Node getFirstChild()
getFirstChild in class Nodepublic final Node getLastChild()
public Node insertBefore(Node child,
Node sibling)
child - the new childsibling - the existing child before which to insert (must be a child of this node) or null to append
child
public Node insertBetween(Node child,
Node prev,
Node next)
public Node appendChild(Node child)
child - the child to append.
childpublic void appendChildren(Node parent)
parent - the other node whose children to append to this onevoid removeChild(Node node)
node - the child to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||