JClass DesktopViews 6.3.0 API
Documentation

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.


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

default_table

protected static String[][] default_table

propertiesTable

protected static HashMap propertiesTable
Constructor Detail

DataPropertiesRegistry

public DataPropertiesRegistry()
Method Detail

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 com.klg.jclass.field.validate.JCValidator createValidator(Class value_class)
Creates an instance of the default validator for the given data_type.


Copyright © 2004 Quest Software Inc..
All rights reserved.