Class BeansMapper.BeanNoConv<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) BeansAccess<T> ba  
      (package private) java.lang.Class<T> clz  
      (package private) java.util.HashMap<java.lang.String,​Accessor> index  
    • Constructor Summary

      Constructors 
      Constructor Description
      BeanNoConv​(JsonReader base, java.lang.Class<T> clz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object createObject()
      use to instantiate a new object that will be used as an object
      java.lang.reflect.Type getType​(java.lang.String key)
      Gets the type for the specified key
      java.lang.Object getValue​(java.lang.Object current, java.lang.String key)
      Gets a value from the current object
      void setValue​(java.lang.Object current, java.lang.String key, java.lang.Object value)
      called when json-smart done parsing a value
      JsonReaderI<?> startArray​(java.lang.String key)
      called when json-smart parser start an array.
      JsonReaderI<?> startObject​(java.lang.String key)
      called when json-smart parser meet an object key
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • clz

        final java.lang.Class<T> clz
      • index

        final java.util.HashMap<java.lang.String,​Accessor> index
    • Constructor Detail

      • BeanNoConv

        public BeanNoConv​(JsonReader base,
                          java.lang.Class<T> clz)
    • Method Detail

      • setValue

        public void setValue​(java.lang.Object current,
                             java.lang.String key,
                             java.lang.Object value)
        Description copied from class: JsonReaderI
        called when json-smart done parsing a value
        Overrides:
        setValue in class JsonReaderI<T>
        Parameters:
        current - the current object being built
        key - the key for the value
        value - the parsed value
      • getValue

        public java.lang.Object getValue​(java.lang.Object current,
                                         java.lang.String key)
        Description copied from class: JsonReaderI
        Gets a value from the current object
        Overrides:
        getValue in class JsonReaderI<T>
        Parameters:
        current - the current object
        key - the key to get the value for
        Returns:
        the value associated with the key
      • getType

        public java.lang.reflect.Type getType​(java.lang.String key)
        Description copied from class: JsonReaderI
        Gets the type for the specified key
        Overrides:
        getType in class JsonReaderI<T>
        Parameters:
        key - the key to get the type for
        Returns:
        the Type associated with the key
      • startArray

        public JsonReaderI<?> startArray​(java.lang.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​(java.lang.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
      • createObject

        public java.lang.Object createObject()
        Description copied from class: JsonReaderI
        use to instantiate a new object that will be used as an object
        Overrides:
        createObject in class JsonReaderI<T>
        Returns:
        a new object instance