Options

Options = Option [ , Option ] [ , Option ]

This key can be used to define various additional options for generation of an enum.

Entry in an LFET.Project.ini-file:
ide.Java.InterfaceEnum.1: Symbol=DoubleList; Options=AllValues, MinMax; IncludeTagsTitle = Runtimes
Entry in an LFET.Project.yaml-file:
ide.Java:
  InterfaceEnum:
    1:
      Symbol: DoubleList
      Options:
        - AllValues
        - MinMax
      IncludeTagsTitle: Transit Times

AllValues

In the case of conditions no enum is created by default for the last value, the so-called 'else value' since an ELSE branch is always generated for this value.

If all values of a condition are required in the application, e.g. to create a selection list with all values of the condition, this option enables you to achieve this.

MinMax

  • Only relevant if also numbers, number ranges or intervals are extracted for this enum

  • Available for the following languages: Java and JavaScript

This option is used to add enum methods that deliver the smallest and largest value of all extracted numerical values.

SetRuleGroup

In some cases it is important for the application to “know” in which rule groups the processing is currently located or when there will be a switch to a rule group.

The key InterfaceRuleGroups = iface is used for adding a special method to the interface that is always retrieved whenever there is a switch to a rule group. Using the enum option 'Set­Rule­Group' the enum is passed over to the method as a parameter whereby individually configurable information can be transmitted.