クラス JsonObjectDeserializer<T>
java.lang.ObjectSE
com.fasterxml.jackson.databind.JsonDeserializer<T>
org.springframework.boot.jackson.JsonObjectDeserializer<T>
- 型パラメーター:
T- サポートされているオブジェクト型
- 実装済みのインターフェース一覧:
com.fasterxml.jackson.databind.deser.NullValueProvider
public abstract class JsonObjectDeserializer<T>
extends com.fasterxml.jackson.databind.JsonDeserializer<T>
オブジェクトを逆直列化する
JsonDeserializer 実装のヘルパー基本クラス。- 導入:
- 1.4.0
- 作成者:
- Phillip Webb
- 関連事項:
ネストされたクラスの概要
クラス com.fasterxml.jackson.databind.JsonDeserializer から継承されたネストクラス / インターフェース
com.fasterxml.jackson.databind.JsonDeserializer.Noneコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明final Tdeserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) protected abstract TdeserializeObject(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.databind.JsonNode tree) JSON コンテンツをこのシリアライザーが処理する値の型に逆直列化します。protected final com.fasterxml.jackson.databind.JsonNodegetRequiredNode(com.fasterxml.jackson.databind.JsonNode tree, StringSE fieldName) ツリーからJsonNodeを返すヘルパーメソッド。protected final <D> DnullSafeValue(com.fasterxml.jackson.databind.JsonNode jsonNode, ClassSE<D> type) 指定されたjsonNodeから値を抽出するか、ノード自体がnullの場合にnullを返すヘルパーメソッド。クラス com.fasterxml.jackson.databind.JsonDeserializer から継承されたメソッド
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
コンストラクターの詳細
JsonObjectDeserializer
public JsonObjectDeserializer()
方法の詳細
deserialize
public final T deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOExceptionSE - 次で指定:
- クラス
com.fasterxml.jackson.databind.JsonDeserializer<T>のdeserialize - 例外:
IOExceptionSE
deserializeObject
protected abstract T deserializeObject(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext context, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.databind.JsonNode tree) throws IOExceptionSE JSON コンテンツをこのシリアライザーが処理する値の型に逆直列化します。- パラメーター:
jsonParser- JSON コンテンツの読み取りに使用されるソースパーサーcontext- この逆直列化アクティビティに関する情報にアクセスするために使用できるコンテキストcodec- パーサーに関連付けられたObjectCodectree-TreeNodeインスタンスのセットを使用して表現されたツリーとしての逆直列化された JSON コンテンツ- 戻り値:
- 逆直列化されたオブジェクト
- 例外:
IOExceptionSE- エラー時- 関連事項:
nullSafeValue
protected final <D> D nullSafeValue(com.fasterxml.jackson.databind.JsonNode jsonNode, ClassSE<D> type) 指定されたjsonNodeから値を抽出するか、ノード自体がnullの場合にnullを返すヘルパーメソッド。- 型パラメーター:
D- リクエストされたデータ型- パラメーター:
jsonNode- ソースノード (nullの場合があります)type- データ型。StringSE、BooleanSE、LongSE、IntegerSE、ShortSE、DoubleSE、FloatSE、BigDecimalSE、BigIntegerSE のいずれかです。- 戻り値:
- ノード値または
null
getRequiredNode
protected final com.fasterxml.jackson.databind.JsonNode getRequiredNode(com.fasterxml.jackson.databind.JsonNode tree, StringSE fieldName) ツリーからJsonNodeを返すヘルパーメソッド。- パラメーター:
tree- ソースツリーfieldName- 抽出するフィールド名- 戻り値:
JsonNode