Modifier and Type | Method and Description |
---|---|
static <T extends JsonValue> |
Util.jso2json(com.google.gwt.core.client.JavaScriptObject jso)
Converts a native
JavaScriptObject into a JsonValue . |
Modifier and Type | Method and Description |
---|---|
static com.google.gwt.core.client.JavaScriptObject |
Util.json2jso(JsonValue jsonValue)
Converts a
JsonValue into a native JavaScriptObject . |
Modifier and Type | Method and Description |
---|---|
static <T extends JsonValue> |
JsonDecoder.obj2jso(Object object)
Called by generated deserialization code to treat a generic object as a
JsonValue.
|
Modifier and Type | Method and Description |
---|---|
static JsonValue |
JsonEncoder.encode(Object value,
Type type,
ApplicationConnection connection)
Encode a value to a JSON representation for transport from the client to
the server.
|
JsonValue |
Date_Serializer.serialize(Date value,
ApplicationConnection connection) |
JsonValue |
JSONSerializer.serialize(T value,
ApplicationConnection connection)
Serialize the given object into JSON.
|
JsonValue |
URLReference_Serializer.serialize(URLReference value,
ApplicationConnection connection) |
Modifier and Type | Method and Description |
---|---|
static Object |
JsonDecoder.decodeValue(Type type,
JsonValue jsonValue,
Object target,
ApplicationConnection connection)
Decode a JSON array with two elements (type and value) into a client-side
type, recursively if necessary.
|
URLReference |
URLReference_Serializer.deserialize(Type type,
JsonValue jsonValue,
ApplicationConnection connection) |
T |
JSONSerializer.deserialize(Type type,
JsonValue jsonValue,
ApplicationConnection connection)
Creates and deserializes an object received from the server.
|
Date |
Date_Serializer.deserialize(Type type,
JsonValue jsonValue,
ApplicationConnection connection) |
void |
DiffJSONSerializer.update(T target,
Type type,
JsonValue jsonValue,
ApplicationConnection connection)
Update the target object in place based on the passed JSON data.
|
Modifier and Type | Method and Description |
---|---|
Object |
JavaScriptRendererConnector.decode(JsonValue value) |
String |
ImageRendererConnector.decode(JsonValue value) |
T |
AbstractRendererConnector.decode(JsonValue value)
Decodes the given JSON value into a value of type T so it can be passed
to the
renderer . |
Modifier and Type | Method and Description |
---|---|
JsonValue |
EncodeResult.getDiff() |
JsonValue |
EncodeResult.getDiffOrValue() |
JsonValue |
EncodeResult.getEncodedValue() |
Modifier and Type | Method and Description |
---|---|
static Object |
JsonCodec.decodeCustomType(Type targetType,
JsonValue value,
ConnectorTracker connectorTracker) |
static Object |
JsonCodec.decodeInternalOrCustomType(Type targetType,
JsonValue value,
ConnectorTracker connectorTracker) |
static Object |
JsonCodec.decodeInternalType(Type targetType,
boolean restrictToInternalTypes,
JsonValue encodedJsonValue,
ConnectorTracker connectorTracker)
Decodes a value that is of an internal type.
|
static EncodeResult |
JsonCodec.encode(Object value,
JsonValue diffState,
Type valueType,
ConnectorTracker connectorTracker) |
static boolean |
JsonCodec.jsonEquals(JsonValue a,
JsonValue b)
Compares two json values for deep equality.
|
Constructor and Description |
---|
EncodeResult(JsonValue encodedValue) |
EncodeResult(JsonValue encodedValue,
JsonValue diff) |
Modifier and Type | Method and Description |
---|---|
JsonValue |
DateSerializer.serialize(Date value,
ConnectorTracker connectorTracker) |
JsonValue |
JSONSerializer.serialize(T value,
ConnectorTracker connectorTracker)
Serialize the given object into JSON.
|
Modifier and Type | Method and Description |
---|---|
T |
JSONSerializer.deserialize(Type type,
JsonValue jsonValue,
ConnectorTracker connectorTracker)
Creates and deserializes an object received from the client.
|
Date |
DateSerializer.deserialize(Type type,
JsonValue jsonValue,
ConnectorTracker connectorTracker) |
Modifier and Type | Method and Description |
---|---|
JsonValue |
Grid.AbstractRenderer.encode(T value) |
protected <U> JsonValue |
Grid.AbstractRenderer.encode(U value,
Class<U> type)
Encodes the given value to JSON.
|
static <T> JsonValue |
Grid.AbstractRenderer.encodeValue(Object modelValue,
Renderer<T> renderer,
Converter<?,?> converter,
Locale locale)
Converts and encodes the given data model property value using the
given converter and renderer.
|
Modifier and Type | Method and Description |
---|---|
JsonValue |
DateRenderer.encode(Date value) |
JsonValue |
ProgressBarRenderer.encode(Double value) |
JsonValue |
NumberRenderer.encode(Number value) |
JsonValue |
ImageRenderer.encode(Resource resource) |
JsonValue |
Renderer.encode(T value)
Encodes the given value into a
JsonValue . |
Modifier and Type | Interface and Description |
---|---|
interface |
JsonArray
Represents a Json array.
|
interface |
JsonBoolean
Represents a Json boolean.
|
interface |
JsonNull
Represents the Json null value.
|
interface |
JsonNumber
Represents a Json number value.
|
interface |
JsonObject
Represents a Json object.
|
interface |
JsonString
Represents a Json String value.
|
Modifier and Type | Method and Description |
---|---|
<T extends JsonValue> |
JsonArray.get(int index)
Return the ith element of the array.
|
<T extends JsonValue> |
JsonObject.get(String key)
Return the element (uncoerced) as a JsonValue.
|
<T extends JsonValue> |
JsonFactory.parse(String jsonString)
Parse a String in JSON format and return a JsonValue of the appropriate
type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsonValue.jsEquals(JsonValue value)
Equivalent of Javascript '==' operator comparison between two values.
|
void |
JsonObject.put(String key,
JsonValue value)
Set a given key to the given value.
|
void |
JsonArray.set(int index,
JsonValue value)
Set the value at index to be a given value.
|
Modifier and Type | Class and Description |
---|---|
class |
JreJsonArray
Server-side implementation of JsonArray.
|
class |
JreJsonBoolean
Server-side implementation of JsonBoolean.
|
class |
JreJsonNull
Server-side implementation of JsonObject.
|
class |
JreJsonNumber
Server-side implementation of JsonNumber.
|
class |
JreJsonObject
Server-side implementation of JsonObject.
|
class |
JreJsonString
Server-side implementation of JsonString.
|
class |
JreJsonValue
JRE (non-Client) implementation of JreJsonValue.
|
Modifier and Type | Method and Description |
---|---|
static <T extends JsonValue> |
JsonUtil.parse(String json) |
<T extends JsonValue> |
JreJsonFactory.parse(String jsonString) |
protected static <T extends JsonValue> |
JreJsonValue.parseJson(ObjectInputStream stream) |
Modifier and Type | Method and Description |
---|---|
JsonValue |
JreJsonArray.get(int index) |
JsonValue |
JreJsonObject.get(String key) |
Modifier and Type | Method and Description |
---|---|
boolean |
JreJsonString.jsEquals(JsonValue value) |
boolean |
JreJsonObject.jsEquals(JsonValue value) |
boolean |
JreJsonNumber.jsEquals(JsonValue value) |
boolean |
JreJsonNull.jsEquals(JsonValue value) |
boolean |
JreJsonBoolean.jsEquals(JsonValue value) |
boolean |
JreJsonArray.jsEquals(JsonValue value) |
void |
JreJsonObject.put(String key,
JsonValue value) |
void |
JreJsonArray.set(int index,
JsonValue value) |
void |
JreJsonObject.set(String key,
JsonValue value) |
static String |
JsonUtil.stringify(JsonValue jsonValue)
Converts a Json Object to Json format.
|
static String |
JsonUtil.stringify(JsonValue jsonValue,
int spaces)
Converts a JSO to Json format.
|
static String |
JsonUtil.stringify(JsonValue jsonValue,
String indent)
Converts a Json object to Json formatted String.
|
Copyright © 2019 Vaadin Ltd. All rights reserved.