Class ECtransOption<T>

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

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

    • ECtransOption

      protected 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

      protected 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
  • Method Details

    • getParameter

      protected String getParameter()
      Gets the parameter.
      Returns:
      the parameter
    • getGroup

      protected ECtransGroups getGroup()
      Gets the group.
      Returns:
      the group
    • getModule

      protected String getModule()
      Gets the module.
      Returns:
      the module
    • getName

      protected String getName()
      Gets the name.
      Returns:
      the name
    • getTips

      protected String getTips()
      Gets the tips.
      Returns:
      the tips
    • getClazz

      protected Class<T> getClazz()
      Gets the clazz.
      Returns:
      the clazz
    • getComment

      protected String getComment(boolean detailed)
      Gets the comment.
      Parameters:
      detailed - the detailed
      Returns:
      the comment
    • getDefaultValue

      protected T getDefaultValue()
      Gets the default value.
      Returns:
      the default value
    • getDefaultValues

      protected List<T> getDefaultValues()
      Gets the default values.
      Returns:
      the default values
    • getChoices

      protected List<T> getChoices()
      Gets the choices.
      Returns:
      the choices
    • getSubOptions

      protected List<SubOption> getSubOptions()
      Gets the known nested key=value entries expected inside this option's value, if any.
      Returns:
      the sub options, or an empty list if not applicable
    • hasFreeFormSubOptions

      protected boolean hasFreeFormSubOptions()
      Checks if this option's value holds arbitrary/free-form nested key=value entries (e.g. HTTP headers) rather than a fixed/known set described by getSubOptions().
      Returns:
      true, if the nested entries are free-form
    • isVisible

      protected boolean isVisible()
      Checks if is visible.
      Returns:
      true, if is visible
    • isSecured

      protected boolean isSecured()
      Checks if is secured.
      Returns:
      true, if is secured