クラス MappedJacksonProperties
java.lang.ObjectSE
org.springframework.data.rest.webmvc.json.MappedJacksonProperties
Jackson にマッピングされたフィールド名と
PersistentProperty インスタンスのマッピングをキャプチャーするシンプルな値オブジェクト。- 導入:
- 5.0
- 作成者:
- Mark Paluch, Oliver Gierke, Mark Paluch, Mathias D ü sterh ö ft
方法の概要
修飾子と型メソッド説明static MappedJacksonPropertiesforDescription(PersistentEntity<?, ?> entity, tools.jackson.databind.BeanDescription description) static MappedJacksonPropertiesforDeserialization(PersistentEntity<?, ?> entity, tools.jackson.databind.ObjectMapper mapper) 指定されたPersistentEntityに対して、逆直列化のためにMappedJacksonPropertiesを作成します。static MappedJacksonPropertiesforSerialization(PersistentEntity<?, ?> entity, tools.jackson.databind.ObjectMapper mapper) 指定されたPersistentEntityに対して、直列化のためにMappedJacksonPropertiesを作成します。無視されたプロパティのすべてのプロパティ名を返します。getMappedName(PersistentProperty<?> property) @Nullable PersistentProperty<?>getPersistentProperty(StringSE fieldName) Jackson のみが認識するすべてのプロパティを返します。booleanhasPersistentPropertyForField(StringSE fieldName) booleanisExposedProperty(StringSE name) booleanisMappedProperty(PersistentProperty<?> property) 指定されたPersistentPropertyがマッピングされているかどうか、つまり Jackson と Spring Data の両方に認識されているかどうかを返します。booleanisReadableField(StringSE name) booleanisWritableField(StringSE name) プロパティが実際に書き込み可能かどうかを返します。static MappedJacksonPropertiesnone()
方法の詳細
forDeserialization
public static MappedJacksonProperties forDeserialization(PersistentEntity<?, ?> entity, tools.jackson.databind.ObjectMapper mapper) 指定されたPersistentEntityから逆直列化用のMappedJacksonPropertiesを作成します。Jackson の読み取り専用プロパティは含まれません。- パラメーター:
entity- null であってはなりません。mapper- null であってはなりません。- 戻り値:
forSerialization
public static MappedJacksonProperties forSerialization(PersistentEntity<?, ?> entity, tools.jackson.databind.ObjectMapper mapper) 指定されたPersistentEntityから直列化用のMappedJacksonPropertiesを作成します。Jackson の読み取り専用プロパティが含まれます。- パラメーター:
entity- null であってはなりません。mapper- null であってはなりません。- 戻り値:
forDescription
public static MappedJacksonProperties forDescription(PersistentEntity<?, ?> entity, tools.jackson.databind.BeanDescription description) none
getMappedName
- パラメーター:
property- null であってはなりません- 戻り値:
- the mapped name for the
PersistentProperty
hasPersistentPropertyForField
- パラメーター:
fieldName- 空または null であってはなりません。- 戻り値:
- true if the field name resolves to a PersistentProperty.
getPersistentProperty
- パラメーター:
fieldName- 空または null であってはなりません。- 戻り値:
- the
PersistentPropertybacking the field with the field name.
getSpringDataUnmappedProperties
Jackson のみが認識するすべてのプロパティを返します。- 戻り値:
- the names of all properties that are not known to Spring Data but appear in the Jackson metamodel.
getIgnoredProperties
無視されたプロパティのすべてのプロパティ名を返します。- 戻り値:
- null になることはありません。
- 導入:
- 3.5.11, 3.6.4
isMappedProperty
指定されたPersistentPropertyがマッピングされているかどうか、つまり Jackson と Spring Data の両方に認識されているかどうかを返します。- パラメーター:
property- null であってはなりません。- 戻り値:
isWritableField
Returns whether the property is actually writable. I.e. whether there's a non-read-only property on the target type or there's a catch all method annotated withJsonAnySetter.- パラメーター:
name- null または空であってはなりません。- 戻り値:
isReadableField
isExposedProperty