Enum Class LogicalOperator

java.lang.Object
java.lang.Enum<LogicalOperator>
org.kuali.rice.krms.api.repository.LogicalOperator
All Implemented Interfaces:
Serializable, Comparable<LogicalOperator>, Constable, org.kuali.rice.core.api.mo.common.Coded

public enum LogicalOperator extends Enum<LogicalOperator> implements org.kuali.rice.core.api.mo.common.Coded
Enum for the representation of the Logical Operators AND OR
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Enum Constant Details

  • Field Details

    • OP_CODES

      public static final Collection<String> OP_CODES
      Collection<String> OP_CODES
    • OP_CODE_NAMES

      public static final Collection<String> OP_CODE_NAMES
      Collection<String> OP_CODE_NAMES
  • Method Details

    • values

      public static LogicalOperator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LogicalOperator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Specified by:
      getCode in interface org.kuali.rice.core.api.mo.common.Coded
    • fromCode

      public static LogicalOperator fromCode(String code)
      Create a LogicalOperator from the given code
      Parameters:
      code - used to type LogicalOperator
      Returns:
      LogicalOperator whose code is given
      Throws:
      IllegalArgumentException - if the code does not exist
    • toString

      public String toString()
      Overrides:
      toString in class Enum<LogicalOperator>