T
- サポートされているオブジェクト型 public abstract class JsonObjectDeserializer<T>
extends com.fasterxml.jackson.databind.JsonDeserializer<T>
JsonDeserializer
実装のヘルパー基本クラス。JsonObjectSerializer
コンストラクターと説明 |
---|
JsonObjectDeserializer() |
修飾子と型 | メソッドと説明 |
---|---|
T | deserialize(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) |
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) JSON コンテンツをこのシリアライザーが処理する値の型に逆直列化します。 |
protected com.fasterxml.jackson.databind.JsonNode | getRequiredNode(com.fasterxml.jackson.databind.JsonNode tree, StringSE fieldName) ツリーから JsonNode を返すヘルパーメソッド。 |
protected <D> D | nullSafeValue(com.fasterxml.jackson.databind.JsonNode jsonNode, ClassSE<D> type) 指定された jsonNode から値を抽出するか、ノード自体が null の場合に null を返すヘルパーメソッド。 |
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
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
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
jsonParser
- JSON コンテンツの読み取りに使用されるソースパーサー context
- この逆直列化アクティビティに関する情報にアクセスするために使用できるコンテキスト codec
- パーサーに関連付けられた ObjectCodec
tree
- TreeNode
インスタンスのセットを使用して表現されたツリーとしての逆直列化された JSON コンテンツ IOExceptionSE
- エラー時 deserialize(JsonParser, DeserializationContext)
protected final <D> D nullSafeValue(com.fasterxml.jackson.databind.JsonNode jsonNode, ClassSE<D> type)
jsonNode
から値を抽出するか、ノード自体が null
の場合に null
を返すヘルパーメソッド。D
- リクエストされたデータ型 jsonNode
- ソースノード (null
の場合があります)type
- データ型。String
SE、Boolean
SE、Long
SE、Integer
SE、Short
SE、Double
SE、Float
SE、BigDecimal
SE、BigInteger
SE のいずれかです。null
protected final com.fasterxml.jackson.databind.JsonNode getRequiredNode(com.fasterxml.jackson.databind.JsonNode tree, StringSE fieldName)
JsonNode
を返すヘルパーメソッド。tree
- ソースツリー fieldName
- 抽出するフィールド名 JsonNode