| Modifier and Type | Field and Description |
|---|---|
| protected ProtobufWriteContext | |
| protected Object | |
| protected ProtobufField | _field
Field within either current object (for Object context); or, parent field (for Array) |
| protected ProtobufMessage | _message
Definition of the closest Object that this context relates to; either object for the field (for Message/Object types), or its parent (for Array types) |
| protected final ProtobufWriteContext |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public StringBuilder | |
| public ProtobufWriteContext | |
| public ProtobufWriteContext | |
| public static ProtobufWriteContext | createNullContext()
Factory method called to get a placeholder context that is only in place until actual schema is handed. |
| public static ProtobufWriteContext | |
| 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 ProtobufField | |
| public ProtobufMessage | |
| public final ProtobufWriteContext | getParent()
Implements abstract com. Accessor for finding parent context of this context; will return null for root context. |
| public boolean | |
| private 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 | |
| public final String | toString()
Overrides com. Overridden to provide developer JsonPointer representation of the context. |
| _child | back to summary |
|---|---|
| protected ProtobufWriteContext _child | |
| _currentValue | back to summary |
|---|---|
protected Object _currentValue
| |
| _field | back to summary |
|---|---|
| protected ProtobufField _field Field within either current object (for Object context); or, parent field (for Array) | |
| _message | back to summary |
|---|---|
| protected ProtobufMessage _message Definition of the closest Object that this context relates to; either object for the field (for Message/Object types), or its parent (for Array types) | |
| _parent | back to summary |
|---|---|
| protected final ProtobufWriteContext _parent | |
| ProtobufWriteContext | back to summary |
|---|---|
| protected ProtobufWriteContext(int type, ProtobufWriteContext parent, ProtobufMessage msg) | |
| appendDesc | back to summary |
|---|---|
| public StringBuilder appendDesc(StringBuilder sb) | |
| createChildArrayContext | back to summary |
|---|---|
| public ProtobufWriteContext createChildArrayContext() | |
| createChildObjectContext | back to summary |
|---|---|
| public ProtobufWriteContext createChildObjectContext(ProtobufMessage type) | |
| createNullContext | back to summary |
|---|---|
| public static ProtobufWriteContext createNullContext() Factory method called to get a placeholder context that is only in place until actual schema is handed. | |
| createRootContext | back to summary |
|---|---|
| public static ProtobufWriteContext createRootContext(ProtobufMessage msg) | |
| 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. | |
| getField | back to summary |
|---|---|
| public ProtobufField getField() | |
| getMessageType | back to summary |
|---|---|
| public ProtobufMessage getMessageType() | |
| getParent | back to summary |
|---|---|
| public final ProtobufWriteContext getParent() Implements abstract com. Doc from com. Accessor for finding parent context of this context; will return null for root context.
| |
| notArray | back to summary |
|---|---|
| public boolean notArray() | |
| reset | back to summary |
|---|---|
| private void reset(int type, ProtobufMessage msg, ProtobufField f) | |
| setCurrentValue | back to summary |
|---|---|
| public void setCurrentValue(Object v) Overrides com. Doc from com. Method to call to pass value to be returned via | |
| setField | back to summary |
|---|---|
| public void setField(ProtobufField f) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides com. Overridden to provide developer JsonPointer representation of the context.
| |