public enum CheckRulesEnum extends Enum<CheckRulesEnum>
列挙型定数と説明 |
---|
ByteCheck
Checks if the field can safely be converted to a byte primitive.
|
CreditCardCheck
Checks if the field matches the regular expression in the field's mask attribute.
|
DateCheck
Checks if the field is a valid date.
|
DoubleCheck
Checks if the field can safely be converted to a double primitive.
|
DoubleRangeCheck
Checks if a fields value is within a range (min & max specified in the vars attribute).
|
EmailCheck
Checks if a field has a valid e-mail address.
|
FloatCheck
Checks if the field can safely be converted to a float primitive.
|
FloatRangeCheck
Checks if a fields value is within a range (min & max specified in the vars attribute).
|
IntegerCheck
Checks if the field can safely be converted to an int primitive.
|
IntRangeCheck
Checks if a fields value is within a range (min & max specified in the vars attribute).
|
LongCheck
Checks if the field can safely be converted to a long primitive.
|
MaskCheck
Checks if the field matches the regular expression in the field's mask attribute.
|
MaxLengthCheck
Checks if the field's length is less than or equal to the maximum value.
|
MinLengthCheck
Checks if the field's length is greater than or equal to the minimum value.
|
RequiredCheck
Checks if the field isn't null and length of the field is greater than zero not including whitespace.
|
RequiredIfCheck
Checks if the field isn't null based on the values of other fields.
|
ShortCheck
Checks if the field can safely be converted to a short primitive.
|
UrlCheck
Checks if a field has a valid url.
|
修飾子とタイプ | フィールドと説明 |
---|---|
private IValidator |
clz
バリデーションインスタンス.
|
修飾子とタイプ | メソッドと説明 |
---|---|
IValidator |
getInstance()
インスタンス化されているオブジェクトを返却します.
|
String |
getName()
インスタンス化されているオブジェクトのクラス名を返却します.
|
static CheckRulesEnum |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static CheckRulesEnum[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final CheckRulesEnum ByteCheck
ValidateByte
public static final CheckRulesEnum MaskCheck
ValidateMask
public static final CheckRulesEnum CreditCardCheck
ValidateCreditCard
public static final CheckRulesEnum DateCheck
SimpleDateFormat
. If the field has a datePatternStrict variable, that will be used to format
SimpleDateFormat
and the length will be checked so '2/12/1999' will not pass validation with the format
'MM/dd/yyyy' because the month isn't two digits. If no datePattern variable is specified, then the field gets the
DateFormat.SHORT format for the locale. The setLenient method is set to false
for all variations.ValidateDate
public static final CheckRulesEnum DoubleCheck
ValidateDouble
public static final CheckRulesEnum DoubleRangeCheck
ValidateDoubleRange
public static final CheckRulesEnum EmailCheck
ValidateEmail
public static final CheckRulesEnum FloatCheck
ValidateFloat
public static final CheckRulesEnum FloatRangeCheck
ValidateFloatRange
public static final CheckRulesEnum IntegerCheck
ValidateInteger
public static final CheckRulesEnum IntRangeCheck
ValidateIntRange
public static final CheckRulesEnum LongCheck
ValidateLong
public static final CheckRulesEnum MaxLengthCheck
Null
will be considered
an error.ValidateMaxLength
public static final CheckRulesEnum MinLengthCheck
Null
will be
considered an error.ValidateMinLength
public static final CheckRulesEnum RequiredCheck
ValidateRequired
public static final CheckRulesEnum RequiredIfCheck
ValidateRequiredIf
public static final CheckRulesEnum ShortCheck
ValidateShort
public static final CheckRulesEnum UrlCheck
ValidateUrl
private IValidator clz
public static CheckRulesEnum[] values()
for(CheckRulesEnum c: CheckRulesEnum.values()) System.out.println(c);
public static CheckRulesEnum valueOf(String name)
name返される列挙型定数の名前
- IllegalArgumentException指定された名前を持つ定数を
- この列挙型が持っていない場合NullPointerException引数がnullの場合
public IValidator getInstance()
public String getName()