クラス ObjectValueDeserializer<T>

java.lang.ObjectSE
tools.jackson.databind.ValueDeserializer<T>
org.springframework.boot.jackson.ObjectValueDeserializer<T>
型パラメーター:
T - サポートされているオブジェクト型
実装されているすべてのインターフェース:
tools.jackson.databind.deser.NullValueProvider

public abstract class ObjectValueDeserializer<T> extends tools.jackson.databind.ValueDeserializer<T>
オブジェクトを逆直列化する ValueDeserializer 実装のヘルパー基本クラス。
導入:
4.0.0
作成者:
Phillip Webb
関連事項:
  • ネストされたクラスの要約

    クラス tools.jackson.databind.ValueDeserializer から継承されたネストクラス / インターフェース

    tools.jackson.databind.ValueDeserializer.None
  • コンストラクターの概要

    コンストラクター
    コンストラクター
    説明
  • 方法の概要

    修飾子と型
    メソッド
    説明
    final T
    deserialize(tools.jackson.core.JsonParser jp, tools.jackson.databind.DeserializationContext ctxt)
    protected abstract T
    deserializeObject(tools.jackson.core.JsonParser jsonParser, tools.jackson.databind.DeserializationContext context, tools.jackson.databind.JsonNode tree)
    JSON コンテンツをこのシリアライザーが処理する値の型に逆直列化します。
    protected final tools.jackson.databind.JsonNode
    getRequiredNode(tools.jackson.databind.JsonNode tree, StringSE fieldName)
    ツリーから JsonNode を返すヘルパーメソッド。
    protected final <D> @Nullable D
    nullSafeValue(@Nullable tools.jackson.databind.JsonNode jsonNode, ClassSE<D> type)
    指定された jsonNode から値を抽出するか、ノード自体が null の場合に null を返すヘルパーメソッド。
    protected final <D,R> @Nullable R
    nullSafeValue(@Nullable tools.jackson.databind.JsonNode jsonNode, ClassSE<D> type, FunctionSE<D,R> mapper)
    指定された jsonNode から値を抽出するか、ノード自体が null の場合に null を返すヘルパーメソッド。

    クラス tools.jackson.databind.ValueDeserializer から継承されたメソッド

    createContextual, deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer

    クラス ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • ObjectValueDeserializer

      public ObjectValueDeserializer()
  • メソッドの詳細

    • deserialize

      public final T deserialize(tools.jackson.core.JsonParser jp, tools.jackson.databind.DeserializationContext ctxt)
      次で指定:
      クラス tools.jackson.databind.ValueDeserializer<T>deserialize 
    • deserializeObject

      protected abstract T deserializeObject(tools.jackson.core.JsonParser jsonParser, tools.jackson.databind.DeserializationContext context, tools.jackson.databind.JsonNode tree)
      JSON コンテンツをこのシリアライザーが処理する値の型に逆直列化します。
      パラメーター:
      jsonParser - JSON コンテンツの読み取りに使用されるソースパーサー
      context - この逆直列化アクティビティに関する情報にアクセスするために使用できるコンテキスト
      tree - TreeNode インスタンスのセットを使用して表現されたツリーとしての逆直列化された JSON コンテンツ
      戻り値:
      逆直列化されたオブジェクト
      関連事項:
    • nullSafeValue

      protected final <D,R> @Nullable R nullSafeValue(@Nullable tools.jackson.databind.JsonNode jsonNode, ClassSE<D> type, FunctionSE<D,R> mapper)
      指定された jsonNode から値を抽出するか、ノード自体が null の場合に null を返すヘルパーメソッド。
      型パラメーター:
      D - リクエストされたデータ型
      R - 結果の型
      パラメーター:
      jsonNode - ソースノード (null の場合があります)
      type - データ型。StringSEBooleanSELongSEIntegerSEShortSEDoubleSEFloatSEBigDecimalSEBigIntegerSE のいずれかです。
      mapper - null でない場合に値を変換するマッパー
      戻り値:
      ノード値または null
    • nullSafeValue

      protected final <D> @Nullable D nullSafeValue(@Nullable tools.jackson.databind.JsonNode jsonNode, ClassSE<D> type)
      指定された jsonNode から値を抽出するか、ノード自体が null の場合に null を返すヘルパーメソッド。
      型パラメーター:
      D - リクエストされたデータ型
      パラメーター:
      jsonNode - ソースノード (null の場合があります)
      type - データ型。StringSEBooleanSELongSEIntegerSEShortSEDoubleSEFloatSEBigDecimalSEBigIntegerSE のいずれかです。
      戻り値:
      ノード値または null
    • getRequiredNode

      protected final tools.jackson.databind.JsonNode getRequiredNode(tools.jackson.databind.JsonNode tree, StringSE fieldName)
      ツリーから JsonNode を返すヘルパーメソッド。
      パラメーター:
      tree - ソースツリー
      fieldName - 抽出するフィールド名
      戻り値:
      JsonNode