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