| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected JPropWriteContext | |
| protected String | _currentName
Name of the field of which value is to be parsed; only used for OBJECT contexts |
| protected Object | _currentValue
Value that is being serialized and caused this context to be created; typically a POJO or container type. |
| protected boolean | _gotName
Marker used to indicate that we just received a name, and now expect a value |
| protected final JPropWriteContext | _parent
Parent context for this context; null for root context. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuilder | |
| public void | assignCurrentValue(Object v)
Overrides tools. Method to call to pass value to be returned via |
| public JPropWriteContext | |
| public JPropWriteContext | |
| public static JPropWriteContext | |
| public static JPropWriteContext | |
| public String | currentName()
Implements abstract tools. Method for accessing name associated with the current location. |
| public Object | currentValue()
Overrides tools. 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 final JPropWriteContext | getParent()
Implements abstract tools. Accessor for finding parent context of this context; will return null for root context. |
| private void | |
| public final String | toString()
Overrides tools. Overridden to provide developer JsonPointer representation of the context. |
| public void | |
| public boolean | |
| public boolean |
| _basePathLength | back to summary |
|---|---|
| protected int _basePathLength | |
| _child | back to summary |
|---|---|
| protected JPropWriteContext _child | |
| _currentName | back to summary |
|---|---|
| protected String _currentName Name of the field of which value is to be parsed; only used for OBJECT contexts | |
| _currentValue | back to summary |
|---|---|
| protected Object _currentValue Value that is being serialized and caused this context to be created; typically a POJO or container type. | |
| _gotName | back to summary |
|---|---|
| protected boolean _gotName Marker used to indicate that we just received a name, and now expect a value | |
| _parent | back to summary |
|---|---|
| protected final JPropWriteContext _parent Parent context for this context; null for root context. | |
| JPropWriteContext | back to summary |
|---|---|
| protected JPropWriteContext(int type, JPropWriteContext parent, Object currValue, int basePathLength) | |
| appendDesc | back to summary |
|---|---|
| public StringBuilder appendDesc(StringBuilder sb) | |
| assignCurrentValue | back to summary |
|---|---|
| public void assignCurrentValue(Object v) Overrides tools. Doc from tools. Method to call to pass value to be returned via
| |
| createChildArrayContext | back to summary |
|---|---|
| public JPropWriteContext createChildArrayContext(Object currValue, int basePathLength) | |
| createChildObjectContext | back to summary |
|---|---|
| public JPropWriteContext createChildObjectContext(Object currValue, int basePathLength) | |
| createRootContext | back to summary |
|---|---|
| public static JPropWriteContext createRootContext() | |
| createRootContext | back to summary |
|---|---|
| public static JPropWriteContext createRootContext(int basePathLength) | |
| currentName | back to summary |
|---|---|
| public String currentName() Implements abstract tools. Doc from tools. Method for accessing name associated with the current location.
Non-null for
| |
| currentValue | back to summary |
|---|---|
| public Object currentValue() Overrides tools. Doc from tools. 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 final JPropWriteContext getParent() Implements abstract tools. Doc from tools. Accessor for finding parent context of this context; will return null for root context.
| |
| reset | back to summary |
|---|---|
| private void reset(int type, Object currValue, int basePathLength) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides tools. Overridden to provide developer JsonPointer representation of the context.
| |
| truncatePath | back to summary |
|---|---|
| public void truncatePath(StringBuilder sb) | |
| writeName | back to summary |
|---|---|
| public boolean writeName(String name) | |
| writeValue | back to summary |
|---|---|
| public boolean writeValue() | |