JsonWriteContext, needed to support alternative
numeric field id for Integer-valued Maps that CBOR allows.
| Modifier and Type | Field and Description |
|---|---|
| protected CBORWriteContext | |
| protected String | _currentName
Name of the Object property of which value is to be written; only used for OBJECT contexts |
| protected long | _currentPropertyId
Alternative to |
| protected Object | |
| protected DupDetector | |
| protected boolean | _gotPropertyId
Marker used to indicate that we just wrote a property name (or Map name / id) and now expect a value to write |
| protected final CBORWriteContext | _parent
Parent context for this context; null for root context. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private final void | |
| public void | assignCurrentValue(Object v)
Overrides tools. Method to call to pass value to be returned via |
| public CBORWriteContext | clearAndGetParent()
Method that can be used to both clear the accumulated references
(specifically value set with |
| public CBORWriteContext | |
| public CBORWriteContext | |
| public static CBORWriteContext | |
| public final 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 DupDetector | |
| public final CBORWriteContext | getParent()
Implements abstract tools. Accessor for finding parent context of this context; will return null for root context. |
| public boolean | |
| private CBORWriteContext | |
| public CBORWriteContext | |
| public boolean | |
| public boolean | |
| public boolean |
| _childToRecycle | back to summary |
|---|---|
| protected CBORWriteContext _childToRecycle | |
| _currentName | back to summary |
|---|---|
| protected String _currentName Name of the Object property of which value is to be written; only used for OBJECT contexts | |
| _currentPropertyId | back to summary |
|---|---|
| protected long _currentPropertyId Alternative to | |
| _currentValue | back to summary |
|---|---|
| protected Object _currentValue | |
| _dups | back to summary |
|---|---|
| protected DupDetector _dups | |
| _gotPropertyId | back to summary |
|---|---|
| protected boolean _gotPropertyId Marker used to indicate that we just wrote a property name (or Map name / id) and now expect a value to write | |
| _parent | back to summary |
|---|---|
| protected final CBORWriteContext _parent Parent context for this context; null for root context. | |
| CBORWriteContext | back to summary |
|---|---|
| protected CBORWriteContext(int type, CBORWriteContext parent, DupDetector dups, Object currentValue) | |
| _checkDup | back to summary |
|---|---|
| private final void _checkDup(DupDetector dd, String name) throws StreamWriteException | |
| assignCurrentValue | back to summary |
|---|---|
| public void assignCurrentValue(Object v) Overrides tools. Doc from tools. Method to call to pass value to be returned via
| |
| clearAndGetParent | back to summary |
|---|---|
| public CBORWriteContext clearAndGetParent() Method that can be used to both clear the accumulated references
(specifically value set with | |
| createChildArrayContext | back to summary |
|---|---|
| public CBORWriteContext createChildArrayContext(Object currentValue) | |
| createChildObjectContext | back to summary |
|---|---|
| public CBORWriteContext createChildObjectContext(Object currentValue) | |
| createRootContext | back to summary |
|---|---|
| public static CBORWriteContext createRootContext(DupDetector dd) | |
| currentName | back to summary |
|---|---|
| public final 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.
| |
| getDupDetector | back to summary |
|---|---|
| public DupDetector getDupDetector() | |
| getParent | back to summary |
|---|---|
| public final CBORWriteContext getParent() Implements abstract tools. Doc from tools. Accessor for finding parent context of this context; will return null for root context.
| |
| hasCurrentName | back to summary |
|---|---|
| public boolean hasCurrentName() Overrides tools.
| |
| reset | back to summary |
|---|---|
| private CBORWriteContext reset(int type, Object currentValue) | |
| withDupDetector | back to summary |
|---|---|
| public CBORWriteContext withDupDetector(DupDetector dups) | |
| writeName | back to summary |
|---|---|
| public boolean writeName(String name) throws StreamWriteException Method that writer is to call before it writes an Object property name.
| |
| writePropertyId | back to summary |
|---|---|
| public boolean writePropertyId(long propertyId) throws StreamWriteException | |
| writeValue | back to summary |
|---|---|
| public boolean writeValue() | |