Package net.minidev.json.writer
Class MapperRemapped<T>
- java.lang.Object
-
- net.minidev.json.writer.JsonReaderI<T>
-
- net.minidev.json.writer.MapperRemapped<T>
-
- Type Parameters:
T-
public class MapperRemapped<T> extends JsonReaderI<T>
Simple solution to supporr on read filed renaming- Author:
- uriel
-
-
Field Summary
-
Fields inherited from class net.minidev.json.writer.JsonReaderI
base
-
-
Constructor Summary
Constructors Constructor Description MapperRemapped(JsonReaderI<T> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateObject()use to instantiate a new object that will be used as an objectTypegetType(String key)ObjectgetValue(Object current, String key)-------------voidrenameField(String source, String dest)voidsetValue(Object current, String key, Object value)called when json-smart done parsing a valueJsonReaderI<?>startArray(String key)called when json-smart parser start an array.JsonReaderI<?>startObject(String key)called when json-smart parser meet an object key-
Methods inherited from class net.minidev.json.writer.JsonReaderI
addValue, convert, createArray
-
-
-
-
Constructor Detail
-
MapperRemapped
public MapperRemapped(JsonReaderI<T> parent)
-
-
Method Detail
-
setValue
public void setValue(Object current, String key, Object value) throws ParseException, IOException
Description copied from class:JsonReaderIcalled when json-smart done parsing a value- Overrides:
setValuein classJsonReaderI<T>- Throws:
ParseExceptionIOException
-
getValue
public Object getValue(Object current, String key)
Description copied from class:JsonReaderI-------------- Overrides:
getValuein classJsonReaderI<T>
-
getType
public Type getType(String key)
- Overrides:
getTypein classJsonReaderI<T>
-
startArray
public JsonReaderI<?> startArray(String key) throws ParseException, IOException
Description copied from class:JsonReaderIcalled when json-smart parser start an array.- Overrides:
startArrayin classJsonReaderI<T>- Parameters:
key- the destination key name, or null.- Throws:
ParseExceptionIOException
-
startObject
public JsonReaderI<?> startObject(String key) throws ParseException, IOException
Description copied from class:JsonReaderIcalled when json-smart parser meet an object key- Overrides:
startObjectin classJsonReaderI<T>- Throws:
ParseExceptionIOException
-
createObject
public Object createObject()
Description copied from class:JsonReaderIuse to instantiate a new object that will be used as an object- Overrides:
createObjectin classJsonReaderI<T>
-
-