org.javasimon.callback
Enum FilterRule.Type

java.lang.Object
  extended by java.lang.Enum<FilterRule.Type>
      extended by org.javasimon.callback.FilterRule.Type
All Implemented Interfaces:
Serializable, Comparable<FilterRule.Type>
Enclosing class:
FilterRule

public static enum FilterRule.Type
extends Enum<FilterRule.Type>

Enumeration of rule types that determines the evaluation of mutliple rules in a chain.


Enum Constant Summary
MUST
          Rule must pass and next rule is consulted.
MUST_NOT
          Rule must not pass.
SUFFICE
          If the rule passes the whole filter passes and no other rule is consulted.
 
Method Summary
static FilterRule.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FilterRule.Type[] 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

MUST

public static final FilterRule.Type MUST
Rule must pass and next rule is consulted.


SUFFICE

public static final FilterRule.Type SUFFICE
If the rule passes the whole filter passes and no other rule is consulted. If the rule doesn't pass next rule is consulted.


MUST_NOT

public static final FilterRule.Type MUST_NOT
Rule must not pass. If the rule passes the whole filter doesn't pass. If it fails next rule is checked.

Method Detail

values

public static FilterRule.Type[] 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 (FilterRule.Type c : FilterRule.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FilterRule.Type 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 © 2013. All Rights Reserved.