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