public class BeanDefinition extends ValueReader
Modifier and Type | Field and Description |
---|---|
protected Constructor<?> |
_defaultCtor |
protected Constructor<?> |
_longCtor |
protected BeanProperty[] |
_properties |
protected Map<String,BeanProperty> |
_propsByName |
protected Constructor<?> |
_stringCtor |
protected Class<?> |
_type |
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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.
|
_tokenDesc, _tokenDesc
protected final Class<?> _type
protected final BeanProperty[] _properties
protected final Map<String,BeanProperty> _propsByName
protected final Constructor<?> _defaultCtor
protected final Constructor<?> _stringCtor
protected final Constructor<?> _longCtor
public BeanDefinition(Class<?> type, BeanProperty[] props)
public BeanDefinition(Class<?> type, Map<String,BeanProperty> props, Constructor<?> defaultCtor, Constructor<?> stringCtor, Constructor<?> longCtor)
public BeanProperty[] properties()
public Map<String,BeanProperty> propertiesByName()
public BeanProperty findProperty(String name)
public Object read(JSONReader r, JsonParser p) throws IOException
read
in class ValueReader
IOException
protected void handleUnknown(JSONReader reader, JsonParser parser, String fieldName) throws IOException
IOException
Copyright © 2014-2015 FasterXML. All Rights Reserved.