net.minidev.json.mapper
public class DefaultMapperCollection<T> extends AMapper<T>
Constructor and Description |
---|
DefaultMapperCollection(Class<T> clz) |
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
|
AMapper<T> |
startArray(String key)
called when json-smart parser start an array.
|
AMapper<T> |
startObject(String key)
called when json-smart parser meet an object key
|
public AMapper<T> startObject(String key)
AMapper
startObject
in class AMapper<T>
public AMapper<T> startArray(String key)
AMapper
startArray
in class AMapper<T>
key
- the destination key name, or null.public Object createObject()
AMapper
createObject
in class AMapper<T>
public Object createArray()
AMapper
createArray
in class AMapper<T>
public void setValue(Object current, String key, Object value)
AMapper
Copyright © 2013 Chemouni Uriel. All Rights Reserved.