public abstract class PropertyMatches
extends java.lang.Object主にフレームワーク内、特にバインディング機能内で使用するため。
forProperty(String, Class), forField(String, Class)| 修飾子と型 | フィールドと説明 |
|---|---|
static int | DEFAULT_MAX_DISTANCE デフォルトの最大プロパティ距離: 2. |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected void | appendHintMessage(java.lang.StringBuilder msg) |
abstract java.lang.String | buildErrorMessage() 指定された無効なプロパティ名のエラーメッセージを作成し、プロパティの一致を示します。 |
static PropertyMatches | forField(java.lang.String propertyName, java.lang.Class<?> beanClass) 指定されたフィールドプロパティの PropertyMatches を作成します。 |
static PropertyMatches | forField(java.lang.String propertyName, java.lang.Class<?> beanClass, int maxDistance) 指定されたフィールドプロパティの PropertyMatches を作成します。 |
static PropertyMatches | forProperty(java.lang.String propertyName, java.lang.Class<?> beanClass) 指定された Bean プロパティの PropertyMatches を作成します。 |
static PropertyMatches | forProperty(java.lang.String propertyName, java.lang.Class<?> beanClass, int maxDistance) 指定された Bean プロパティの PropertyMatches を作成します。 |
java.lang.String[] | getPossibleMatches() 計算された可能な一致を返します。 |
java.lang.String | getPropertyName() リクエストされたプロパティの名前を返します。 |
public static final int DEFAULT_MAX_DISTANCE
public static PropertyMatches forProperty(java.lang.String propertyName, java.lang.Class<?> beanClass)
propertyName - 可能な一致を見つけるためのプロパティの名前 beanClass - 一致を検索する Bean クラス public static PropertyMatches forProperty(java.lang.String propertyName, java.lang.Class<?> beanClass, int maxDistance)
propertyName - 可能な一致を見つけるためのプロパティの名前 beanClass - 一致を検索する Bean クラス maxDistance - マッチに許可される最大プロパティ距離 public static PropertyMatches forField(java.lang.String propertyName, java.lang.Class<?> beanClass)
propertyName - 一致する可能性のあるフィールドを見つけるフィールドの名前 beanClass - 一致を検索する Bean クラス public static PropertyMatches forField(java.lang.String propertyName, java.lang.Class<?> beanClass, int maxDistance)
propertyName - 一致する可能性のあるフィールドを見つけるフィールドの名前 beanClass - 一致を検索する Bean クラス maxDistance - マッチに許可される最大プロパティ距離 public java.lang.String getPropertyName()
public java.lang.String[] getPossibleMatches()
public abstract java.lang.String buildErrorMessage()
protected void appendHintMessage(java.lang.StringBuilder msg)