public abstract class CollectionConverterSupport extends ConverterSupport
Constructor and Description |
---|
CollectionConverterSupport(Class type) |
CollectionConverterSupport(Class type,
PropertyEditor editor) |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertToObject(String text)
Converts the supplied text in to an instance of the editor type.
|
protected String |
convertToString(Object value)
Converts the supplied object to text.
|
protected abstract Object |
createCollection(List list) |
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 CollectionConverterSupport(Class type)
public CollectionConverterSupport(Class type, PropertyEditor editor)
protected final Object convertToObject(String text) throws Exception
ConverterSupport
convertToObject
in class ConverterSupport
text
- The text to convertToObjectException
- Conversion failedprotected abstract Object createCollection(List list) throws Exception
Exception
protected final String convertToString(Object value)
ConverterSupport
convertToString
in class ConverterSupport
value
- an instance of the editor typeCopyright © 2008-2013 Sonatype. All Rights Reserved.