com.fasterxml.jackson.jr.ob.impl
Class BeanDefinition

java.lang.Object
  extended by com.fasterxml.jackson.jr.ob.impl.ValueReader
      extended by com.fasterxml.jackson.jr.ob.impl.BeanDefinition

public class BeanDefinition
extends ValueReader

Class that contains information about dynamically introspected Bean types.


Field Summary
protected  Constructor<?> _defaultCtor
           
protected  Constructor<?> _longCtor
           
protected  BeanProperty[] _properties
           
protected  Map<String,BeanProperty> _propsByName
           
protected  Constructor<?> _stringCtor
           
protected  Class<?> _type
           
 
Constructor Summary
BeanDefinition(Class<?> type, BeanProperty[] props)
          Constructors used for serialization use case
BeanDefinition(Class<?> type, Map<String,BeanProperty> props, Constructor<?> defaultCtor, Constructor<?> stringCtor, Constructor<?> longCtor)
          Constructors used for deserialization use case
 
Method Summary
protected  IOException _reportProblem(JsonParser p)
           
protected  Object create()
           
protected  Object create(long l)
           
protected  Object create(String str)
           
 BeanProperty findProperty(String name)
           
protected  void handleUnknown(JSONReader reader, JsonParser parser, String fieldName)
           
 BeanProperty[] properties()
           
 Map<String,BeanProperty> propertiesByName()
           
 Object read(JSONReader r, JsonParser p)
          Method used for deserialization; will read an instance of the bean type using given parser.
 Object readNext(JSONReader r, JsonParser p)
           
 
Methods inherited from class com.fasterxml.jackson.jr.ob.impl.ValueReader
_tokenDesc, _tokenDesc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_type

protected final Class<?> _type

_properties

protected final BeanProperty[] _properties

_propsByName

protected final Map<String,BeanProperty> _propsByName

_defaultCtor

protected final Constructor<?> _defaultCtor

_stringCtor

protected final Constructor<?> _stringCtor

_longCtor

protected final Constructor<?> _longCtor
Constructor Detail

BeanDefinition

public BeanDefinition(Class<?> type,
                      BeanProperty[] props)
Constructors used for serialization use case


BeanDefinition

public BeanDefinition(Class<?> type,
                      Map<String,BeanProperty> props,
                      Constructor<?> defaultCtor,
                      Constructor<?> stringCtor,
                      Constructor<?> longCtor)
Constructors used for deserialization use case

Method Detail

properties

public BeanProperty[] properties()

propertiesByName

public Map<String,BeanProperty> propertiesByName()

findProperty

public BeanProperty findProperty(String name)

readNext

public Object readNext(JSONReader r,
                       JsonParser p)
                throws IOException
Specified by:
readNext in class ValueReader
Throws:
IOException

read

public Object read(JSONReader r,
                   JsonParser p)
            throws IOException
Method used for deserialization; will read an instance of the bean type using given parser.

Specified by:
read in class ValueReader
Throws:
IOException

create

protected Object create()
                 throws Exception
Throws:
Exception

create

protected Object create(String str)
                 throws Exception
Throws:
Exception

create

protected Object create(long l)
                 throws Exception
Throws:
Exception

handleUnknown

protected void handleUnknown(JSONReader reader,
                             JsonParser parser,
                             String fieldName)
                      throws IOException
Throws:
IOException

_reportProblem

protected IOException _reportProblem(JsonParser p)


Copyright © 2016 FasterXML. All rights reserved.