|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValueConverter
Implementation of this interface will be responsible for converting String values to the specific type. These are
registered with Waffle through the web.xml.
| 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 toType)
Converts a String value to an Object of a given type |
| Method Detail |
|---|
boolean accept(java.lang.reflect.Type type)
type - the Type a value is to be bound to
true is type is compatible
java.lang.Object convertValue(java.lang.String propertyName,
java.lang.String value,
java.lang.reflect.Type toType)
propertyName - the associated property name, which can be null, also needed to present
customized error messages.value - the String valuetoType - the Object Type
BindException - if conversion fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||