类 BaseNodeDeserializer<T extends com.fasterxml.jackson.databind.JsonNode>

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<T>
com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
com.zhipu.oapi.service.v4.deserialize.BaseNodeDeserializer<T>
所有已实现的接口:
com.fasterxml.jackson.databind.deser.NullValueProvider, Serializable
直接已知子类:
AssistantChoiceDeserializer, AssistantCompletionDeserializer, ChatFunctionCallDeserializer, ChatMessageDeserializer, ChoiceDeltaDeserializer, ChoiceDeltaToolCallDeserializer, ChoiceDeserializer, CodeGeexContextDeserializer, CompletionUsageDeserializer, DeltaDeserializer, DocumentDataDeserializer, DocumentDataFailInfoDeserializer, DocumentFailedInfoDeserializer, DocumentObjectDeserializer, DocumentPageDeserializer, DocumentSuccessInfoDeserializer, EmbeddingDeserializer, EmbeddingResultDeserializer, ErrorInfoDeserializer, ImageDeserializer, ImageResultDeserializer, KnowledgeInfoDeserializer, KnowledgePageDeserializer, KnowledgeStatisticsDeserializer, KnowledgeUsedDeserializer, ModelDataDeserializer, ObjectDeserializer, SearchChatMessageDeserializer, SearchIntentDeserializer, SearchRecommendDeserializer, SearchResultDeserializer, ToolCallsDeserializer, VideoObjectDeserializer, VideoResultDeserializer, WebSearchChoiceDeserializer, WebSearchMessageDeserializer, WebSearchMessageToolCallDeserializer, WebSearchProDeserializer

public abstract class BaseNodeDeserializer<T extends com.fasterxml.jackson.databind.JsonNode> extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
Base class for all actual JsonNode deserializer implementations
另请参阅:
  • 嵌套类概要

    从类继承的嵌套类/接口 com.fasterxml.jackson.databind.JsonDeserializer

    com.fasterxml.jackson.databind.JsonDeserializer.None
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected final Boolean
     

    从类继承的字段 com.fasterxml.jackson.databind.deser.std.StdDeserializer

    _valueClass, _valueType, F_MASK_ACCEPT_ARRAYS, F_MASK_INT_COERCIONS
  • 构造器概要

    构造器
    构造器
    说明
    BaseNodeDeserializer(Class<T> vc, Boolean supportsUpdates)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected final com.fasterxml.jackson.databind.JsonNode
    _fromEmbedded(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
     
    protected final com.fasterxml.jackson.databind.JsonNode
    _fromFloat(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
     
    protected final com.fasterxml.jackson.databind.JsonNode
    _fromInt(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
     
    protected void
    _handleDuplicateField(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory, String fieldName, com.fasterxml.jackson.databind.node.ObjectNode objectNode, com.fasterxml.jackson.databind.JsonNode oldValue, com.fasterxml.jackson.databind.JsonNode newValue)
    Method called when there is a duplicate value for a field.
    protected final com.fasterxml.jackson.databind.JsonNode
    deserializeAny(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
     
    protected final com.fasterxml.jackson.databind.node.ArrayNode
    deserializeArray(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
     
    protected final com.fasterxml.jackson.databind.node.ObjectNode
    deserializeObject(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
    Method called to deserialize Object node instance when there is no existing node to modify.
    protected final com.fasterxml.jackson.databind.node.ObjectNode
    deserializeObjectAtName(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory)
    Alternate deserialization method used when parser already points to first FIELD_NAME and not START_OBJECT.
    deserializeWithType(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer)
     
    boolean
     
    supportsUpdate(com.fasterxml.jackson.databind.DeserializationConfig config)
     
    protected final com.fasterxml.jackson.databind.JsonNode
    updateArray(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.ArrayNode node)
    Alternate deserialization method that is to update existing ObjectNode if possible.
    protected final com.fasterxml.jackson.databind.JsonNode
    updateObject(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.ObjectNode node)
    Alternate deserialization method that is to update existing ObjectNode if possible.

    从类继承的方法 com.fasterxml.jackson.databind.deser.std.StdDeserializer

    _byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDouble

    从类继承的方法 com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • _supportsUpdates

      protected final Boolean _supportsUpdates
  • 构造器详细资料

    • BaseNodeDeserializer

      public BaseNodeDeserializer(Class<T> vc, Boolean supportsUpdates)
  • 方法详细资料

    • deserializeWithType

      public Object deserializeWithType(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.jsontype.TypeDeserializer typeDeserializer) throws IOException
      覆盖:
      deserializeWithType 在类中 com.fasterxml.jackson.databind.deser.std.StdDeserializer<T extends com.fasterxml.jackson.databind.JsonNode>
      抛出:
      IOException
    • isCachable

      public boolean isCachable()
      覆盖:
      isCachable 在类中 com.fasterxml.jackson.databind.JsonDeserializer<T extends com.fasterxml.jackson.databind.JsonNode>
    • supportsUpdate

      public Boolean supportsUpdate(com.fasterxml.jackson.databind.DeserializationConfig config)
      覆盖:
      supportsUpdate 在类中 com.fasterxml.jackson.databind.JsonDeserializer<T extends com.fasterxml.jackson.databind.JsonNode>
    • _handleDuplicateField

      protected void _handleDuplicateField(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory, String fieldName, com.fasterxml.jackson.databind.node.ObjectNode objectNode, com.fasterxml.jackson.databind.JsonNode oldValue, com.fasterxml.jackson.databind.JsonNode newValue) throws com.fasterxml.jackson.core.JsonProcessingException
      Method called when there is a duplicate value for a field. By default we don't care, and the last value is used. Can be overridden to provide alternate handling, such as throwing an exception, or choosing different strategy for combining values or choosing which one to keep.
      参数:
      fieldName - Name of the field for which duplicate value was found
      objectNode - Object node that contains values
      oldValue - Value that existed for the object node before newValue was added
      newValue - Newly added value just added to the object node
      抛出:
      com.fasterxml.jackson.core.JsonProcessingException
    • deserializeObject

      protected final com.fasterxml.jackson.databind.node.ObjectNode deserializeObject(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      Method called to deserialize Object node instance when there is no existing node to modify.
      抛出:
      IOException
    • deserializeObjectAtName

      protected final com.fasterxml.jackson.databind.node.ObjectNode deserializeObjectAtName(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      Alternate deserialization method used when parser already points to first FIELD_NAME and not START_OBJECT.
      抛出:
      IOException
      从以下版本开始:
      2.9
    • updateObject

      protected final com.fasterxml.jackson.databind.JsonNode updateObject(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.ObjectNode node) throws IOException
      Alternate deserialization method that is to update existing ObjectNode if possible.
      抛出:
      IOException
      从以下版本开始:
      2.9
    • deserializeArray

      protected final com.fasterxml.jackson.databind.node.ArrayNode deserializeArray(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      抛出:
      IOException
    • updateArray

      protected final com.fasterxml.jackson.databind.JsonNode updateArray(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.ArrayNode node) throws IOException
      Alternate deserialization method that is to update existing ObjectNode if possible.
      抛出:
      IOException
      从以下版本开始:
      2.9
    • deserializeAny

      protected final com.fasterxml.jackson.databind.JsonNode deserializeAny(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      抛出:
      IOException
    • _fromInt

      protected final com.fasterxml.jackson.databind.JsonNode _fromInt(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      抛出:
      IOException
    • _fromFloat

      protected final com.fasterxml.jackson.databind.JsonNode _fromFloat(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      抛出:
      IOException
    • _fromEmbedded

      protected final com.fasterxml.jackson.databind.JsonNode _fromEmbedded(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.node.JsonNodeFactory nodeFactory) throws IOException
      抛出:
      IOException