PropertyValues.
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 PropertyValue | _anyParamBuffered
If "Any-setter-via-Creator" exists, we will need to buffer values to feed it,
separate from regular, non-creator properties (see |
| protected final SettableAnyProperty | _anyParamSetter
"Any setter" property bound to a Creator parameter (via |
| protected PropertyValue | _buffered
If we get non-creator parameters before or between creator parameters, those need to be buffered. |
| protected final DeserializationContext | |
| protected final Object[] | _creatorParameters
Buffer used for storing creator parameters for constructing instance. |
| protected Object | _idValue
In case there is an Object Id property to handle, this is the value we have for it. |
| protected final ObjectIdReader | |
| protected int | _paramsNeeded
Number of creator parameters for which we have not yet received values. |
| protected int | _paramsSeen
Bitflag used to track parameters found from incoming data when number of parameters is less than 32 (fits in int). |
| protected final BitSet | _paramsSeenBig
Bitflag used to track parameters found from incoming data when number of parameters is 32 or higher. |
| protected final JsonParser |
| Access | Constructor and Description |
|---|---|
| public | PropertyValueBuffer(JsonParser p, DeserializationContext ctxt, int paramCount, ObjectIdReader oir, SettableAnyProperty anyParamSetter)
|
| public | PropertyValueBuffer(JsonParser p, DeserializationContext ctxt, int paramCount, ObjectIdReader oir)
Deprecated
|
| Modifier and Type | Method and Description |
|---|---|
| private Object | _createAndSetAnySetterValue()
Helper method called to create and set any values buffered for "any setter" |
| protected Object | |
| public boolean | Returns: True if we have received all creator parametersMethod called to buffer value for given property, as well as check whether we now have values for all (creator) properties that we expect to get values for. |
| public void | |
| public void | |
| protected PropertyValue | |
| public void | |
| public void | |
| public Object | getParameter(SettableBeanProperty prop)
A variation of |
| public Object[] | getParameters(SettableBeanProperty[] props)
Method called to do necessary post-processing such as injection of values
and verification of values for required properties,
after either |
| public Object | handleIdValue(final DeserializationContext ctxt, Object bean)
Helper method called to handle Object Id value collected earlier, if any |
| public final boolean | hasParameter(SettableBeanProperty prop)
Returns |
| public boolean | |
| public boolean | readIdProperty(String propName)
Helper method called to see if given non-creator property is the "id property"; and if so, handle appropriately. |
| _anyParamBuffered | back to summary |
|---|---|
| protected PropertyValue _anyParamBuffered If "Any-setter-via-Creator" exists, we will need to buffer values to feed it,
separate from regular, non-creator properties (see
| |
| _anyParamSetter | back to summary |
|---|---|
| protected final SettableAnyProperty _anyParamSetter "Any setter" property bound to a Creator parameter (via
| |
| _buffered | back to summary |
|---|---|
| protected PropertyValue _buffered If we get non-creator parameters before or between creator parameters, those need to be buffered. Buffer is just a simple linked list | |
| _context | back to summary |
|---|---|
| protected final DeserializationContext _context | |
| _creatorParameters | back to summary |
|---|---|
| protected final Object[] _creatorParameters Buffer used for storing creator parameters for constructing instance. | |
| _idValue | back to summary |
|---|---|
| protected Object _idValue In case there is an Object Id property to handle, this is the value we have for it. | |
| _objectIdReader | back to summary |
|---|---|
| protected final ObjectIdReader _objectIdReader | |
| _paramsNeeded | back to summary |
|---|---|
| protected int _paramsNeeded Number of creator parameters for which we have not yet received values. | |
| _paramsSeen | back to summary |
|---|---|
| protected int _paramsSeen Bitflag used to track parameters found from incoming data when number of parameters is less than 32 (fits in int). | |
| _paramsSeenBig | back to summary |
|---|---|
| protected final BitSet _paramsSeenBig Bitflag used to track parameters found from incoming data when number of parameters is 32 or higher. | |
| _parser | back to summary |
|---|---|
| protected final JsonParser _parser | |
| PropertyValueBuffer | back to summary |
|---|---|
public PropertyValueBuffer(JsonParser p, DeserializationContext ctxt, int paramCount, ObjectIdReader oir, SettableAnyProperty anyParamSetter)
| |
| PropertyValueBuffer | back to summary |
|---|---|
| public PropertyValueBuffer(JsonParser p, DeserializationContext ctxt, int paramCount, ObjectIdReader oir)
Deprecated
| |
| _createAndSetAnySetterValue | back to summary |
|---|---|
| private Object _createAndSetAnySetterValue() throws JsonMappingException Helper method called to create and set any values buffered for "any setter" | |
| _findMissing | back to summary |
|---|---|
| protected Object _findMissing(SettableBeanProperty prop) throws JsonMappingException | |
| assignParameter | back to summary |
|---|---|
| public boolean assignParameter(SettableBeanProperty prop, Object value) Method called to buffer value for given property, as well as check whether we now have values for all (creator) properties that we expect to get values for.
| |
| bufferAnyParameterProperty | back to summary |
|---|---|
| public void bufferAnyParameterProperty(SettableAnyProperty prop, String propName, Object value) | |
| bufferAnyProperty | back to summary |
|---|---|
| public void bufferAnyProperty(SettableAnyProperty prop, String propName, Object value) | |
| buffered | back to summary |
|---|---|
| protected PropertyValue buffered() | |
| bufferMapProperty | back to summary |
|---|---|
| public void bufferMapProperty(Object key, Object value) | |
| bufferProperty | back to summary |
|---|---|
| public void bufferProperty(SettableBeanProperty prop, Object value) | |
| getParameter | back to summary |
|---|---|
| public Object getParameter(SettableBeanProperty prop) throws JsonMappingException A variation of
| |
| getParameters | back to summary |
|---|---|
| public Object[] getParameters(SettableBeanProperty[] props) throws JsonMappingException, IOException Method called to do necessary post-processing such as injection of values
and verification of values for required properties,
after either | |
| handleIdValue | back to summary |
|---|---|
| public Object handleIdValue(final DeserializationContext ctxt, Object bean) throws IOException Helper method called to handle Object Id value collected earlier, if any | |
| hasParameter | back to summary |
|---|---|
| public final boolean hasParameter(SettableBeanProperty prop) Returns
| |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() | |
| readIdProperty | back to summary |
|---|---|
| public boolean readIdProperty(String propName) throws IOException Helper method called to see if given non-creator property is the "id property"; and if so, handle appropriately.
| |