クラス MappedJacksonProperties

java.lang.ObjectSE
org.springframework.data.rest.webmvc.json.MappedJacksonProperties

public class MappedJacksonProperties extends ObjectSE
Jackson にマッピングされたフィールド名と PersistentProperty インスタンスのマッピングをキャプチャーするシンプルな値オブジェクト。
導入:
5.0
作成者:
Mark Paluch, Oliver Gierke, Mark Paluch, Mathias D ü sterh ö ft
  • 方法の詳細

    • 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

      public static MappedJacksonProperties none()
    • getMappedName

      public StringSE getMappedName(PersistentProperty<?> property)
      パラメーター:
      property - null であってはなりません
      戻り値:
      the mapped name for the PersistentProperty
    • hasPersistentPropertyForField

      public boolean hasPersistentPropertyForField(StringSE fieldName)
      パラメーター:
      fieldName - 空または null であってはなりません。
      戻り値:
      true if the field name resolves to a PersistentProperty.
    • getPersistentProperty

      public @Nullable PersistentProperty<?> getPersistentProperty(StringSE fieldName)
      パラメーター:
      fieldName - 空または null であってはなりません。
      戻り値:
      the PersistentProperty backing the field with the field name.
    • getSpringDataUnmappedProperties

      public IterableSE<StringSE> getSpringDataUnmappedProperties()
      Jackson のみが認識するすべてのプロパティを返します。
      戻り値:
      the names of all properties that are not known to Spring Data but appear in the Jackson metamodel.
    • getIgnoredProperties

      public IterableSE<StringSE> getIgnoredProperties()
      無視されたプロパティのすべてのプロパティ名を返します。
      戻り値:
      null になることはありません。
      導入:
      3.5.11, 3.6.4
    • isMappedProperty

      public boolean isMappedProperty(PersistentProperty<?> property)
      指定された PersistentProperty がマッピングされているかどうか、つまり Jackson と Spring Data の両方に認識されているかどうかを返します。
      パラメーター:
      property - null であってはなりません。
      戻り値:
    • isWritableField

      public boolean isWritableField(StringSE name)
      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 with JsonAnySetter.
      パラメーター:
      name - null または空であってはなりません。
      戻り値:
    • isReadableField

      public boolean isReadableField(StringSE name)
    • isExposedProperty

      public boolean isExposedProperty(StringSE name)