public class PropertyEditors
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.Class,java.lang.Class> |
PRIMITIVE_TO_WRAPPER |
private static boolean |
registerWithVM |
private static java.util.Map<java.lang.Class,Converter> |
registry |
private static java.util.Map<java.lang.Class,java.lang.Class> |
WRAPPER_TO_PRIMITIVE |
Constructor and Description |
---|
PropertyEditors() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canConvert(java.lang.Class type) |
static boolean |
canConvert(java.lang.String type,
java.lang.ClassLoader classLoader) |
private static Converter |
findBuiltinConverter(java.lang.reflect.Type type) |
private static Converter |
findConverter(java.lang.reflect.Type type) |
private static java.beans.PropertyEditor |
findConverterOrEditor(java.lang.reflect.Type type) |
private static java.beans.PropertyEditor |
findEditor(java.lang.reflect.Type type)
Locate a property editor for qiven class of object.
|
static java.lang.Object |
getValue(java.lang.String type,
java.lang.String value,
java.lang.ClassLoader classLoader) |
static java.lang.Object |
getValue(java.lang.reflect.Type type,
java.lang.String value) |
static boolean |
isRegisterWithVM()
Are converters registered with the VM PropertyEditorManager.
|
static void |
registerConverter(Converter converter) |
static void |
setRegisterWithVM(boolean registerWithVM)
Sets if converters registered with the VM PropertyEditorManager.
|
static java.lang.String |
toString(java.lang.Object value) |
private static final java.util.Map<java.lang.Class,Converter> registry
private static final java.util.Map<java.lang.Class,java.lang.Class> PRIMITIVE_TO_WRAPPER
private static final java.util.Map<java.lang.Class,java.lang.Class> WRAPPER_TO_PRIMITIVE
private static boolean registerWithVM
public static boolean isRegisterWithVM()
public static void setRegisterWithVM(boolean registerWithVM)
public static void registerConverter(Converter converter)
public static boolean canConvert(java.lang.String type, java.lang.ClassLoader classLoader)
public static boolean canConvert(java.lang.Class type)
private static java.beans.PropertyEditor findConverterOrEditor(java.lang.reflect.Type type)
public static java.lang.String toString(java.lang.Object value) throws PropertyEditorException
PropertyEditorException
public static java.lang.Object getValue(java.lang.String type, java.lang.String value, java.lang.ClassLoader classLoader) throws PropertyEditorException
PropertyEditorException
public static java.lang.Object getValue(java.lang.reflect.Type type, java.lang.String value) throws PropertyEditorException
PropertyEditorException
private static Converter findBuiltinConverter(java.lang.reflect.Type type)
private static Converter findConverter(java.lang.reflect.Type type)
private static java.beans.PropertyEditor findEditor(java.lang.reflect.Type type)
type
- The target object class of the property.