java.lang.Objectjava.beans.PropertyEditorSupport
org.springframework.beans.propertyeditors.CustomCollectionEditor
All Implemented Interfaces:
PropertyEditor
By default registered for Set, SortedSet and List, to automatically convert any given Collection to one of those target types if the type does not match the target property.
Juergen - Hoeller1.1.3 - | Constructor: |
|---|
null as-is.
|
If the incoming value is of the given type, it will be used as-is. If it is a different Collection type or an array, it will be converted to a default implementation of the given Collection type. If the value is anything else, a target Collection with that single value will be created. The default Collection implementations are: ArrayList for List, TreeSet for SortedSet, and LinkedHashSet for Set.
|
| Method from org.springframework.beans.propertyeditors.CustomCollectionEditor Summary: |
|---|
| alwaysCreateNewCollection, convertElement, createCollection, getAsText, setAsText, setValue |
| Methods from java.beans.PropertyEditorSupport: |
|---|
| addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.beans.propertyeditors.CustomCollectionEditor Detail: |
|---|
Default is "false"; can be overridden to enforce creation of a new Collection, for example to convert elements in any case. |
Can be overridden to perform conversion of certain elements, for example String to Integer if a String array comes in and should be converted to a Set of Integer objects. Only called if actually creating a new Collection! This is by default not the case if the type of the passed-in Collection already matches. Override #alwaysCreateNewCollection() to enforce creating a new Collection in every case. |
|
null to indicate that
there is no appropriate text representation. |
|
|