public static enum TypeRule.FieldType extends java.lang.Enum<TypeRule.FieldType>
| Enum Constant and Description |
|---|
Cpf |
CreditCard |
Email |
None |
Url |
Username |
| Modifier and Type | Field and Description |
|---|---|
int |
errorMessageId |
| Modifier and Type | Method and Description |
|---|---|
TypeRule |
instantiate(android.widget.TextView view,
java.lang.String errorMessage) |
static TypeRule.FieldType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeRule.FieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeRule.FieldType Cpf
public static final TypeRule.FieldType Username
public static final TypeRule.FieldType Email
public static final TypeRule.FieldType Url
public static final TypeRule.FieldType CreditCard
public static final TypeRule.FieldType None
public static TypeRule.FieldType[] values()
for (TypeRule.FieldType c : TypeRule.FieldType.values()) System.out.println(c);
public static TypeRule.FieldType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic TypeRule instantiate(android.widget.TextView view, java.lang.String errorMessage) throws java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
java.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.InstantiationException