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
,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
- Author:
- John Blum
- See Also:
-
Constructor Summary
Constructors -
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
-
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:
-