- java.lang.Object
-
- com.sun.tools.txw2.model.Leaf
-
- com.sun.tools.txw2.model.Node
-
- All Implemented Interfaces:
ParsedPattern,Iterable<Leaf>
- Direct Known Subclasses:
List,WriterNode
public abstract class Node extends Leaf implements Iterable<Leaf>
Nodeis aLeafthat has children. getting and setting the parent of a node, and for removing a node.- Since:
- 1.6, SAAJ 1.2 Children are orderless.
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(Leaf child)Adds the givenLeafand their sibling as children of this .booleanhasOneChild()Returns true if this node has only one child node.Iterator<Leaf>iterator()Iterates all the children.-
Methods inherited from class com.sun.tools.txw2.model.Leaf
createDataMethod, getNext, getPrev, merge, siblings
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-