edu.stanford.rt.datatype
Class TreeValueSet

java.lang.Object
  |
  +--edu.stanford.rt.datatype.ValueSet
        |
        +--edu.stanford.rt.datatype.TreeValueSet

public class TreeValueSet
extends ValueSet

Author:
Ninghui Li, Sandra Qiu
A TreeValueSet object contains a TreeValue and can be used to express the concept such as including all the sub-directories of the current directory by specifying whether the current value is included, the children of the current value or the descendant of the current value are included.

Field Summary
private  boolean childrenIncluded
          is the children included?
private  boolean currentIncluded
          is current tree value included?
private  boolean descendantIncluded
          is the descendant incuded? If it is true, then childrenIncluded is also true.
private  TreeValue value
          tree value
 
Fields inherited from class edu.stanford.rt.datatype.ValueSet
 
Constructor Summary
TreeValueSet(TreeType type, TreeValue value, boolean currentIncluded, boolean childrenIncluded, boolean descendantIncluded)
          Constructor of TreeValueSet
 
Method Summary
 java.lang.String toString(java.lang.String indent)
          Method toString.
 
Methods inherited from class edu.stanford.rt.datatype.ValueSet
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private TreeValue value
tree value


currentIncluded

private boolean currentIncluded
is current tree value included?


childrenIncluded

private boolean childrenIncluded
is the children included?


descendantIncluded

private boolean descendantIncluded
is the descendant incuded? If it is true, then childrenIncluded is also true.

Constructor Detail

TreeValueSet

public TreeValueSet(TreeType type,
                    TreeValue value,
                    boolean currentIncluded,
                    boolean childrenIncluded,
                    boolean descendantIncluded)
Constructor of TreeValueSet

Method Detail

toString

public java.lang.String toString(java.lang.String indent)
Description copied from class: ValueSet
Method toString.

Overrides:
toString in class ValueSet
Parameters:
indent -
Returns:
String