|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SyntaxArgType.VALUE_RULE>
edu.mit.jverbnet.data.syntax.SyntaxArgType.VALUE_RULE
public static enum SyntaxArgType.VALUE_RULE
Checks that the value meets the expectations of the type.
Enum Constant Summary | |
---|---|
OPTIONAL
The value may be anything. |
|
PROHIBITED
The value must be null . |
|
REQUIRED
The value must not be null , empty, or blank. |
Method Summary | |
---|---|
abstract java.lang.String |
checkValue(java.lang.String value)
Checks that the string value meets the condition. |
static SyntaxArgType.VALUE_RULE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SyntaxArgType.VALUE_RULE[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SyntaxArgType.VALUE_RULE PROHIBITED
null
.
public static final SyntaxArgType.VALUE_RULE OPTIONAL
public static final SyntaxArgType.VALUE_RULE REQUIRED
null
, empty, or blank.
Method Detail |
---|
public static SyntaxArgType.VALUE_RULE[] values()
for (SyntaxArgType.VALUE_RULE c : SyntaxArgType.VALUE_RULE.values()) System.out.println(c);
public static SyntaxArgType.VALUE_RULE 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 name
java.lang.NullPointerException
- if the argument is nullpublic abstract java.lang.String checkValue(java.lang.String value)
value
- the value to be checked
null
, or the trimmed
value
java.lang.Exception
- if the value does not meet the condition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |