public class ProtobufWriteContext
extends com.fasterxml.jackson.core.JsonStreamContext
Modifier and Type | Field and Description |
---|---|
protected ProtobufWriteContext |
_child |
protected Object |
_currentValue |
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 ProtobufWriteContext |
_parent |
Modifier | Constructor and Description |
---|---|
protected |
ProtobufWriteContext(int type,
ProtobufWriteContext parent,
ProtobufMessage msg) |
Modifier and Type | Method and Description |
---|---|
StringBuilder |
appendDesc(StringBuilder sb) |
ProtobufWriteContext |
createChildArrayContext() |
ProtobufWriteContext |
createChildObjectContext(ProtobufMessage type) |
static ProtobufWriteContext |
createNullContext()
Factory method called to get a placeholder context that is only
in place until actual schema is handed.
|
static ProtobufWriteContext |
createRootContext(ProtobufMessage msg) |
String |
getCurrentName() |
Object |
getCurrentValue() |
ProtobufField |
getField() |
ProtobufMessage |
getMessageType() |
ProtobufWriteContext |
getParent() |
boolean |
notArray() |
void |
setCurrentValue(Object v) |
void |
setField(ProtobufField f) |
String |
toString()
Overridden to provide developer JsonPointer representation
of the context.
|
protected final ProtobufWriteContext _parent
protected ProtobufMessage _message
protected ProtobufField _field
protected Object _currentValue
protected ProtobufWriteContext _child
protected ProtobufWriteContext(int type, ProtobufWriteContext parent, ProtobufMessage msg)
public static ProtobufWriteContext createRootContext(ProtobufMessage msg)
public static ProtobufWriteContext createNullContext()
public ProtobufWriteContext createChildArrayContext()
public ProtobufWriteContext createChildObjectContext(ProtobufMessage type)
public final ProtobufWriteContext getParent()
getParent
in class com.fasterxml.jackson.core.JsonStreamContext
public String getCurrentName()
getCurrentName
in class com.fasterxml.jackson.core.JsonStreamContext
public Object getCurrentValue()
getCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public void setCurrentValue(Object v)
setCurrentValue
in class com.fasterxml.jackson.core.JsonStreamContext
public void setField(ProtobufField f)
public ProtobufField getField()
public ProtobufMessage getMessageType()
public boolean notArray()
public StringBuilder appendDesc(StringBuilder sb)
public final String toString()
toString
in class com.fasterxml.jackson.core.JsonStreamContext
Copyright © 2021 FasterXML. All rights reserved.