|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.waffle.bind.converters.EnumValueConverter
public class EnumValueConverter
ValueConverter that converts Enum values.
| Constructor Summary | |
|---|---|
EnumValueConverter()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.reflect.Type type)
Determines if converter is compatible with the given type |
java.lang.Object |
convertValue(java.lang.String propertyName,
java.lang.String value,
java.lang.reflect.Type type)
Converts a String value to an Object of a given type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumValueConverter()
| Method Detail |
|---|
public boolean accept(java.lang.reflect.Type type)
ValueConverter
accept in interface ValueConvertertype - the Type a value is to be bound to
true is type is compatible
public java.lang.Object convertValue(java.lang.String propertyName,
java.lang.String value,
java.lang.reflect.Type type)
ValueConverter
convertValue in interface ValueConverterpropertyName - the associated property name, which can be null, also needed to present
customized error messages.value - the String valuetype - the Object Type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||