public final class PropertyValueBuffer extends Object
PropertyValue
s.
Using during construction of beans (and Maps) that use Creators,
and hence need buffering before instance (that will have properties
to assign values to) is constructed.Modifier and Type | Field and Description |
---|---|
protected DeserializationContext |
_context |
protected Object[] |
_creatorParameters
Buffer used for storing creator parameters for constructing
instance
|
protected ObjectIdReader |
_objectIdReader |
protected JsonParser |
_parser |
Constructor and Description |
---|
PropertyValueBuffer(JsonParser jp,
DeserializationContext ctxt,
int paramCount,
ObjectIdReader oir) |
Modifier and Type | Method and Description |
---|---|
boolean |
assignParameter(int index,
Object value) |
void |
bufferAnyProperty(SettableAnyProperty prop,
String propName,
Object value) |
protected PropertyValue |
buffered() |
void |
bufferMapProperty(Object key,
Object value) |
void |
bufferProperty(SettableBeanProperty prop,
Object value) |
protected Object[] |
getParameters(Object[] defaults) |
Object |
handleIdValue(DeserializationContext ctxt,
Object bean)
Helper method called to handle Object Id value collected earlier, if any
|
void |
inject(SettableBeanProperty[] injectableProperties) |
boolean |
isComplete() |
boolean |
readIdProperty(String propName)
Helper method called to see if given non-creator property is the "id property";
and if so, handle appropriately.
|
protected final JsonParser _parser
protected final DeserializationContext _context
protected final Object[] _creatorParameters
protected final ObjectIdReader _objectIdReader
public PropertyValueBuffer(JsonParser jp, DeserializationContext ctxt, int paramCount, ObjectIdReader oir)
public void inject(SettableBeanProperty[] injectableProperties)
protected final Object[] getParameters(Object[] defaults)
defaults
- If any of parameters requires nulls to be replaced with a non-null
object (usually primitive types), this is a non-null array that has such replacement
values (and nulls for cases where nulls are ok)public boolean readIdProperty(String propName) throws IOException
IOException
public Object handleIdValue(DeserializationContext ctxt, Object bean) throws IOException
IOException
protected PropertyValue buffered()
public boolean isComplete()
public boolean assignParameter(int index, Object value)
public void bufferProperty(SettableBeanProperty prop, Object value)
public void bufferAnyProperty(SettableAnyProperty prop, String propName, Object value)
Copyright © 2014 FasterXML. All Rights Reserved.