Enum Class PropositionType

java.lang.Object
java.lang.Enum<PropositionType>
org.kuali.rice.krms.api.repository.proposition.PropositionType
All Implemented Interfaces:
Serializable, Comparable<PropositionType>, Constable, Coded

public enum PropositionType extends Enum<PropositionType> implements Coded
Enumeration for PropositionTypes. SIMPLE or COMPOUND.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Enum Constant Details

  • Field Details

    • VALID_TYPE_CODES

      public static final Set<String> VALID_TYPE_CODES
      Set of valid type codes
  • Method Details

    • values

      public static PropositionType[] 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 PropositionType 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()
      Returns the operator code for this evaluation operator.
      Specified by:
      getCode in interface Coded
      Returns:
      the operatorCode
    • fromCode

      public static PropositionType fromCode(String code)
      Create a PropositionType for the given code
      Parameters:
      code - to type the PropositionType
      Returns:
      PropositionType of the given code
      Throws:
      IllegalArgumentException - if the given code does not exist