public class IndexTypeConverter extends PropertyEditorSupport implements Converter<String,IndexType>
PropertyEditorSupport,
Converter,
IndexType| Constructor and Description |
|---|
IndexTypeConverter() |
| Modifier and Type | Method and Description |
|---|---|
IndexType |
convert(String value)
Converts the given String value into an appropriate IndexType
|
void |
setAsText(String text)
Sets the value of this PropertyEditor as a IndexType enumerated value converted from the given String text.
|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic IndexType convert(String value)
convert in interface Converter<String,IndexType>value - the String to convert into a corresponding IndexType enumerated value.IllegalArgumentException - if the given String could not be converted into
an appropriate IndexType enumerated value.assertConverted(String, IndexType),
IndexType.valueOfIgnoreCase(String),
StringUtils.trimWhitespace(String)public void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupporttext - the String to convert into a corresponding IndexType enumerated value.IllegalArgumentException - if the given String could not be converted into
an appropriate IndexType enumerated value.convert(String),
PropertyEditorSupport.setValue(Object)