Class StringValueEncoder
- java.lang.Object
 - 
- org.apache.tapestry5.internal.services.StringValueEncoder
 
 
- 
- All Implemented Interfaces:
 ValueEncoder<String>
public class StringValueEncoder extends Object implements ValueEncoder<String>
Passes the string value from the server to the client and vice-versa without any translation. 
- 
- 
Constructor Summary
Constructors Constructor Description StringValueEncoder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoClient(String value)Converts a value into a client-side representation.StringtoValue(String clientValue)Converts a client-side representation, provided byValueEncoder.toClient(Object), back into a server-side value. 
 - 
 
- 
- 
Constructor Detail
- 
StringValueEncoder
public StringValueEncoder()
 
 - 
 
- 
Method Detail
- 
toClient
public String toClient(String value)
Description copied from interface:ValueEncoderConverts a value into a client-side representation. The value should be parseable byValueEncoder.toValue(String). In some cases, what is returned is an identifier used to locate the true object, rather than a string representation of the value itself.- Specified by:
 toClientin interfaceValueEncoder<String>- Parameters:
 value- to be encoded- Returns:
 - a string representation of the value, or the value's identity
 
 
- 
toValue
public String toValue(String clientValue)
Description copied from interface:ValueEncoderConverts a client-side representation, provided byValueEncoder.toClient(Object), back into a server-side value.- Specified by:
 toValuein interfaceValueEncoder<String>- Parameters:
 clientValue- string representation of the value's identity- Returns:
 - the corresponding entity, or null if not found
 
 
 - 
 
 -