org.apache.xbean.propertyeditor
Class AbstractCollectionConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.xbean.propertyeditor.AbstractConverter
org.apache.xbean.propertyeditor.AbstractCollectionConverter
- All Implemented Interfaces:
- PropertyEditor, Converter
- Direct Known Subclasses:
- ArrayConverter, ArrayListEditor, GenericCollectionConverter, LinkedHashSetEditor, LinkedListEditor, ListEditor, SetEditor, SortedSetEditor, TreeSetEditor, VectorEditor
public abstract class AbstractCollectionConverter
- extends AbstractConverter
- Version:
- $Rev: 6687 $ $Date: 2005-12-28T21:08:56.733437Z $
Methods inherited from class java.beans.PropertyEditorSupport |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCollectionConverter
public AbstractCollectionConverter(Class type)
AbstractCollectionConverter
public AbstractCollectionConverter(Class type,
PropertyEditor editor)
toObjectImpl
protected final Object toObjectImpl(String text)
- Description copied from class:
AbstractConverter
- Converts the supplied text in to an instance of the editor type. The text will never be null, and trim() will
already have been called.
- Specified by:
toObjectImpl
in class AbstractConverter
- Parameters:
text
- the text to convert
- Returns:
- an instance of the editor type
createCollection
protected abstract Object createCollection(List list)
toStringImpl
protected final String toStringImpl(Object value)
- Description copied from class:
AbstractConverter
- Converts the supplied object to text. The supplied object will always be an instance of the editor type, and
specifically will never be null or a String (unless this is the String editor).
- Overrides:
toStringImpl
in class AbstractConverter
- Parameters:
value
- an instance of the editor type
- Returns:
- the text equivalent of the value
Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.