(クラス)
ValueControl にアタッチされている場合、値が指定の正規表現に一致するようにします。
コンストラクタ public | {RegExpValidator.default regexp:String, message:#String = null} |
コンストラクタ public implicit | {RegExpValidator.from-ValidationPattern} |
フィールド protected RegExpValidator._regexp:
String ={uninitialized-value-for-type String}
フィールド protected RegExpValidator.full-regexp:
String ={uninitialized-value-for-type String}
フィールド public RegExpValidator.message:
String
アクセサ public RegExpValidator.regexp:
String セッター public RegExpValidator.regexp:
String
public | {RegExpValidator.get-pattern-message}:String |
public | {RegExpValidator.validate-value}:#Visual |
(コンストラクタ)
public | {RegExpValidator.default regexp:String, message:#String = null} |
RegExpValidator を作成します。
message: 値が一致しない場合に表示されるメッセージ。これが null の場合は、組み込みメッセージが使用されます。
(コンストラクタ)
public implicit | {RegExpValidator.from-ValidationPattern} |
事前定義パターン用の RegExpValidator を作成します。
説明
事前定義パターンを使用して RegExpValidator を返します。詳細なエラー メッセージも自動的に提供されます。
pattern: 事前定義パターンの 1 つを識別します。
(フィールド)
protected RegExpValidator._regexp:
String ={uninitialized-value-for-type String}
(フィールド)
protected RegExpValidator.full-regexp:
String ={uninitialized-value-for-type String}
(フィールド)
public RegExpValidator.message:
String
(アクセサ)
アクセサ public RegExpValidator.regexp:
String セッター public RegExpValidator.regexp:
String
(クラスプロシージャ)
public | {RegExpValidator.get-pattern-message}:String |
(メソッド)
public | {RegExpValidator.validate-value}:#Visual |
コントロールの値が有効であるかどうかを決定します。
説明
コントロールの値をチェックします。この基本クラス メソッドは NULL を返すだけです。サブクラスは、通常、このメソッドをオーバーライドすることで、特別な値チェックを実行します。
target: 検証するコントロール。
partial?: 検証サイクルを起動したエントリが不完全である可能性があることを示します。
戻り値
値が有効な場合は NULL を返します。それ以外はエラー メッセージを返します。