|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.field.DataPropertiesRegistry
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.
| Nested Class Summary | |
static class |
DataPropertiesRegistry.Info
Convenience class used to hold a validator and data model. |
| Field Summary | |
protected static String[][] |
default_table
|
protected static HashMap |
propertiesTable
|
| Constructor Summary | |
DataPropertiesRegistry()
|
|
| Method Summary | |
static void |
addEntry(String classname,
String validator,
String value_model)
Adds a new entry to the DataProperties registry. |
static com.klg.jclass.field.validate.JCValidator |
createValidator(Class value_class)
Creates an instance of the default validator for the given data_type. |
static com.klg.jclass.util.value.JCValueModel |
createValueModel(Class value_class)
Creates a value mode based on the class passed in. |
static DataPropertiesRegistry.Info |
getEntry(String classname)
Returns an Info class given the class name. |
static boolean |
isRegistered(Class c)
Returns true if the object is registered. |
static void |
removeEntry(String classname)
Removes an entry from the DataPropertiesRegistry which corresponds to the class name specified. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static String[][] default_table
protected static HashMap propertiesTable
| Constructor Detail |
public DataPropertiesRegistry()
| Method Detail |
public static boolean isRegistered(Class c)
public static void addEntry(String classname,
String validator,
String value_model)
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.public static DataPropertiesRegistry.Info getEntry(String classname)
DataPropertiesRegistry.Infopublic static void removeEntry(String classname)
public static com.klg.jclass.util.value.JCValueModel createValueModel(Class value_class)
public static com.klg.jclass.field.validate.JCValidator createValidator(Class value_class)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||