public class FakeMapper extends JsonReaderI<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
static JsonReaderI<java.lang.Object> |
DEFAULT |
base| Modifier | Constructor and Description |
|---|---|
private |
FakeMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.Object current,
java.lang.Object value)
add a value in an array json object.
|
java.lang.Object |
createArray()
use to instantiate a new object that will be used as an array
|
java.lang.Object |
createObject()
use to instantiate a new object that will be used as an object
|
void |
setValue(java.lang.Object current,
java.lang.String key,
java.lang.Object value)
called when json-smart done parsing a value
|
JsonReaderI<?> |
startArray(java.lang.String key)
called when json-smart parser start an array.
|
JsonReaderI<?> |
startObject(java.lang.String key)
called when json-smart parser meet an object key
|
convert, getType, getValuepublic static JsonReaderI<java.lang.Object> DEFAULT
public JsonReaderI<?> startObject(java.lang.String key)
JsonReaderIstartObject in class JsonReaderI<java.lang.Object>public JsonReaderI<?> startArray(java.lang.String key)
JsonReaderIstartArray in class JsonReaderI<java.lang.Object>key - the destination key name, or null.public void setValue(java.lang.Object current,
java.lang.String key,
java.lang.Object value)
JsonReaderIsetValue in class JsonReaderI<java.lang.Object>public void addValue(java.lang.Object current,
java.lang.Object value)
JsonReaderIaddValue in class JsonReaderI<java.lang.Object>public java.lang.Object createObject()
JsonReaderIcreateObject in class JsonReaderI<java.lang.Object>public java.lang.Object createArray()
JsonReaderIcreateArray in class JsonReaderI<java.lang.Object>