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, 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 CollectionConverterSupport(Class type)
public CollectionConverterSupport(Class type, PropertyEditor editor)
protected final Object convertToObject(String text) throws Exception
ConverterSupportconvertToObject in class ConverterSupporttext - The text to convertToObjectException - Conversion failedprotected abstract Object createCollection(List list) throws Exception
Exceptionprotected final String convertToString(Object value)
ConverterSupportconvertToString in class ConverterSupportvalue - an instance of the editor typeCopyright © 2008-2012 Sonatype. All Rights Reserved.