|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.requestfactory.shared.ValueCodex
public class ValueCodex
Provides unified encoding and decoding of value objects.
| Constructor Summary | |
|---|---|
ValueCodex()
|
|
| Method Summary | ||
|---|---|---|
static boolean |
canDecode(java.lang.Class<?> clazz)
Returns true if ValueCodex can operate on values of the given type. |
|
static
|
convertFromString(java.lang.Class<T> clazz,
java.lang.String encoded)
Convert an encoded representation of a value into a value. |
|
static java.lang.String |
encodeForJsonPayload(java.lang.Object obj)
Convert a value into an encoded string representation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueCodex()
| Method Detail |
|---|
public static boolean canDecode(java.lang.Class<?> clazz)
public static <T> T convertFromString(java.lang.Class<T> clazz,
java.lang.String encoded)
T - the type of value desiredclazz - the type of value desiredencoded - the encoded representation of the value
java.lang.IllegalArgumentException - if clazz is not a supported
value typepublic static java.lang.String encodeForJsonPayload(java.lang.Object obj)
obj - the value to encode
java.lang.IllegalArgumentException - if obj is not of a supported
type
|
GWT 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||