|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - public interface Translator<T>
Translates between client-side and server-side values. Client-side values are always strings.
org.apache.tapestry.services.TranslatorDefaultSource,
FieldValidationSupport| Method Summary | |
|---|---|
Class<T> |
getType()
Returns the type of the server-side value. |
T |
parseClient(String clientValue,
Messages messages)
Converts a submitted request value into an appropriate server side value. |
String |
toClient(T value)
Converts a server-side value to a client-side string. |
| Method Detail |
|---|
String toClient(T value)
parseClient(String,
Messages).
value - the server side value (which will not be null)
Class<T> getType()
T parseClient(String clientValue,
Messages messages)
throws ValidationException
clientValue - to convert to a server value; this will not be null, but may be blankmessages - validator messages assembled by ValidationMessagesSource
ValidationException - if the value can not be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||