|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
@Rcsid(value="$Revision: 38309 $ $Date: 2010-03-18 17:14:55 +0900 $") public interface NumericValidator
IntegerType型及びDecimalType型の入力チェックを行う機能。
値の桁数チェック、数値の範囲チェックなどを行う。
| メソッドの概要 | |
|---|---|
boolean |
isInRange(DecimalType value,
DecimalType min,
DecimalType max,
MathUtil.InRange range)
DecimalType型の範囲チェックを行う。 |
boolean |
isInRange(IntegerType value,
IntegerType min,
IntegerType max,
MathUtil.InRange range)
IntegerType型の範囲チェックを行う。 |
boolean |
maxLength(DecimalType value,
int integerMax,
int decimalMax,
MathUtil.Boundary boundary)
DecimalType型の最大桁数チェックを行う。 |
boolean |
maxLength(DecimalType value,
int integerMax,
MathUtil.Boundary boundary)
DecimalType型の最大桁数チェックを行う。 |
boolean |
maxLength(IntegerType value,
int max,
MathUtil.Boundary boundary)
IntegerType型の最大桁数チェックを行う。 |
boolean |
minLength(DecimalType value,
int integerMin,
int decimalMin,
MathUtil.Boundary boundary)
DecimalType型の最小桁数チェックを行う。 |
boolean |
minLength(DecimalType value,
int integerMin,
MathUtil.Boundary boundary)
DecimalType型の最小桁数チェックを行う。 |
boolean |
minLength(IntegerType value,
int min,
MathUtil.Boundary boundary)
IntgerType型の最小桁数チェックを行う。 |
| メソッドの詳細 |
|---|
boolean isInRange(IntegerType value,
IntegerType min,
IntegerType max,
MathUtil.InRange range)
IntegerType型の範囲チェックを行う。
rangeの境界の情報は
最小値<=検査対象<=最大値
最小値<=検査対象<最大値
最小値<検査対象<=最大値
最小値<検査対象<最大値
rangeに不正な値が設定されていた場合、FinalunaSysExceptionをthrowする。
value - 検査対象値min - 最小値max - 最大値range - 境界の情報を保持する値truefalsefalsefalse
boolean maxLength(IntegerType value,
int max,
MathUtil.Boundary boundary)
IntegerType型の最大桁数チェックを行う。
maxが0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value - 検査対象値max - 最大桁数boundary - 境界の情報を保持する値truefalsefalse
boolean minLength(IntegerType value,
int min,
MathUtil.Boundary boundary)
IntgerType型の最小桁数チェックを行う。
maxが0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value - 検査対象値min - 最小桁数boundary - 境界の情報を保持する値truefalsefalse
boolean isInRange(DecimalType value,
DecimalType min,
DecimalType max,
MathUtil.InRange range)
DecimalType型の範囲チェックを行う。
rangeの境界の情報は
最小値<=検査対象<=最大値
最小値<=検査対象<最大値
最小値<検査対象<=最大値
最小値<検査対象<最大値
rangeに不正な値が設定されていた場合、FinalunaSysExceptionをthrowする。
value - 検査対象値min - 最小値max - 最大値range - 境界の情報を保持する値truefalsefalsefalse
boolean maxLength(DecimalType value,
int integerMax,
int decimalMax,
MathUtil.Boundary boundary)
DecimalType型の最大桁数チェックを行う。
小数点を含みチェックする。 integerMaxまたはdecimalMaxが 0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value - 検査対象値integerMax - 整数部最大桁数decimalMax - 小数部最大桁数boundary - 境界の情報を保持する値truefalsefalse
boolean minLength(DecimalType value,
int integerMin,
int decimalMin,
MathUtil.Boundary boundary)
DecimalType型の最小桁数チェックを行う。
小数点を含みチェックする。 integerMin又はdecimalMinが0又は、 負の数の場合、FinalunaSysExceptionをthrowする。
value - 検査対象値integerMin - 整数部最小桁数decimalMin - 小数部最小桁数boundary - 境界の情報を保持する値truefalsefalse
boolean maxLength(DecimalType value,
int integerMax,
MathUtil.Boundary boundary)
DecimalType型の最大桁数チェックを行う。
整数部のみチェックする。 integerMaxが 0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value - 検査対象値integerMax - 整数部最大桁数boundary - 境界の情報を保持する値truefalsefalse
boolean minLength(DecimalType value,
int integerMin,
MathUtil.Boundary boundary)
DecimalType型の最小桁数チェックを行う。
整数部のみチェックする。 integerMinが0又は、 負の数の場合、FinalunaSysExceptionをthrowする。
value - 検査対象値integerMin - 整数部最小桁数boundary - 境界の情報を保持する値truefalsefalse
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||