com.fasterxml.jackson.jr.ob.impl
Class BeanDefinition
java.lang.Object
com.fasterxml.jackson.jr.ob.impl.ValueReader
com.fasterxml.jackson.jr.ob.impl.BeanDefinition
public class BeanDefinition
- extends ValueReader
Class that contains information about dynamically introspected
Bean types.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_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
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
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.