public enum ValueConditionKind extends Enum<ValueConditionKind>
Enum Constant and Description |
---|
ANY
Always accepts.
|
CONTAIN
Accepts if expected data appears in the actual data.
|
EQUAL
Accepts if matched.
|
EXPRESSION
Accepts if the user defined rule recognize the actual data.
|
KEY
Used as comparing key.
|
NOW
Accepts if actual date/time is between the test started time and its finished time.
|
TODAY
Accepts if actual date/time is between the test started date and its finished date.
|
Modifier and Type | Method and Description |
---|---|
static ValueConditionKind |
fromOption(String text)
Returns a constant of this enum from the corresponded textual representation.
|
String |
getExpectedType()
Returns a description of expected type of this predicate.
|
static String[] |
getOptions()
Returns options as text.
|
String |
getText()
Returns a textual representation of this kind.
|
String |
getTitle()
Returns a title of this kind.
|
static ValueConditionKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueConditionKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueConditionKind ANY
public static final ValueConditionKind KEY
public static final ValueConditionKind EQUAL
public static final ValueConditionKind CONTAIN
public static final ValueConditionKind TODAY
public static final ValueConditionKind NOW
public static final ValueConditionKind EXPRESSION
public static ValueConditionKind[] values()
for (ValueConditionKind c : ValueConditionKind.values()) System.out.println(c);
public static ValueConditionKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getTitle()
public String getText()
public static ValueConditionKind fromOption(String text)
text
- a textual representationnull
if does not existIllegalArgumentException
- if some parameters were null
public String getExpectedType()
public static String[] getOptions()
IllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.