パッケージ org.springframework.beans

クラス PropertyAccessorUtils

java.lang.ObjectSE
org.springframework.beans.PropertyAccessorUtils

public abstract class PropertyAccessorUtils extends ObjectSE
PropertyAccessor インターフェースに従って Bean プロパティアクセスを実行するクラスのユーティリティメソッド。
導入:
1.2.6
作成者:
Juergen Hoeller
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    static StringSE
    指定されたプロパティパスの正規名を決定します。
    static StringSE[]
    指定されたプロパティパスの正規名を決定します。
    static int
    キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。
    static int
    キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。
    static StringSE
    指定されたプロパティパスの実際のプロパティ名を返します。
    static boolean
    指定されたプロパティパスがインデックス付きまたはネストされたプロパティを示しているかどうかを確認します。
    static boolean
    matchesProperty(StringSE registeredPath, StringSE propertyPath)
    指定された登録済みパスが指定されたプロパティパスと一致するかどうかを判断します。これは、プロパティ自体またはプロパティのインデックス付き要素を示します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • PropertyAccessorUtils

      public PropertyAccessorUtils()
  • メソッドの詳細

    • getPropertyName

      public static StringSE getPropertyName(StringSE propertyPath)
      指定されたプロパティパスの実際のプロパティ名を返します。
      パラメーター:
      propertyPath - プロパティ名を決定するプロパティパス (たとえば、マップエントリを指定するためのプロパティキーを含めることができます)
      戻り値:
      キー要素を含まない実際のプロパティ名
    • isNestedOrIndexedProperty

      public static boolean isNestedOrIndexedProperty(@Nullable StringSE propertyPath)
      指定されたプロパティパスがインデックス付きまたはネストされたプロパティを示しているかどうかを確認します。
      パラメーター:
      propertyPath - チェックするプロパティパス
      戻り値:
      パスがインデックス付きプロパティまたはネストされたプロパティを示すかどうか
    • getFirstNestedPropertySeparatorIndex

      public static int getFirstNestedPropertySeparatorIndex(StringSE propertyPath)
      キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。
      パラメーター:
      propertyPath - チェックするプロパティパス
      戻り値:
      ネストされたプロパティセパレータのインデックス、ない場合は -1
    • getLastNestedPropertySeparatorIndex

      public static int getLastNestedPropertySeparatorIndex(StringSE propertyPath)
      キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。
      パラメーター:
      propertyPath - チェックするプロパティパス
      戻り値:
      ネストされたプロパティセパレータのインデックス、ない場合は -1
    • matchesProperty

      public static boolean matchesProperty(StringSE registeredPath, StringSE propertyPath)
      指定された登録済みパスが指定されたプロパティパスと一致するかどうかを判断します。これは、プロパティ自体またはプロパティのインデックス付き要素を示します。
      パラメーター:
      propertyPath - プロパティパス (通常はインデックスなし)
      registeredPath - 登録済みパス (インデックス付きの可能性があります)
      戻り値:
      パスが一致するかどうか
    • canonicalPropertyName

      public static StringSE canonicalPropertyName(@Nullable StringSE propertyName)
      指定されたプロパティパスの正規名を決定します。マップキーから周囲の引用符を削除します。
       map['key'] → map[key]
       map["key"] → map[key]
      パラメーター:
      propertyName - Bean プロパティパス
      戻り値:
      プロパティパスの正規表現
    • canonicalPropertyNames

      @Nullable public static StringSE[] canonicalPropertyNames(@Nullable StringSE[] propertyNames)
      指定されたプロパティパスの正規名を決定します。
      パラメーター:
      propertyNames - Bean プロパティパス (配列として)
      戻り値:
      プロパティパスの正規表現 (同じサイズの配列として)
      関連事項: