Enum Condition
- java.lang.Object
-
- java.lang.Enum<Condition>
-
- com.biomatters.geneious.publicapi.documents.Condition
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROXIMATELY_EQUAL
Plus or or minus 0.5 for floating point numbersBEGINS_WITH
Search for an exact prefix.CONTAINS
Search for occurrence inside text.DATE_AFTER
Date is strictly later than.DATE_AFTER_OR_ON
Date is later than or on.DATE_BEFORE
Date is strictly prior to.DATE_BEFORE_OR_ON
Date is prior to or on.ENDS_WITH
Search for an exact suffix.EQUAL
Search for an exact match.GREATER_THAN
Greater than ">" (numerical)GREATER_THAN_OR_EQUAL_TO
Greater than or equal ">=" (numerical)IN_RANGE
Inside a range.LESS_THAN
Less than "<" (numerical)LESS_THAN_OR_EQUAL_TO
Less than or equal "<=" (numerical)NOT_CONTAINS
Exclude if occurs inside text.NOT_EQUAL
Anything but an exact match.STRING_LENGTH_GREATER_THAN
Length of text is greater than.STRING_LENGTH_LESS_THAN
Length of text is less than.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
name
Human readable name of condition.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Condition
fromName(java.lang.String niceName)
Get the condition back from name.int
numberOfArgs()
Returns the number of values associated with this condition.static Condition
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Condition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final Condition EQUAL
Search for an exact match.
-
NOT_EQUAL
public static final Condition NOT_EQUAL
Anything but an exact match.
-
APPROXIMATELY_EQUAL
public static final Condition APPROXIMATELY_EQUAL
Plus or or minus 0.5 for floating point numbers
-
CONTAINS
public static final Condition CONTAINS
Search for occurrence inside text.
-
NOT_CONTAINS
public static final Condition NOT_CONTAINS
Exclude if occurs inside text.
-
BEGINS_WITH
public static final Condition BEGINS_WITH
Search for an exact prefix.
-
ENDS_WITH
public static final Condition ENDS_WITH
Search for an exact suffix.
-
GREATER_THAN
public static final Condition GREATER_THAN
Greater than ">" (numerical)
-
GREATER_THAN_OR_EQUAL_TO
public static final Condition GREATER_THAN_OR_EQUAL_TO
Greater than or equal ">=" (numerical)
-
LESS_THAN
public static final Condition LESS_THAN
Less than "<" (numerical)
-
LESS_THAN_OR_EQUAL_TO
public static final Condition LESS_THAN_OR_EQUAL_TO
Less than or equal "<=" (numerical)
-
IN_RANGE
public static final Condition IN_RANGE
Inside a range. Any ordered type, such as numerical or date. What about strict/non strict spec JH?
-
STRING_LENGTH_GREATER_THAN
public static final Condition STRING_LENGTH_GREATER_THAN
Length of text is greater than.
-
STRING_LENGTH_LESS_THAN
public static final Condition STRING_LENGTH_LESS_THAN
Length of text is less than.
-
DATE_AFTER
public static final Condition DATE_AFTER
Date is strictly later than.
-
DATE_BEFORE
public static final Condition DATE_BEFORE
Date is strictly prior to.
-
DATE_AFTER_OR_ON
public static final Condition DATE_AFTER_OR_ON
Date is later than or on.
-
DATE_BEFORE_OR_ON
public static final Condition DATE_BEFORE_OR_ON
Date is prior to or on.
-
-
Method Detail
-
values
public static Condition[] 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 (Condition c : Condition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Condition valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
numberOfArgs
public int numberOfArgs()
Returns the number of values associated with this condition.- Returns:
- number of values
-
fromName
public static Condition fromName(java.lang.String niceName)
Get the condition back from name.- Parameters:
niceName
- the condition's name- Returns:
- the condition
-
-