org.sqlproc.engine.impl
Enum SqlProcessor.FilterStatus

java.lang.Object
  extended by java.lang.Enum<SqlProcessor.FilterStatus>
      extended by 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


Enum Constant Summary
NOK
          The related artifact won't be used
OK
          The related artifact will be used
OK_LOWER
          The related artifact will be used, but with lower priority
 
Method Summary
static SqlProcessor.FilterStatus valueOf(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.
 
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

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 name
NullPointerException - if the argument is null


Copyright © 2015. All rights reserved.