com.klg.jclass.field
Class DataPropertiesRegistry
java.lang.Object
|
+--com.klg.jclass.field.DataPropertiesRegistry
- public class DataPropertiesRegistry
- extends Object
Given a data type, this class determines the default validator or value model.
If you create your own validator, you can register it using the AddEntry()
method.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
default_table
protected static String[][] default_table
propertiesTable
protected static HashMap propertiesTable
DataPropertiesRegistry
public DataPropertiesRegistry()
isRegistered
public static boolean isRegistered(Class c)
- Returns true if the object is registered.
addEntry
public static void addEntry(String classname,
String validator,
String value_model)
- Adds a new entry to the DataProperties registry.
- Parameters:
classname
- Full class name of the data type. i.e. (java.lang.String)validator
- Full class name of the validator.value_model
- Full class name of the data model.
getEntry
public static DataPropertiesRegistry.Info getEntry(String classname)
- Returns an Info class given the class name. If no entry
can be found corresponding to the class name, null is returned.
- See Also:
DataPropertiesRegistry.Info
removeEntry
public static void removeEntry(String classname)
- Removes an entry from the DataPropertiesRegistry which corresponds to
the class name specified.
createValueModel
public static com.klg.jclass.util.value.JCValueModel createValueModel(Class value_class)
- Creates a value mode based on the class passed in.
createValidator
public static JCValidator createValidator(Class value_class)
- Creates an instance of the default validator for the given data_type.