public abstract class PropertyAccessorUtils
extends java.lang.ObjectPropertyAccessor インターフェースに従って Bean プロパティアクセスを実行するクラスのユーティリティメソッド。| コンストラクターと説明 |
|---|
PropertyAccessorUtils() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static java.lang.String | canonicalPropertyName(java.lang.String propertyName) 指定されたプロパティパスの正規名を決定します。 |
static java.lang.String[] | canonicalPropertyNames(java.lang.String[] propertyNames) 指定されたプロパティパスの正規名を決定します。 |
static int | getFirstNestedPropertySeparatorIndex(java.lang.String propertyPath) キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。 |
static int | getLastNestedPropertySeparatorIndex(java.lang.String propertyPath) キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。 |
static java.lang.String | getPropertyName(java.lang.String propertyPath) 指定されたプロパティパスの実際のプロパティ名を返します。 |
static boolean | isNestedOrIndexedProperty(java.lang.String propertyPath) 指定されたプロパティパスがインデックス付きまたはネストされたプロパティを示しているかどうかを確認します。 |
static boolean | matchesProperty(java.lang.String registeredPath, java.lang.String propertyPath) 指定された登録済みパスが指定されたプロパティパスと一致するかどうかを判断します。これは、プロパティ自体またはプロパティのインデックス付き要素を示します。 |
public static java.lang.String getPropertyName(java.lang.String propertyPath)
propertyPath - プロパティ名を決定するプロパティパス (たとえば、マップエントリを指定するためのプロパティキーを含めることができます)public static boolean isNestedOrIndexedProperty(@Nullable java.lang.String propertyPath)
propertyPath - チェックするプロパティパス public static int getFirstNestedPropertySeparatorIndex(java.lang.String propertyPath)
propertyPath - チェックするプロパティパス public static int getLastNestedPropertySeparatorIndex(java.lang.String propertyPath)
propertyPath - チェックするプロパティパス public static boolean matchesProperty(java.lang.String registeredPath,
java.lang.String propertyPath)propertyPath - プロパティパス (通常はインデックスなし)registeredPath - 登録済みパス (インデックス付きの可能性があります)public static java.lang.String canonicalPropertyName(@Nullable java.lang.String propertyName)
map['key'] -> map[key]map["key"] -> map[key]propertyName - Bean プロパティパス @Nullable public static java.lang.String[] canonicalPropertyNames(@Nullable java.lang.String[] propertyNames)
propertyNames - Bean プロパティパス (配列として)canonicalPropertyName(String)