T - public class DefaultMapper<T> extends JsonReaderI<T>
base| Modifier | Constructor and Description |
|---|---|
protected |
DefaultMapper(JsonReader base) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Object current,
Object value)
add a value in an array json object.
|
Object |
createArray()
use to instantiate a new object that will be used as an array
|
Object |
createObject()
use to instantiate a new object that will be used as an object
|
void |
setValue(Object current,
String key,
Object value)
called when json-smart done parsing a value
|
JsonReaderI<JSONAwareEx> |
startArray(String key)
called when json-smart parser start an array.
|
JsonReaderI<JSONAwareEx> |
startObject(String key)
called when json-smart parser meet an object key
|
convert, getType, getValueprotected DefaultMapper(JsonReader base)
public JsonReaderI<JSONAwareEx> startObject(String key)
JsonReaderIstartObject in class JsonReaderI<T>public JsonReaderI<JSONAwareEx> startArray(String key)
JsonReaderIstartArray in class JsonReaderI<T>key - the destination key name, or null.public Object createObject()
JsonReaderIcreateObject in class JsonReaderI<T>public Object createArray()
JsonReaderIcreateArray in class JsonReaderI<T>public void setValue(Object current, String key, Object value)
JsonReaderIsetValue in class JsonReaderI<T>public void addValue(Object current, Object value)
JsonReaderIaddValue in class JsonReaderI<T>Copyright © 2017 Chemouni Uriel. All rights reserved.