Class ProtobufWriteContext

java.lang.Object
tools.jackson.core.TokenStreamContext
tools.jackson.dataformat.protobuf.ProtobufWriteContext

public class ProtobufWriteContext extends tools.jackson.core.TokenStreamContext
  • Field Details

    • _parent

      protected final ProtobufWriteContext _parent
    • _message

      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)
    • _field

      protected ProtobufField _field
      Field within either current object (for Object context); or, parent field (for Array)
    • _currentValue

      protected Object _currentValue
    • _child

      protected ProtobufWriteContext _child
  • Constructor Details

  • Method Details

    • createRootContext

      public static ProtobufWriteContext createRootContext(ProtobufMessage msg)
    • createNullContext

      public static ProtobufWriteContext createNullContext()
      Factory method called to get a placeholder context that is only in place until actual schema is handed.
    • createChildArrayContext

      public ProtobufWriteContext createChildArrayContext()
    • createChildObjectContext

      public ProtobufWriteContext createChildObjectContext(ProtobufMessage type)
    • getParent

      public final ProtobufWriteContext getParent()
      Specified by:
      getParent in class tools.jackson.core.TokenStreamContext
    • currentName

      public String currentName()
      Specified by:
      currentName in class tools.jackson.core.TokenStreamContext
    • currentValue

      public Object currentValue()
      Overrides:
      currentValue in class tools.jackson.core.TokenStreamContext
    • assignCurrentValue

      public void assignCurrentValue(Object v)
      Overrides:
      assignCurrentValue in class tools.jackson.core.TokenStreamContext
    • setField

      public void setField(ProtobufField f)
    • getField

      public ProtobufField getField()
    • getMessageType

      public ProtobufMessage getMessageType()
    • notArray

      public boolean notArray()
    • appendDesc

      public StringBuilder appendDesc(StringBuilder sb)
    • toString

      public final String toString()
      Overridden to provide developer JsonPointer representation of the context.
      Overrides:
      toString in class tools.jackson.core.TokenStreamContext