Class CollectionEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.apache.mina.integration.beans.AbstractPropertyEditor
org.apache.mina.integration.beans.CollectionEditor
- All Implemented Interfaces:
PropertyEditor
- Direct Known Subclasses:
ListEditor, SetEditor
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectionEditor(Class<?> elementType) Creates a new CollectionEditor instance -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectprivate PropertyEditorprotected Collection<Object> protected final StringReturns a String representation of the given valueprotected final ObjectReturns an instance from a String representation of an objectMethods inherited from class AbstractPropertyEditor
defaultText, defaultValue, getAsText, getValue, setAsText, setTrimText, setValueMethods inherited from class PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
-
Field Details
-
ELEMENT
-
elementType
-
-
Constructor Details
-
CollectionEditor
Creates a new CollectionEditor instance- Parameters:
elementType- The Element type
-
-
Method Details
-
getElementEditor
-
toText
Returns a String representation of the given value- Specified by:
toTextin classAbstractPropertyEditor- Parameters:
value- The value- Returns:
- A String representation of the value
-
toValue
Returns an instance from a String representation of an object- Specified by:
toValuein classAbstractPropertyEditor- Parameters:
text- The String representation to convert- Returns:
- A instance of an object
- Throws:
IllegalArgumentException
-
newCollection
-
defaultElement
-