Enum Class RuleSource.Type

java.lang.Object
java.lang.Enum<RuleSource.Type>
ch.tocco.nice2.optional.drools.api.RuleSource.Type
All Implemented Interfaces:
Serializable, Comparable<RuleSource.Type>, Constable
Enclosing interface:
RuleSource

public static enum RuleSource.Type extends Enum<RuleSource.Type>
We make our own type enumeration because we don't support all types Drools supports.
  • Enum Constant Details

    • DRL

      public static final RuleSource.Type DRL
      Resource type for DRL files.
  • Method Details

    • values

      public static RuleSource.Type[] 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 RuleSource.Type 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
    • droolsType

      public org.kie.api.io.ResourceType droolsType()
      Returns the matching Drools `ResourceType`.
      Returns:
      The matching Drools `ResourceType`.