|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.internal.translator.LongTranslator
public class LongTranslator
A translator for type long.
| Constructor Summary | |
|---|---|
LongTranslator()
|
|
| Method Summary | |
|---|---|
Class<Long> |
getType()
Returns the type of the server-side value. |
Long |
parseClient(String clientValue,
Messages messages)
Parses blank values to null, otherwise parses the client value to a long |
String |
toClient(Long value)
Converts null to the blank string, non-null to a string representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongTranslator()
| Method Detail |
|---|
public Class<Long> getType()
Translator
getType in interface Translator<Long>
public Long parseClient(String clientValue,
Messages messages)
throws ValidationException
parseClient in interface Translator<Long>clientValue - to convert to a server value; this will not be null, but may be blankmessages - validator messages assembled by ValidationMessagesSource
ValidationException - if the clientValue can not be parsedpublic String toClient(Long value)
toClient in interface Translator<Long>value - the server side value (which will not be null)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||