org.springframework.data.gemfire
Class ClientRegionShortcutConverter
java.lang.Object
org.springframework.data.gemfire.ClientRegionShortcutConverter
- All Implemented Interfaces:
- Converter<String,com.gemstone.gemfire.cache.client.ClientRegionShortcut>
public class ClientRegionShortcutConverter
- extends Object
- implements Converter<String,com.gemstone.gemfire.cache.client.ClientRegionShortcut>
The ClientRegionShortcutConverter class is a Spring Converter implementation converting String value Client Region
Shortcut representations into actual GemFire ClientRegionShortcut enumerated values.
- Since:
- 1.3.4
- See Also:
Converter,
ClientRegionShortcut
|
Method Summary |
com.gemstone.gemfire.cache.client.ClientRegionShortcut |
convert(String source)
Converts the source String representation of a Client Region Shortcut into a ClientRegionShortcut enumerated
value. |
protected static String |
toUpperCase(String value)
Converts the String value to upper case, trimming all whitespace. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientRegionShortcutConverter
public ClientRegionShortcutConverter()
toUpperCase
protected static String toUpperCase(String value)
- Converts the String value to upper case, trimming all whitespace. This method guards against null values
and returns the "null" String if value is null.
- Parameters:
value - the String to convert to a trimmed, upper case value.
- Returns:
- a trimmed, upper case value of the specified String, or "null" if the String value reference is null.
- See Also:
String.toUpperCase(),
String.trim(),
String.valueOf(Object)
convert
public com.gemstone.gemfire.cache.client.ClientRegionShortcut convert(String source)
- Converts the source String representation of a Client Region Shortcut into a ClientRegionShortcut enumerated
value.
- Specified by:
convert in interface Converter<String,com.gemstone.gemfire.cache.client.ClientRegionShortcut>
- Parameters:
source - the String representation of the Client Region Shortcut to convert.
- Returns:
- a ClientRegionShortcut enumerated value for the String representation.
- Throws:
IllegalArgumentException - if the String source is not a valid ClientRegionShortcut enumerated value.- See Also:
ClientRegionShortcut.valueOf(String)