public class PropertyTypeRegistry extends org.carewebframework.common.AbstractRegistry<String,PropertyType>
| Constructor and Description |
|---|
PropertyTypeRegistry()
Registers several built-in property types.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String typeName,
PropertySerializer<?> serializer,
Class<? extends PropertyEditorBase> editorClass)
Registers a property type.
|
PropertyType |
get(String key) |
static PropertyTypeRegistry |
getInstance()
Returns the singleton instance of the property type registry.
|
protected String |
getKey(PropertyType item) |
static void |
register(String typeName,
Class<? extends PropertyEditorBase> editorClass)
Registers a property type.
|
static void |
register(String typeName,
PropertySerializer<?> serializer,
Class<? extends PropertyEditorBase> editorClass)
Registers a property type.
|
public PropertyTypeRegistry()
public static PropertyTypeRegistry getInstance()
public static void register(String typeName, Class<? extends PropertyEditorBase> editorClass)
typeName - The name of the property type as used in the plug-in declaration.editorClass - The property editor class to use to edit this property's value.public static void register(String typeName, PropertySerializer<?> serializer, Class<? extends PropertyEditorBase> editorClass)
typeName - The name of the property type as used in the plug-in declaration.serializer - Serializer for this property type (may be null).editorClass - The property editor class to use to edit this property's value.public void add(String typeName, PropertySerializer<?> serializer, Class<? extends PropertyEditorBase> editorClass)
typeName - The name of the property type as used in the plug-in declaration.serializer - Serializer for this property type (may be null).editorClass - The property editor class to use to edit this property's value.protected String getKey(PropertyType item)
getKey in class org.carewebframework.common.AbstractRegistry<String,PropertyType>public PropertyType get(String key)
get in class org.carewebframework.common.AbstractRegistry<String,PropertyType>Copyright © 2016 Regenstrief Center for Biomedical Informatics. All rights reserved.