JsonStreamContext used by TokenBuffer
to link back to the original context to try to keep location information
consistent between source location and buffered content when it's re-read
from the buffer.
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected Object | |
| protected final JsonStreamContext | |
| protected final JsonLocation |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | TokenBufferReadContext()
Constructor for case where there is no real surrounding context: just create virtual ROOT |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public TokenBufferReadContext | |
| public TokenBufferReadContext | |
| public static TokenBufferReadContext | |
| public String | getCurrentName()
Implements abstract com. Method for accessing name associated with the current location. |
| public Object | getCurrentValue()
Overrides com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. |
| public JsonStreamContext | getParent()
Implements abstract com. Accessor for finding parent context of this context; will return null for root context. |
| public boolean | |
| public TokenBufferReadContext | parentOrCopy()
Helper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types. |
| public void | |
| public void | setCurrentValue(Object
Current value to assign to this context v)Overrides com. Method to call to pass value to be returned via |
| public void |
| _currentName | back to summary |
|---|---|
| protected String _currentName | |
| _currentValue | back to summary |
|---|---|
| protected Object _currentValue | |
| _parent | back to summary |
|---|---|
| protected final JsonStreamContext _parent | |
| _startLocation | back to summary |
|---|---|
| protected final JsonLocation _startLocation | |
| TokenBufferReadContext | back to summary |
|---|---|
protected TokenBufferReadContext(JsonStreamContext base, ContentReference srcRef)
| |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext(JsonStreamContext base, Object srcRef)
Deprecated
| |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext(JsonStreamContext base, JsonLocation startLoc) | |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext() Constructor for case where there is no real surrounding context: just create virtual ROOT | |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext(TokenBufferReadContext parent, int type, int index) | |
| createChildArrayContext | back to summary |
|---|---|
| public TokenBufferReadContext createChildArrayContext() | |
| createChildObjectContext | back to summary |
|---|---|
| public TokenBufferReadContext createChildObjectContext() | |
| createRootContext | back to summary |
|---|---|
| public static TokenBufferReadContext createRootContext(JsonStreamContext origContext) | |
| getCurrentName | back to summary |
|---|---|
| public String getCurrentName() Implements abstract com. Doc from com. Method for accessing name associated with the current location.
Non-null for | |
| getCurrentValue | back to summary |
|---|---|
| public Object getCurrentValue() Overrides com. Doc from com. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding. | |
| getParent | back to summary |
|---|---|
| public JsonStreamContext getParent() Implements abstract com. Doc from com. Accessor for finding parent context of this context; will return null for root context.
| |
| hasCurrentName | back to summary |
|---|---|
| public boolean hasCurrentName() Overrides com.
| |
| parentOrCopy | back to summary |
|---|---|
| public TokenBufferReadContext parentOrCopy() Helper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types. | |
| setCurrentName | back to summary |
|---|---|
| public void setCurrentName(String name) throws JsonProcessingException | |
| setCurrentValue | back to summary |
|---|---|
| public void setCurrentValue(Object v) Overrides com. Doc from com. Method to call to pass value to be returned via | |
| updateForValue | back to summary |
|---|---|
public void updateForValue()
| |