java.beans.PropertyEditor for any given
org.springframework.core.convert.ConversionService and specific target type.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final ConversionService | |
| private final TypeDescriptor |
| Access | Constructor and Description |
|---|---|
| public | ConvertingPropertyEditorAdapter(ConversionService
the ConversionService to delegate to conversionService, TypeDescriptor the target type to convert to targetDescriptor)Create a new ConvertingPropertyEditorAdapter for a given
|
| Modifier and Type | Method and Description |
|---|---|
| public String | getAsText()
Overrides java. Implements java. Gets the property value as a string suitable for presentation to a human to edit. |
| public void | setAsText(String
The string to be parsed. text)Overrides java. Implements java. Sets the property value by parsing a given String. |
| canConvertToString | back to summary |
|---|---|
| private final boolean canConvertToString | |
| conversionService | back to summary |
|---|---|
| private final ConversionService conversionService | |
| targetDescriptor | back to summary |
|---|---|
| private final TypeDescriptor targetDescriptor | |
| ConvertingPropertyEditorAdapter | back to summary |
|---|---|
| public ConvertingPropertyEditorAdapter(ConversionService conversionService, TypeDescriptor targetDescriptor) Create a new ConvertingPropertyEditorAdapter for a given
| |
| getAsText | back to summary |
|---|---|
| public String getAsText() Overrides java. Implements java. Doc from java. Gets the property value as a string suitable for presentation to a human to edit. | |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) throws IllegalArgumentException Overrides java. Implements java. Doc from java. Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text. | |