Class ECtransOption<T>
java.lang.Object
ecmwf.common.ectrans.ECtransOption<T>
- Type Parameters:
T- the generic type
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedECtransOption(ECtransGroups group, String module, String name, Class<T> clazz, List<T> defaultValues, List<T> choices) Instantiates a new ectrans option.protectedECtransOption(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 byOptions), if any. -
Method Summary
Modifier and TypeMethodDescriptionGets the choices.getClazz()Gets the clazz.protected StringgetComment(boolean detailed) Gets the comment.protected TGets the default value.Gets the default values.protected ECtransGroupsgetGroup()Gets the group.protected StringGets the module.protected StringgetName()Gets the name.protected StringGets the parameter.Gets the known nested key=value entries expected inside this option's value, if any.protected StringgetTips()Gets the tips.protected booleanChecks if this option's value holds arbitrary/free-form nested key=value entries (e.g.protected booleanChecks if is secured.protected booleanChecks if is visible.
-
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 groupmodule- the modulename- the nameclazz- the clazzdefaultValues- the default valueschoices- 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 byOptions), if any.- Parameters:
group- the groupmodule- the modulename- the nameclazz- the clazzdefaultValues- the default valueschoices- the choicessubOptions- the known nested key=value entries, or an empty list if not applicablefreeFormSubOptions- 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
-
getGroup
-
getModule
-
getName
-
getTips
-
getClazz
-
getComment
Gets the comment.- Parameters:
detailed- the detailed- Returns:
- the comment
-
getDefaultValue
-
getDefaultValues
-
getChoices
-
getSubOptions
-
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 bygetSubOptions().- 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
-