public class NodeConverter extends Object implements JsonCodec<Node,JsonObject>
| Modifier and Type | Field and Description |
|---|---|
static NodeConverter |
INSTANCE |
| Constructor and Description |
|---|
NodeConverter() |
| Modifier and Type | Method and Description |
|---|---|
Node |
decode(JsonObject value)
Decode
<J> to <T>. |
JsonObject |
encode(Node value)
Encode
<T> to <J>. |
static void |
fromJson(Iterable<Map.Entry<String,Object>> json,
Node obj) |
Class<Node> |
getTargetClass() |
static void |
toJson(Node obj,
JsonObject json) |
static void |
toJson(Node obj,
Map<String,Object> json) |
public static final NodeConverter INSTANCE
public JsonObject encode(Node value)
JsonEncoder<T> to <J>.
value will not be null and the implementation must not return null.encode in interface JsonEncoder<Node,JsonObject>value - the valuepublic Node decode(JsonObject value)
JsonDecoder<J> to <T>.
json will not be null and the implementation must not return null.decode in interface JsonDecoder<Node,JsonObject>value - the json valuepublic Class<Node> getTargetClass()
getTargetClass in interface JsonDecoder<Node,JsonObject>getTargetClass in interface JsonEncoder<Node,JsonObject><T>public static void toJson(Node obj, JsonObject json)
Copyright © 2019 Eclipse. All rights reserved.