public class EnumValueAdapter extends Object implements ValueAdapter
NOOP
Constructor and Description |
---|
EnumValueAdapter(QName qName,
org.jboss.reflect.spi.EnumInfo enumInfo,
org.jboss.reflect.spi.TypeInfo enumType)
Create a new EnumValueAdapter.
|
Modifier and Type | Method and Description |
---|---|
Object |
cast(Object o,
Class<?> c)
An implementation should make sure that an object past in as the first parameter
can be set as a value of a field that is of a type passed in as the second parameter
|
Map<Object,Object> |
getMapping()
Get the mapping
|
protected boolean |
isCaseIgnored()
Check if we should ignore case.
|
public EnumValueAdapter(QName qName, org.jboss.reflect.spi.EnumInfo enumInfo, org.jboss.reflect.spi.TypeInfo enumType)
qName
- the qNameenumInfo
- the enumerationenumType
- the enumTypeIllegalArgumentException
- for a null enumInfo or enumTypeprotected boolean isCaseIgnored()
public Object cast(Object o, Class<?> c)
ValueAdapter
cast
in interface ValueAdapter
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.