public class JsonManagerImpl extends java.lang.Object implements JsonManager
JsonManager.JsonSerializer
ATTRIBUTE_NAME_CLASS
Constructor and Description |
---|
JsonManagerImpl() |
Modifier and Type | Method and Description |
---|---|
DynObject |
addAll(DynObject target,
JsonObject json) |
JsonArray |
createArray(java.lang.String json) |
JsonArrayBuilder |
createArrayBuilder() |
JsonPathContext |
createJSonPathContext(JsonStructure jsonObject) |
JsonObject |
createObject(java.lang.String json) |
JsonObjectBuilder |
createObjectBuilder() |
JsonObjectBuilder |
createObjectBuilder(JsonObject obj) |
JsonObjectBuilder |
createObjectBuilder(java.lang.String json) |
SAJParser |
createSAJParser(java.io.InputStream is,
SAJParser.SAJParserHandler handler) |
SAJParser |
createSAJParser(JsonParser parser,
SAJParser.SAJParserHandler handler) |
SAJParser |
createSAJParser(java.io.Reader reader,
SAJParser.SAJParserHandler handler) |
static java.lang.String |
createSerializerKey(java.lang.Class aClass) |
static java.lang.String |
createSerializerKey(java.lang.String className) |
JsonManager.JsonSerializer |
getSerializer(JsonObject json) |
JsonManager.JsonSerializer |
getSerializer(java.lang.Object value) |
void |
registerSerializer(java.lang.Class<? extends SupportFromJson> theClass) |
void |
registerSerializer(JsonManager.JsonSerializer serializer) |
void |
registerSerializer1(java.lang.Class<? extends SupportFromJson> theClass) |
void |
registerSerializer2(JsonManager.JsonSerializer serializer) |
java.lang.Object[] |
toArray(JsonArray jsonArray,
java.lang.Object[] a) |
java.util.Collection<java.lang.Object> |
toCollection(JsonArray jsonArray) |
GetItemWithSizeAndIterator<java.lang.Object> |
toItems(JsonArray jsonArray) |
java.lang.Iterable<java.lang.Object> |
toIterable(JsonArray jsonArray) |
java.util.Map |
toMap(JsonObject json) |
java.lang.Object |
toObject(JsonArray json,
int index) |
java.lang.Object |
toObject(JsonObject json,
java.lang.String name) |
java.lang.Object |
toObject(JsonValue value) |
java.lang.Object |
toObjectOrDefault(JsonValue value,
java.lang.Object defaultValue) |
java.lang.String |
toString(JsonValue value) |
static JsonValue |
wrap(JsonValue value) |
public static java.lang.String createSerializerKey(java.lang.Class aClass)
public static java.lang.String createSerializerKey(java.lang.String className)
public void registerSerializer1(java.lang.Class<? extends SupportFromJson> theClass)
public void registerSerializer2(JsonManager.JsonSerializer serializer)
public void registerSerializer(java.lang.Class<? extends SupportFromJson> theClass)
registerSerializer
in interface JsonManager
public void registerSerializer(JsonManager.JsonSerializer serializer)
registerSerializer
in interface JsonManager
public JsonManager.JsonSerializer getSerializer(java.lang.Object value)
getSerializer
in interface JsonManager
public JsonManager.JsonSerializer getSerializer(JsonObject json)
getSerializer
in interface JsonManager
public JsonObjectBuilder createObjectBuilder()
createObjectBuilder
in interface JsonManager
public JsonArrayBuilder createArrayBuilder()
createArrayBuilder
in interface JsonManager
public JsonObject createObject(java.lang.String json)
createObject
in interface JsonManager
public JsonArray createArray(java.lang.String json)
createArray
in interface JsonManager
public java.lang.String toString(JsonValue value)
toString
in interface JsonManager
public java.lang.Object toObject(JsonObject json, java.lang.String name)
toObject
in interface JsonManager
public java.lang.Object toObject(JsonArray json, int index)
toObject
in interface JsonManager
public java.lang.Iterable<java.lang.Object> toIterable(JsonArray jsonArray)
toIterable
in interface JsonManager
public java.util.Collection<java.lang.Object> toCollection(JsonArray jsonArray)
toCollection
in interface JsonManager
public GetItemWithSizeAndIterator<java.lang.Object> toItems(JsonArray jsonArray)
toItems
in interface JsonManager
public java.lang.Object[] toArray(JsonArray jsonArray, java.lang.Object[] a)
toArray
in interface JsonManager
public java.lang.Object toObject(JsonValue value)
toObject
in interface JsonManager
public java.lang.Object toObjectOrDefault(JsonValue value, java.lang.Object defaultValue)
toObjectOrDefault
in interface JsonManager
public DynObject addAll(DynObject target, JsonObject json)
addAll
in interface JsonManager
public java.util.Map toMap(JsonObject json)
toMap
in interface JsonManager
public static JsonValue wrap(JsonValue value)
public JsonObjectBuilder createObjectBuilder(java.lang.String json)
createObjectBuilder
in interface JsonManager
public JsonObjectBuilder createObjectBuilder(JsonObject obj)
createObjectBuilder
in interface JsonManager
public JsonPathContext createJSonPathContext(JsonStructure jsonObject)
createJSonPathContext
in interface JsonManager
public SAJParser createSAJParser(java.io.InputStream is, SAJParser.SAJParserHandler handler)
createSAJParser
in interface JsonManager
public SAJParser createSAJParser(java.io.Reader reader, SAJParser.SAJParserHandler handler)
createSAJParser
in interface JsonManager
public SAJParser createSAJParser(JsonParser parser, SAJParser.SAJParserHandler handler)
createSAJParser
in interface JsonManager