com.izforge.izpack.panels.userinput.field.rule
Enum FieldSpec.Type
java.lang.Object
java.lang.Enum<FieldSpec.Type>
com.izforge.izpack.panels.userinput.field.rule.FieldSpec.Type
- All Implemented Interfaces:
- Serializable, Comparable<FieldSpec.Type>
- Enclosing class:
- FieldSpec
public static enum FieldSpec.Type
- extends Enum<FieldSpec.Type>
Field type.
|
Method Summary |
static FieldSpec.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FieldSpec.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NUMERIC
public static final FieldSpec.Type NUMERIC
ALPHA
public static final FieldSpec.Type ALPHA
ALPHANUMERIC
public static final FieldSpec.Type ALPHANUMERIC
HEX
public static final FieldSpec.Type HEX
OPEN
public static final FieldSpec.Type OPEN
values
public static FieldSpec.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FieldSpec.Type c : FieldSpec.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FieldSpec.Type valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2018. All rights reserved.