JsonStreamContext, used when filtering
content being read or written (based on TokenFilter).
| Modifier and Type | Field and Description |
|---|---|
| protected TokenFilterContext | |
| protected String | _currentName
Name of the field of which value is to be parsed; only used for OBJECT contexts |
| protected TokenFilter | _filter
Filter to use for items in this state (for properties of Objects, elements of Arrays, and root-level values of root context) |
| protected boolean | _needToHandleName
Flag that indicates that the current name of this context still needs to be read/written, if path from root down to included leaf is to be exposed. |
| protected final TokenFilterContext | _parent
Parent context for this context; null for root context. |
| protected boolean | _startHandled
Flag that indicates that start token has been read/written, so that matching close token needs to be read/written as well when context is getting closed. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| public TokenFilter | Returns: Filter to use for valueCurrently active filter filter)Method called to check whether value is to be included at current output position, either as Object property, Array element, or root value. |
| public TokenFilterContext | |
| public TokenFilterContext | |
| public TokenFilterContext | |
| public TokenFilterContext | |
| public static TokenFilterContext | |
| public void | ensureFieldNameWritten(JsonGenerator
Generator to use to write the property name, if necessary gen)Method called to ensure that field name, if present, has been written; may result (but does not always) in a call using given generator |
| public TokenFilterContext | |
| public final 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 TokenFilter | |
| public final TokenFilterContext | getParent()
Implements abstract com. Accessor for finding parent context of this context; will return null for root context. |
| public boolean | |
| public boolean | |
| public JsonToken | |
| protected TokenFilterContext | |
| 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 TokenFilter | |
| public void | |
| public String | toString()
Overrides com. Overridden to provide developer readable "JsonPath" representation of the context. |
| public void | writePath(JsonGenerator
Generator to use to write the path, if necessary gen)Method called to ensure that parent path from root is written up to and including this node. |
| _child | back to summary |
|---|---|
| protected TokenFilterContext _child | |
| _currentName | back to summary |
|---|---|
| protected String _currentName Name of the field of which value is to be parsed; only used for OBJECT contexts | |
| _filter | back to summary |
|---|---|
| protected TokenFilter _filter Filter to use for items in this state (for properties of Objects, elements of Arrays, and root-level values of root context) | |
| _needToHandleName | back to summary |
|---|---|
| protected boolean _needToHandleName Flag that indicates that the current name of this context still needs to be read/written, if path from root down to included leaf is to be exposed. | |
| _parent | back to summary |
|---|---|
| protected final TokenFilterContext _parent Parent context for this context; null for root context. | |
| _startHandled | back to summary |
|---|---|
| protected boolean _startHandled Flag that indicates that start token has been read/written, so that matching close token needs to be read/written as well when context is getting closed. | |
| TokenFilterContext | back to summary |
|---|---|
| protected TokenFilterContext(int type, TokenFilterContext parent, TokenFilter filter, boolean startHandled) | |
| _writePath | back to summary |
|---|---|
| private void _writePath(JsonGenerator gen) throws IOException | |
| appendDesc | back to summary |
|---|---|
| protected void appendDesc(StringBuilder sb) | |
| checkValue | back to summary |
|---|---|
| public TokenFilter checkValue(TokenFilter filter) Method called to check whether value is to be included at current output position, either as Object property, Array element, or root value.
| |
| closeArray | back to summary |
|---|---|
| public TokenFilterContext closeArray(JsonGenerator gen) throws IOException | |
| closeObject | back to summary |
|---|---|
| public TokenFilterContext closeObject(JsonGenerator gen) throws IOException | |
| createChildArrayContext | back to summary |
|---|---|
| public TokenFilterContext createChildArrayContext(TokenFilter filter, boolean writeStart) | |
| createChildObjectContext | back to summary |
|---|---|
| public TokenFilterContext createChildObjectContext(TokenFilter filter, boolean writeStart) | |
| createRootContext | back to summary |
|---|---|
| public static TokenFilterContext createRootContext(TokenFilter filter) | |
| ensureFieldNameWritten | back to summary |
|---|---|
| public void ensureFieldNameWritten(JsonGenerator gen) throws IOException Method called to ensure that field name, if present, has been written; may result (but does not always) in a call using given generator
| |
| findChildOf | back to summary |
|---|---|
| public TokenFilterContext findChildOf(TokenFilterContext parent) | |
| getCurrentName | back to summary |
|---|---|
| public final 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. | |
| getFilter | back to summary |
|---|---|
| public TokenFilter getFilter() | |
| getParent | back to summary |
|---|---|
| public final TokenFilterContext 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.
| |
| isStartHandled | back to summary |
|---|---|
| public boolean isStartHandled() | |
| nextTokenToRead | back to summary |
|---|---|
| public JsonToken nextTokenToRead() | |
| reset | back to summary |
|---|---|
| protected TokenFilterContext reset(int type, TokenFilter filter, boolean startWritten) | |
| setCurrentValue | back to summary |
|---|---|
| public void setCurrentValue(Object v) Overrides com. Doc from com. Method to call to pass value to be returned via | |
| setFieldName | back to summary |
|---|---|
| public TokenFilter setFieldName(String name) throws JsonProcessingException | |
| skipParentChecks | back to summary |
|---|---|
| public void skipParentChecks() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from com. Overridden to provide developer readable "JsonPath" representation of the context.
| |
| writePath | back to summary |
|---|---|
| public void writePath(JsonGenerator gen) throws IOException Method called to ensure that parent path from root is written up to and including this node.
| |