Class ProtobufWriteContext
java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.protobuf.ProtobufWriteContext
public class ProtobufWriteContext
extends tools.jackson.core.TokenStreamContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProtobufWriteContextprotected Objectprotected ProtobufFieldField within either current object (for Object context); or, parent field (for Array)protected ProtobufMessageDefinition 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 ProtobufWriteContextFields inherited from class tools.jackson.core.TokenStreamContext
_index, _nestingDepth, _type, TYPE_ARRAY, TYPE_OBJECT, TYPE_ROOT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProtobufWriteContext(int type, ProtobufWriteContext parent, ProtobufMessage msg) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ProtobufWriteContextFactory method called to get a placeholder context that is only in place until actual schema is handed.static ProtobufWriteContextgetField()final ProtobufWriteContextbooleannotArray()voidfinal StringtoString()Overridden to provide developer JsonPointer representation of the context.Methods inherited from class tools.jackson.core.TokenStreamContext
getCurrentIndex, getEntryCount, getNestingDepth, hasCurrentIndex, hasCurrentName, hasPathSegment, inArray, inObject, inRoot, pathAsPointer, pathAsPointer, startLocation, typeDesc
-
Field Details
-
_parent
-
_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) -
_field
Field within either current object (for Object context); or, parent field (for Array) -
_currentValue
-
_child
-
-
Constructor Details
-
ProtobufWriteContext
-
-
Method Details
-
createRootContext
-
createNullContext
Factory method called to get a placeholder context that is only in place until actual schema is handed. -
createChildArrayContext
-
createChildObjectContext
-
getParent
- Specified by:
getParentin classtools.jackson.core.TokenStreamContext
-
currentName
- Specified by:
currentNamein classtools.jackson.core.TokenStreamContext
-
currentValue
- Overrides:
currentValuein classtools.jackson.core.TokenStreamContext
-
assignCurrentValue
- Overrides:
assignCurrentValuein classtools.jackson.core.TokenStreamContext
-
setField
-
getField
-
getMessageType
-
notArray
public boolean notArray() -
appendDesc
-
toString
Overridden to provide developer JsonPointer representation of the context.- Overrides:
toStringin classtools.jackson.core.TokenStreamContext
-