public class PropertyTypeRegistry extends org.fujion.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.
|
clear, getAll, iterator, register, size, unregister, unregisterByKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic 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.fujion.common.AbstractRegistry<String,PropertyType>public PropertyType get(String key)
get in class org.fujion.common.AbstractRegistry<String,PropertyType>Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.