package edu.stanford.rt.datatype; /** * 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 */ public class KeyType extends SimpleType { public static final String DSA = "DSAKeyType"; public static final String RSA = "RSAKeyType"; public KeyType(String name) { super(name); } /** Check if the DataValue o is a legal value for its type. */ public boolean isValidValue(DataValue value) { if(! (value instanceof KeyValue)) return false; // TODO, some other test???? return true; } }