public abstract class AbstractPropertyEditorConverterSupport<T> extends PropertyEditorSupport implements Converter<String,T>
AbstractPropertyEditorConverterSupport
class is an abstract base class for Spring Converter
implementations that also implement the JavaBeans PropertyEditor
interface.PropertyEditor
,
PropertyEditorSupport
,
Converter
Constructor and Description |
---|
AbstractPropertyEditorConverterSupport() |
Modifier and Type | Method and Description |
---|---|
protected T |
assertConverted(String source,
T convertedValue,
Class<T> type)
|
void |
setAsText(String text)
|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public AbstractPropertyEditorConverterSupport()
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
text
- String
to convert.IllegalArgumentException
- if the String
could not be converted into
an instance of type
T.Converter.convert(Object)
,
PropertyEditorSupport.setValue(Object)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.