Top Fields Constructors Methods
tools.jackson.dataformat.protobuf

public Class ProtobufWriteContext

extends TokenStreamContext
Class Inheritance
Imports
tools.jackson.core.TokenStreamContext, tools.jackson.dataformat.protobuf.schema.ProtobufField, .ProtobufMessage

Field Summary

Modifier and TypeField 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
Inherited from tools.jackson.core.TokenStreamContext:
_index_nestingDepth_typeTYPE_ARRAYTYPE_OBJECTTYPE_ROOT

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public StringBuilder
public void
assignCurrentValue(Object v)

Overrides tools.jackson.core.TokenStreamContext.assignCurrentValue.

Method to call to pass value to be returned via currentValue; typically called indirectly through JsonParser#assignCurrentValue or JsonGenerator#assignCurrentValue).

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
currentName()

Implements abstract tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location.

public Object
currentValue()

Overrides tools.jackson.core.TokenStreamContext.currentValue.

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 tools.jackson.core.TokenStreamContext.getParent.

Accessor for finding parent context of this context; will return null for root context.

public boolean
private void
public void
public final String
toString()

Overrides tools.jackson.core.TokenStreamContext.toString.

Overridden to provide developer JsonPointer representation of the context.

Inherited from tools.jackson.core.TokenStreamContext:
getCurrentIndexgetEntryCountgetNestingDepthhasCurrentIndexhasCurrentNamehasPathSegmentinArrayinObjectinRootpathAsPointerpathAsPointerstartLocationtypeDesc

Field Detail

_childback to summary
protected ProtobufWriteContext _child
_currentValueback to summary
protected Object _currentValue
_fieldback to summary
protected ProtobufField _field

Field within either current object (for Object context); or, parent field (for Array)

_messageback 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)

_parentback to summary
protected final ProtobufWriteContext _parent

Constructor Detail

ProtobufWriteContextback to summary
protected ProtobufWriteContext(int type, ProtobufWriteContext parent, ProtobufMessage msg)

Method Detail

appendDescback to summary
public StringBuilder appendDesc(StringBuilder sb)
assignCurrentValueback to summary
public void assignCurrentValue(Object v)

Overrides tools.jackson.core.TokenStreamContext.assignCurrentValue.

Doc from tools.jackson.core.TokenStreamContext.assignCurrentValue.

Method to call to pass value to be returned via currentValue; typically called indirectly through JsonParser#assignCurrentValue or JsonGenerator#assignCurrentValue).

Annotations
@Override
createChildArrayContextback to summary
public ProtobufWriteContext createChildArrayContext()
createChildObjectContextback to summary
public ProtobufWriteContext createChildObjectContext(ProtobufMessage type)
createNullContextback to summary
public static ProtobufWriteContext createNullContext()

Factory method called to get a placeholder context that is only in place until actual schema is handed.

createRootContextback to summary
public static ProtobufWriteContext createRootContext(ProtobufMessage msg)
currentNameback to summary
public String currentName()

Implements abstract tools.jackson.core.TokenStreamContext.currentName.

Doc from tools.jackson.core.TokenStreamContext.currentName.

Method for accessing name associated with the current location. Non-null for PROPERTY_NAME and value events that directly follow Property names; null for root level and array values.

Annotations
@Override
currentValueback to summary
public Object currentValue()

Overrides tools.jackson.core.TokenStreamContext.currentValue.

Doc from tools.jackson.core.TokenStreamContext.currentValue.

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.

Annotations
@Override
getFieldback to summary
public ProtobufField getField()
getMessageTypeback to summary
public ProtobufMessage getMessageType()
getParentback to summary
public final ProtobufWriteContext getParent()

Implements abstract tools.jackson.core.TokenStreamContext.getParent.

Doc from tools.jackson.core.TokenStreamContext.getParent.

Accessor for finding parent context of this context; will return null for root context.

Annotations
@Override
notArrayback to summary
public boolean notArray()
resetback to summary
private void reset(int type, ProtobufMessage msg, ProtobufField f)
setFieldback to summary
public void setField(ProtobufField f)
toStringback to summary
public final String toString()

Overrides tools.jackson.core.TokenStreamContext.toString.

Overridden to provide developer JsonPointer representation of the context.

Annotations
@Override