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
ValidateBytepublic static final CheckRulesEnum MaskCheck
ValidateMaskpublic static final CheckRulesEnum CreditCardCheck
ValidateCreditCardpublic 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.ValidateDatepublic static final CheckRulesEnum DoubleCheck
ValidateDoublepublic static final CheckRulesEnum DoubleRangeCheck
ValidateDoubleRangepublic static final CheckRulesEnum EmailCheck
ValidateEmailpublic static final CheckRulesEnum FloatCheck
ValidateFloatpublic static final CheckRulesEnum FloatRangeCheck
ValidateFloatRangepublic static final CheckRulesEnum IntegerCheck
ValidateIntegerpublic static final CheckRulesEnum IntRangeCheck
ValidateIntRangepublic static final CheckRulesEnum LongCheck
ValidateLongpublic static final CheckRulesEnum MaxLengthCheck
Null will be considered
an error.ValidateMaxLengthpublic static final CheckRulesEnum MinLengthCheck
Null will be
considered an error.ValidateMinLengthpublic static final CheckRulesEnum RequiredCheck
ValidateRequiredpublic static final CheckRulesEnum RequiredIfCheck
ValidateRequiredIfpublic static final CheckRulesEnum ShortCheck
ValidateShortpublic static final CheckRulesEnum UrlCheck
ValidateUrlprivate 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()