Package org.sqlproc.engine.impl
Enum SqlProcessor.FilterStatus
- java.lang.Object
-
- java.lang.Enum<SqlProcessor.FilterStatus>
-
- org.sqlproc.engine.impl.SqlProcessor.FilterStatus
-
- All Implemented Interfaces:
Serializable,Comparable<SqlProcessor.FilterStatus>
- Enclosing class:
- SqlProcessor
static enum SqlProcessor.FilterStatus extends Enum<SqlProcessor.FilterStatus>
This status is the result of the filters processing, based on the next rules:
in the case there are no filters
- there are activeFilters, the artifact is dead - NOK
- otherwise the artifact is ok - OK
in the case there are filters
- there are no activeFilters, the artifact is ok, but lower priority - OK_LOWER
- there are activeFilters, and the intersection is not empty, the artifact is ok - OK
- there are activeFilters, and the intersection is empty, the artifact is dead - NOK
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFilterStatus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlProcessor.FilterStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static SqlProcessor.FilterStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOK
public static final SqlProcessor.FilterStatus NOK
The related artifact won't be used
-
OK_LOWER
public static final SqlProcessor.FilterStatus OK_LOWER
The related artifact will be used, but with lower priority
-
OK
public static final SqlProcessor.FilterStatus OK
The related artifact will be used
-
-
Method Detail
-
values
public static SqlProcessor.FilterStatus[] 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 (SqlProcessor.FilterStatus c : SqlProcessor.FilterStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlProcessor.FilterStatus 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 nameNullPointerException- if the argument is null
-
-