クラス PropertyAccessorUtils
java.lang.ObjectSE
org.springframework.beans.PropertyAccessorUtils
PropertyAccessor インターフェースに従って Bean プロパティアクセスを実行するクラスのユーティリティメソッド。- 導入:
- 1.2.6
- 作成者:
- Juergen Hoeller
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明static StringSEcanonicalPropertyName(@Nullable StringSE propertyName) 指定されたプロパティパスの正規名を決定します。canonicalPropertyNames(StringSE @Nullable [] propertyNames) 指定されたプロパティパスの正規名を決定します。static intgetFirstNestedPropertySeparatorIndex(StringSE propertyPath) キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。static intgetLastNestedPropertySeparatorIndex(StringSE propertyPath) キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。static StringSEgetPropertyName(StringSE propertyPath) 指定されたプロパティパスの実際のプロパティ名を返します。static booleanisNestedOrIndexedProperty(@Nullable StringSE propertyPath) 指定されたプロパティパスがインデックス付きまたはネストされたプロパティを示しているかどうかを確認します。static booleanmatchesProperty(StringSE registeredPath, StringSE propertyPath) 指定された登録済みパスが指定されたプロパティパスと一致するかどうかを判断します。これは、プロパティ自体またはプロパティのインデックス付き要素を示します。
コンストラクターの詳細
PropertyAccessorUtils
public PropertyAccessorUtils()
メソッドの詳細
getPropertyName
isNestedOrIndexedProperty
getFirstNestedPropertySeparatorIndex
キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。- パラメーター:
propertyPath- チェックするプロパティパス- 戻り値:
- ネストされたプロパティセパレータのインデックス、ない場合は -1
getLastNestedPropertySeparatorIndex
キー内のドット( "map [my.key]" など)を無視して、指定されたプロパティパスの最初のネストされたプロパティセパレーターを決定します。- パラメーター:
propertyPath- チェックするプロパティパス- 戻り値:
- ネストされたプロパティセパレータのインデックス、ない場合は -1
matchesProperty
canonicalPropertyName
canonicalPropertyNames