Class TokenFilterContext

    • Method Detail

      • checkValue

        public TokenFilter checkValue​(TokenFilter filter)
        Method called to check whether value is to be included at current output position, either as Object property, Array element, or root value.
        Parameters:
        filter - Currently active filter
        Returns:
        Filter to use for value
      • ensureFieldNameWritten

        public void ensureFieldNameWritten​(JsonGenerator gen)
                                    throws java.io.IOException
        Method called to ensure that field name, if present, has been written; may result (but does not always) in a call using given generator
        Parameters:
        gen - Generator to use to write the property name, if necessary
        Throws:
        java.io.IOException - If there is a problem writing property name (typically thrown by JsonGenerator)
      • writePath

        public void writePath​(JsonGenerator gen)
                       throws java.io.IOException
        Method called to ensure that parent path from root is written up to and including this node.
        Parameters:
        gen - Generator to use to write the path, if necessary
        Throws:
        java.io.IOException - If there is a problem writing property name (typically thrown by JsonGenerator)
      • skipParentChecks

        public void skipParentChecks()
      • getCurrentValue

        public java.lang.Object getCurrentValue()
        Description copied from class: JsonStreamContext
        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.

        Overrides:
        getCurrentValue in class JsonStreamContext
        Returns:
        Currently active value, if one has been assigned.
      • getParent

        public final TokenFilterContext getParent()
        Description copied from class: JsonStreamContext
        Accessor for finding parent context of this context; will return null for root context.
        Specified by:
        getParent in class JsonStreamContext
        Returns:
        Parent context of this context, if any; null for Root contexts
      • getCurrentName

        public final java.lang.String getCurrentName()
        Description copied from class: JsonStreamContext
        Method for accessing name associated with the current location. Non-null for FIELD_NAME and value events that directly follow field names; null for root level and array values.
        Specified by:
        getCurrentName in class JsonStreamContext
        Returns:
        Current field name within context, if any; null if none
      • isStartHandled

        public boolean isStartHandled()
      • nextTokenToRead

        public JsonToken nextTokenToRead()