public enum StringValueMapper extends Enum<StringValueMapper> implements ValueMapper<String>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
handles(Class<?> type,
Class<?>... parameters)
Checks if given type is supported by this handler
|
String |
transform(String value)
Returns converted value from a string
|
static StringValueMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringValueMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringValueMapper INSTANCE
public static StringValueMapper[] values()
for (StringValueMapper c : StringValueMapper.values()) System.out.println(c);
public static StringValueMapper valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic boolean handles(Class<?> type, Class<?>... parameters)
ValueMapper
handles
in interface ValueMapper<String>
type
- Type to be supportedparameters
- Types that have to match in case type is generic typetrue
if this is supported, false
otherwisepublic String transform(String value)
ValueMapper
transform
in interface ValueMapper<String>
value
- String value to be convertedCopyright © 2013 JBoss by Red Hat. All Rights Reserved.