クラス JacksonPropertyAccessor
java.lang.ObjectSE
org.springframework.integration.json.JacksonPropertyAccessor
- 実装されているすべてのインターフェース:
PropertyAccessor,TargetedAccessor
JSON オブジェクトからプロパティを読み取る方法を知っている SpEL
PropertyAccessor。 ネストされたプロパティへのアクセスには Jackson JsonNode API を使用します。
- 導入:
- 7.0
- 作成者:
- Jooyoung Pyoung, Artem Bilan
- 関連事項:
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明booleancanRead(EvaluationContext context, @Nullable ObjectSE target, StringSE name) booleancanWrite(EvaluationContext context, @Nullable ObjectSE target, StringSE name) ClassSE<?>[]read(EvaluationContext context, @Nullable ObjectSE target, StringSE name) voidsetObjectMapper(tools.jackson.databind.json.JsonMapper jsonMapper) static @Nullable ObjectSEwrap(@Nullable tools.jackson.databind.JsonNode json) voidwrite(EvaluationContext context, @Nullable ObjectSE target, StringSE name, @Nullable ObjectSE newValue)
コンストラクターの詳細
JacksonPropertyAccessor
public JacksonPropertyAccessor()
メソッドの詳細
setObjectMapper
public void setObjectMapper(tools.jackson.databind.json.JsonMapper jsonMapper) getSpecificTargetClasses
- 次で指定:
- インターフェース
TargetedAccessorのgetSpecificTargetClasses
canRead
public boolean canRead(EvaluationContext context, @Nullable ObjectSE target, StringSE name) throws AccessException - 次で指定:
- インターフェース
PropertyAccessorのcanRead - 例外:
AccessException
read
public TypedValue read(EvaluationContext context, @Nullable ObjectSE target, StringSE name) throws AccessException - 次で指定:
- インターフェース
PropertyAccessorのread - 例外:
AccessException
canWrite
- 次で指定:
- インターフェース
PropertyAccessorのcanWrite
write
public void write(EvaluationContext context, @Nullable ObjectSE target, StringSE name, @Nullable ObjectSE newValue) - 次で指定:
- インターフェース
PropertyAccessorのwrite
wrap
public static @Nullable ObjectSE wrap(@Nullable tools.jackson.databind.JsonNode json) throws AccessException