public static class CollectionMapper.MapClass<T> extends JsonReaderI<T>
base| Constructor and Description |
|---|
CollectionMapper.MapClass(JsonReader base,
Class<?> type) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createObject()
use to instantiate a new object that will be used as an object
|
Type |
getType(String key) |
Object |
getValue(Object current,
String key)
-------------
|
void |
setValue(Object current,
String key,
Object value)
called when json-smart done parsing a value
|
JsonReaderI<?> |
startArray(String key)
called when json-smart parser start an array.
|
JsonReaderI<?> |
startObject(String key)
called when json-smart parser meet an object key
|
addValue, convert, createArraypublic CollectionMapper.MapClass(JsonReader base, Class<?> type)
public Object createObject()
JsonReaderIcreateObject in class JsonReaderI<T>public JsonReaderI<?> startArray(String key)
JsonReaderIstartArray in class JsonReaderI<T>key - the destination key name, or null.public JsonReaderI<?> startObject(String key)
JsonReaderIstartObject in class JsonReaderI<T>public void setValue(Object current, String key, Object value)
JsonReaderIsetValue in class JsonReaderI<T>public Object getValue(Object current, String key)
JsonReaderIgetValue in class JsonReaderI<T>public Type getType(String key)
getType in class JsonReaderI<T>Copyright © 2015 Chemouni Uriel. All rights reserved.