org.kuali.rice.coreservice.api.parameter
Enum EvaluationOperator

java.lang.Object
  extended by java.lang.Enum<EvaluationOperator>
      extended by org.kuali.rice.coreservice.api.parameter.EvaluationOperator
All Implemented Interfaces:
Serializable, Comparable<EvaluationOperator>, Coded

public enum EvaluationOperator
extends Enum<EvaluationOperator>
implements Coded

Defines the possible evaluation operators that can be supported on system parameters.


Enum Constant Summary
ALLOW
          Indicates that evaluation will determine if the value being tested in present in the set of values defined on the parameter.
DISALLOW
          Indicates that evaluation will determine if the value being tested is absent from the set of values defined on the parameter.
 
Method Summary
static EvaluationOperator fromCode(String code)
           
 String getCode()
          Returns the operator code for this evaluation operator.
static EvaluationOperator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EvaluationOperator[] 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

ALLOW

public static final EvaluationOperator ALLOW
Indicates that evaluation will determine if the value being tested in present in the set of values defined on the parameter. If it is present in this set, then evaluation will succeed.


DISALLOW

public static final EvaluationOperator DISALLOW
Indicates that evaluation will determine if the value being tested is absent from the set of values defined on the parameter. If it is absent from this set, then the evaluation will succeed.

Method Detail

values

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

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

valueOf

public static EvaluationOperator 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

getCode

public String getCode()
Returns the operator code for this evaluation operator.

Specified by:
getCode in interface Coded
Returns:
the code

fromCode

public static EvaluationOperator fromCode(String code)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.