edu.stanford.rt.datatype
Class KeyType

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

public class KeyType
extends SimpleType

Note: This class is not useable. There could be multiple KeyTypes in the system; however, they can never be mixed. Therefore, one cannot declare 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
static java.lang.String DSA
           
static java.lang.String RSA
           
 
Fields inherited from class edu.stanford.rt.datatype.DataType
 
Constructor Summary
KeyType(java.lang.String name)
           
 
Method Summary
 boolean isValidValue(DataValue value)
          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
 

Field Detail

DSA

public static final java.lang.String DSA
See Also:
Constant Field Values

RSA

public static final java.lang.String RSA
See Also:
Constant Field Values
Constructor Detail

KeyType

public KeyType(java.lang.String name)
Method Detail

isValidValue

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

Specified by:
isValidValue in class SimpleType