|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.wli.datatype.DataTypeRegistry
public class DataTypeRegistry
Maintains a list of registered data types. Any number of DataTypeRegistries may exist in a single Java Virtual Machine.
Constructor Summary | |
---|---|
DataTypeRegistry(DataTypeRegistry parent)
Construct a new DataTypeRegistry instance based on the given parent registry. |
Method Summary | ||
---|---|---|
DataType |
deregisterDataType(DataType dataType)
Remove the given DataType instance from this registry. |
|
DataTypeEditor |
deregisterDataTypeEditor(String key,
DataTypeEditor editor)
|
|
DataType |
getDataType(String id)
Get the DataType instance with the given id from this registry (or its ancestors). |
|
DataType |
getDataType(String id,
String serializedVariantInfo,
ClassLoader loader)
Get the DataType instance with the given id from this registry (or its ancestors) and create a new variant of the base data type using the provided serializedVariantInfo. |
|
|
getDataTypeEditor(String key,
Class<T> editorClass)
|
|
static DataTypeRegistry |
getDefaultRegistry()
Get the default DataTypeRegistry containing the built-in data types. |
|
static Class |
getEditorClass(DataTypeEditor editor)
|
|
Map<String,DataType> |
getRegisteredDataTypeMap()
|
|
boolean |
hasDataType(String id)
Search this registry (and its ancestors) looking for a data type with the given id. |
|
boolean |
hasDataTypeEditor(String key)
|
|
boolean |
hasDataTypeEditor(String key,
Class editorClass)
|
|
DataType |
registerDataType(DataType dataType,
boolean replaceExisting)
Register a new DataType implementation into this registry. |
|
DataTypeEditor |
registerDataTypeEditor(String key,
DataTypeEditor editor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTypeRegistry(DataTypeRegistry parent) throws DataTypeException
parent
-
DataTypeException
Method Detail |
---|
public static DataTypeRegistry getDefaultRegistry()
public DataType registerDataType(DataType dataType, boolean replaceExisting) throws DataTypeException
dataType
- replaceExisting
-
DataTypeException
public DataType deregisterDataType(DataType dataType) throws DataTypeException
dataType
-
DataTypeException
public boolean hasDataType(String id)
id
-
public DataType getDataType(String id) throws DataTypeException
id
-
DataTypeException
public DataType getDataType(String id, String serializedVariantInfo, ClassLoader loader) throws DataTypeException
id
- serializedVariantInfo
- Variant information obtained from a prior
call to DataTypeVariantInfoSerializer.serializeVariantInfo()
DataTypeException
DataTypeVariantInfoSerializer.serializeVariantInfo(Object)
public Map<String,DataType> getRegisteredDataTypeMap()
public DataTypeEditor registerDataTypeEditor(String key, DataTypeEditor editor)
public static Class getEditorClass(DataTypeEditor editor)
public DataTypeEditor deregisterDataTypeEditor(String key, DataTypeEditor editor)
public boolean hasDataTypeEditor(String key)
public boolean hasDataTypeEditor(String key, Class editorClass)
public <T extends DataTypeEditor> T getDataTypeEditor(String key, Class<T> editorClass) throws DataTypeException
DataTypeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |