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, toString
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
public MapConverterSupport(Class type)
protected MapConverterSupport(Class type, PropertyEditor keyEditor, PropertyEditor valueEditor)
protected final Object convertToObject(String text) throws Exception
convertToObject
in class ConverterSupport
text
- The text to convertToObjectConversionException
- An error occurred creating the Properties object.Exception
- Conversion failedprotected final String convertToString(Object value)
ConverterSupport
convertToString
in class ConverterSupport
value
- an instance of the editor typeCopyright © 2008-2012 Sonatype. All Rights Reserved.