Class CollectionMapper.ListType<T>

java.lang.Object
net.minidev.json.writer.JsonReaderI<T>
net.minidev.json.writer.CollectionMapper.ListType<T>
Enclosing class:
CollectionMapper

public static class CollectionMapper.ListType<T> extends JsonReaderI<T>
  • Constructor Details

  • Method Details

    • createArray

      public Object createArray()
      Description copied from class: JsonReaderI
      use to instantiate a new object that will be used as an array
      Overrides:
      createArray in class JsonReaderI<T>
      Returns:
      a new array instance
    • startArray

      public JsonReaderI<?> startArray(String key)
      Description copied from class: JsonReaderI
      called when json-smart parser start an array.
      Overrides:
      startArray in class JsonReaderI<T>
      Parameters:
      key - the destination key name, or null.
      Returns:
      a JsonReaderI to handle the array parsing
    • startObject

      public JsonReaderI<?> startObject(String key)
      Description copied from class: JsonReaderI
      called when json-smart parser meet an object key
      Overrides:
      startObject in class JsonReaderI<T>
      Parameters:
      key - key name
      Returns:
      a JsonReaderI to handle the object parsing
    • addValue

      public void addValue(Object current, Object value)
      Description copied from class: JsonReaderI
      add a value in an array json object.
      Overrides:
      addValue in class JsonReaderI<T>
      Parameters:
      current - the current array object
      value - the value to add