Package net.minidev.json.writer
Class UpdaterMapper<T>
java.lang.Object
net.minidev.json.writer.JsonReaderI<T>
net.minidev.json.writer.UpdaterMapper<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final JsonReaderI
<?> (package private) final T
Fields inherited from class net.minidev.json.writer.JsonReaderI
base
-
Constructor Summary
ConstructorsConstructorDescriptionUpdaterMapper
(JsonReader base, T obj) UpdaterMapper
(JsonReader base, T obj, Type type) -
Method Summary
Modifier and TypeMethodDescriptionvoid
add a value in an array json object.Allow a mapper to converte a temprary structure to the final data format.use to instantiate a new object that will be used as an arrayuse to instantiate a new object that will be used as an objectvoid
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 keyMethods inherited from class net.minidev.json.writer.JsonReaderI
getType, getValue
-
Field Details
-
obj
-
mapper
-
-
Constructor Details
-
UpdaterMapper
-
UpdaterMapper
-
-
Method Details
-
startObject
called when json-smart parser meet an object key- Overrides:
startObject
in classJsonReaderI<T>
- Throws:
ParseException
IOException
-
startArray
called when json-smart parser start an array.- Overrides:
startArray
in classJsonReaderI<T>
- Parameters:
key
- the destination key name, or null.- Throws:
ParseException
IOException
-
setValue
called when json-smart done parsing a value- Overrides:
setValue
in classJsonReaderI<T>
- Throws:
ParseException
IOException
-
addValue
add a value in an array json object.- Overrides:
addValue
in classJsonReaderI<T>
- Throws:
ParseException
IOException
-
createObject
use to instantiate a new object that will be used as an object- Overrides:
createObject
in classJsonReaderI<T>
-
createArray
use to instantiate a new object that will be used as an array- Overrides:
createArray
in classJsonReaderI<T>
-
convert
Allow a mapper to converte a temprary structure to the final data format. example: convert an Listto an int[] - Overrides:
convert
in classJsonReaderI<T>
-