edu.stanford.rt.datatype
Class SimpleType

java.lang.Object
  |
  +--edu.stanford.rt.datatype.DataType
        |
        +--edu.stanford.rt.datatype.SimpleType
Direct Known Subclasses:
KeyType, OrderedType, TreeType

public abstract class SimpleType
extends DataType

Author:
Ninghui Li, Sandra Qiu
SimpleType is the super class of all data type classes that can have a simple value, it requires its subclasses to check for legal values.

Field Summary
 
Fields inherited from class edu.stanford.rt.datatype.DataType
 
Constructor Summary
protected SimpleType(java.lang.String name)
           
 
Method Summary
abstract  boolean isValidValue(DataValue o)
          Check if the DataValue o is a legal value for its type.
 
Methods inherited from class edu.stanford.rt.datatype.DataType
getName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleType

protected SimpleType(java.lang.String name)
Method Detail

isValidValue

public abstract boolean isValidValue(DataValue o)
Check if the DataValue o is a legal value for its type.