public abstract class MapConverterSupport extends ConverterSupport
Map converters.| Modifier | Constructor and Description |
|---|---|
|
MapConverterSupport(Class type) |
protected |
MapConverterSupport(Class type,
PropertyEditor keyEditor,
PropertyEditor valueEditor) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertToObject(String text)
Treats the text value of this property as an input stream that
is converted into a Property bundle.
|
protected String |
convertToString(Object value)
Converts the supplied object to text.
|
protected abstract Map |
createMap(Map map) |
getAsText, getType, getValue, setAsText, setValue, toObject, toStringaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditorpublic MapConverterSupport(Class type)
protected MapConverterSupport(Class type, PropertyEditor keyEditor, PropertyEditor valueEditor)
protected final Object convertToObject(String text) throws Exception
convertToObject in class ConverterSupporttext - The text to convertToObjectConversionException - An error occurred creating the Properties object.Exception - Conversion failedprotected final String convertToString(Object value)
ConverterSupportconvertToString in class ConverterSupportvalue - an instance of the editor typeCopyright © 2008-2012 Sonatype. All Rights Reserved.