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