public enum MapValueMapper extends Enum<MapValueMapper> implements ValueMapper<Map<String,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
|
Map<String,String> |
transform(String value)
It expects the string of format key=value,key1=value1,key2=value2.
|
static MapValueMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapValueMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapValueMapper INSTANCE
public static MapValueMapper[] values()
for (MapValueMapper c : MapValueMapper.values()) System.out.println(c);
public static MapValueMapper 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)
ValueMapperhandles in interface ValueMapper<Map<String,String>>type - Type to be supportedparameters - Types that have to match in case type is generic typetrue if this is supported, false otherwisepublic Map<String,String> transform(String value) throws IllegalArgumentException
transform in interface ValueMapper<Map<String,String>>value - - the string to be parsed and transformed to Map.IllegalArgumentException - If conversion was not possibleCopyright © 2013 JBoss by Red Hat. All Rights Reserved.