Package org.springframework.data.gemfire
Class IndexTypeConverter
java.lang.Object
java.beans.PropertyEditorSupport
org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport<IndexType>
org.springframework.data.gemfire.IndexTypeConverter
- All Implemented Interfaces:
PropertyEditor
,org.springframework.core.convert.converter.Converter<String,
IndexType>
The IndexTypeConverter class is a Spring Converter implementation as well as a JavaBeans PropertyEditor
that converts a given String value into a proper IndexType.
- Since:
- 1.5.2
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.data.gemfire.support.AbstractPropertyEditorConverterSupport
assertConverted, setAsText
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
IndexTypeConverter
public IndexTypeConverter()
-
-
Method Details
-
convert
Converts the given String value into an appropriate IndexType.- Parameters:
value
- the String to convert into an appropriate IndexType enumerated value.- Returns:
- an IndexType converted from the given String.
- Throws:
IllegalArgumentException
- if the given String could not be converted into an appropriate IndexType enumerated value.- See Also:
-
AbstractPropertyEditorConverterSupport.assertConverted(String, Object, Class)
IndexType.valueOfIgnoreCase(String)
StringUtils.trimWhitespace(String)
-