|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
@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
- 境界の情報を保持する値true
false
false
false
boolean maxLength(IntegerType value, int max, MathUtil.Boundary boundary)
IntegerType型の最大桁数チェックを行う。
max
が0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値max
- 最大桁数boundary
- 境界の情報を保持する値true
false
false
boolean minLength(IntegerType value, int min, MathUtil.Boundary boundary)
IntgerType型の最小桁数チェックを行う。
max
が0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値min
- 最小桁数boundary
- 境界の情報を保持する値true
false
false
boolean isInRange(DecimalType value, DecimalType min, DecimalType max, MathUtil.InRange range)
DecimalType型の範囲チェックを行う。
range
の境界の情報は
最小値<=検査対象<=最大値 最小値<=検査対象<最大値 最小値<検査対象<=最大値 最小値<検査対象<最大値
range
に不正な値が設定されていた場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値min
- 最小値max
- 最大値range
- 境界の情報を保持する値true
false
false
false
boolean maxLength(DecimalType value, int integerMax, int decimalMax, MathUtil.Boundary boundary)
DecimalType型の最大桁数チェックを行う。
小数点を含みチェックする。 integerMax
またはdecimalMax
が 0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値integerMax
- 整数部最大桁数decimalMax
- 小数部最大桁数boundary
- 境界の情報を保持する値true
false
false
boolean minLength(DecimalType value, int integerMin, int decimalMin, MathUtil.Boundary boundary)
DecimalType型の最小桁数チェックを行う。
小数点を含みチェックする。 integerMin
又はdecimalMin
が0又は、 負の数の場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値integerMin
- 整数部最小桁数decimalMin
- 小数部最小桁数boundary
- 境界の情報を保持する値true
false
false
boolean maxLength(DecimalType value, int integerMax, MathUtil.Boundary boundary)
DecimalType型の最大桁数チェックを行う。
整数部のみチェックする。 integerMax
が 0又は、負の数の場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値integerMax
- 整数部最大桁数boundary
- 境界の情報を保持する値true
false
false
boolean minLength(DecimalType value, int integerMin, MathUtil.Boundary boundary)
DecimalType型の最小桁数チェックを行う。
整数部のみチェックする。 integerMin
が0又は、 負の数の場合、FinalunaSysExceptionをthrowする。
value
- 検査対象値integerMin
- 整数部最小桁数boundary
- 境界の情報を保持する値true
false
false
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |