net.sourceforge.selfesteem
Class CompositeNode
java.lang.Object
|
+--net.sourceforge.selfesteem.CompositeNode
- All Implemented Interfaces:
- Node
- Direct Known Subclasses:
- IterationNode, RootNode, StoryNode
- public class CompositeNode
- extends java.lang.Object
- implements Node
Field Summary |
protected java.util.List |
_list
|
protected java.lang.String |
_name
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_name
protected java.lang.String _name
_list
protected java.util.List _list
CompositeNode
public CompositeNode(java.lang.String name)
isPassing
public boolean isPassing()
- Specified by:
isPassing
in interface Node
getName
public java.lang.String getName()
- Specified by:
getName
in interface Node
add
public void add(Node node)
get
public Node get(int i)
- Specified by:
get
in interface Node
iterator
public java.util.Iterator iterator()
getPassingChildCount
protected int getPassingChildCount()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
percent
protected java.lang.String percent(java.lang.String name)
serialize
public void serialize(Serializer serializer,
int level)
- Specified by:
serialize
in interface Node
Copyright © 2002-2002 Thoughtworks, LLC. All Rights Reserved.