public enum RestrictionType extends java.lang.Enum<RestrictionType>
Property.restrictions()
for more information, e.g. about their syntax).| Enum Constant and Description |
|---|
LENGTH
the length restriction
|
ONEOF
the one-of restriction
|
PATTERN
the pattern restriction
|
RANGE
the range restriction
|
| Modifier and Type | Method and Description |
|---|---|
static RestrictionType |
getTypeFor(java.lang.String token)
Returns the enum item for the given identifying token or
null if
the token in not recognised. |
java.lang.String |
token()
The token identifying the restriction type.
|
static RestrictionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RestrictionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictionType RANGE
public static final RestrictionType ONEOF
public static final RestrictionType PATTERN
public static final RestrictionType LENGTH
public static RestrictionType[] values()
for (RestrictionType c : RestrictionType.values()) System.out.println(c);
public static RestrictionType 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 java.lang.String token()
public static RestrictionType getTypeFor(java.lang.String token)
null if
the token in not recognised.token - the identifying token to be searched fornull if the
token in not recognised