Class ECtransOption<T>

java.lang.Object
ecmwf.common.ectrans.ECtransOption<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
ECtransOptionDefinition

public class ECtransOption<T> extends Object implements ECtransOptionDefinition
The Class ECtransOption.
Author:
root
  • Constructor Details

    • ECtransOption

      public ECtransOption(ECtransGroups group, String module, String name, Class<T> clazz, List<T> defaultValues, List<T> choices)
      Instantiates a new ectrans option.
      Parameters:
      group - the group
      module - the module
      name - the name
      clazz - the clazz
      defaultValues - the default values
      choices - the choices
    • ECtransOption

      public ECtransOption(ECtransGroups group, String module, String name, Class<T> clazz, List<T> defaultValues, List<T> choices, List<SubOption> subOptions, boolean freeFormSubOptions)
      Instantiates a new ectrans option, additionally describing the nested key=value entries expected inside its value (as parsed by Options), if any.
      Parameters:
      group - the group
      module - the module
      name - the name
      clazz - the clazz
      defaultValues - the default values
      choices - the choices
      subOptions - the known nested key=value entries, or an empty list if not applicable
      freeFormSubOptions - true if the value holds arbitrary/free-form nested key=value entries (e.g. HTTP headers) rather than a fixed/known set
    • ECtransOption

      public ECtransOption(ECtransGroups group, String module, String name, Class<T> clazz, List<T> defaultValues, List<T> choices, List<SubOption> subOptions, boolean freeFormSubOptions, Properties metadata)
      Builds an option using extension-owned help, visibility and redaction metadata. Metadata keys use the same parameter.tips/visible/secured format as built-in options.
  • Method Details