public class StringValueEncoder extends java.lang.Object implements ValueEncoder<java.lang.String>
| Constructor and Description |
|---|
StringValueEncoder() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toClient(java.lang.String value)
Converts a value into a client-side representation.
|
java.lang.String |
toValue(java.lang.String clientValue)
Converts a client-side representation, provided by
ValueEncoder.toClient(Object), back into a server-side value. |
public StringValueEncoder()
public java.lang.String toClient(java.lang.String value)
ValueEncoderValueEncoder.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.toClient in interface ValueEncoder<java.lang.String>value - to be encodedpublic java.lang.String toValue(java.lang.String clientValue)
ValueEncoderValueEncoder.toClient(Object), back into a server-side value.toValue in interface ValueEncoder<java.lang.String>clientValue - string representation of the value's identity${project.version} - Copyright © 2003-2015 The Apache Software Foundation.