|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Converter
Makes the conversion between text and the java object that will be populated. Converters must be stateless and thread-safe. That means that they should not have private non-static attributes, unless you know what you are doing.
Method Summary | |
---|---|
java.lang.Object |
getAsObject(java.lang.String paramName,
java.lang.String paramValue,
Messages messages,
MessagesRepository repository)
Return the object value for the given text |
java.lang.String |
getAsText(java.lang.Object value,
MessagesRepository repository)
Return the text value for the given object |
java.lang.Class<?> |
getConvertedClass()
|
Methods inherited from interface org.loom.validator.FormInputDecorator |
---|
decorate |
Method Detail |
---|
java.lang.Object getAsObject(java.lang.String paramName, java.lang.String paramValue, Messages messages, MessagesRepository repository)
paramValue
- the value that is being parsed
java.lang.String getAsText(java.lang.Object value, MessagesRepository repository)
value
- the java object to convert to textrepository
- the MessagesRepository object
java.lang.Class<?> getConvertedClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |