edu.stanford.rt.datatype
Class TreeType

java.lang.Object
  |
  +--edu.stanford.rt.datatype.DataType
        |
        +--edu.stanford.rt.datatype.SimpleType
              |
              +--edu.stanford.rt.datatype.TreeType

public class TreeType
extends SimpleType

Author:
Ninghui Li, Sandra Qiu
Implementation of TreeType element

Field Summary
private  boolean rootFirst
          ordering of the tree type
private  java.lang.String separator
          separator of the tree type.
 
Fields inherited from class edu.stanford.rt.datatype.DataType
 
Constructor Summary
TreeType(java.lang.String name, java.lang.String separator, boolean rootFirst)
          Constructor for TreeType
 
Method Summary
 java.lang.String getSeparator()
          Method getSeparator.
 boolean isRootFirst()
          Method isRootFirst.
 boolean isValidValue(DataValue v)
          Check if the DataValue o is a legal value for its type.
 java.lang.String toString(java.lang.String indent)
          Method toString.
 
Methods inherited from class edu.stanford.rt.datatype.DataType
getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

separator

private java.lang.String separator
separator of the tree type.


rootFirst

private boolean rootFirst
ordering of the tree type

Constructor Detail

TreeType

public TreeType(java.lang.String name,
                java.lang.String separator,
                boolean rootFirst)
Constructor for TreeType

Method Detail

isRootFirst

public boolean isRootFirst()
Method isRootFirst.

Returns:
boolean

getSeparator

public java.lang.String getSeparator()
Method getSeparator.

Returns:
String

isValidValue

public boolean isValidValue(DataValue v)
Description copied from class: SimpleType
Check if the DataValue o is a legal value for its type.

Specified by:
isValidValue in class SimpleType

toString

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

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