public class PropertyEditorRegistry extends Object implements Closeable
| Constructor and Description |
|---|
PropertyEditorRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release closeable converters.
|
protected Converter |
createConverterFromEditor(Type type) |
Converter |
findConverter(Type type) |
protected PropertyEditor |
findEditor(Type type)
Locate a property editor for qiven class of object.
|
protected Converter |
findInternalConverter(Type type) |
protected Converter |
findStructuralConverter(Type type) |
Map<Type,Converter> |
getRegistry() |
Object |
getValue(String type,
String value,
ClassLoader classLoader) |
Object |
getValue(Type type,
String value) |
Converter |
register(Converter converter)
Register a converter in the registry.
|
PropertyEditorRegistry |
registerDefaults() |
String |
toString(Object value) |
Converter |
unregister(Converter converter)
Unregister a converter.
|
protected Class<?> |
unwrapClass(Object value) |
public PropertyEditorRegistry registerDefaults()
public Converter register(Converter converter)
converter - the converter to register.public Converter unregister(Converter converter)
converter - the converter to remove from the registry.public String toString(Object value) throws PropertyEditorException
PropertyEditorExceptionpublic Object getValue(String type, String value, ClassLoader classLoader) throws PropertyEditorException
PropertyEditorExceptionpublic Object getValue(Type type, String value) throws PropertyEditorException
PropertyEditorExceptionprotected PropertyEditor findEditor(Type type)
type - The target object class of the property.public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.