Package de.jplag.options
Class LanguageOptions
java.lang.Object
de.jplag.options.LanguageOptions
Container for a languages options. Should be implemented per language.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> LanguageOption<T> createDefaultOption(OptionType<T> type, String name, String description, T defaultValue) Creates a new option with default value.protected <T> LanguageOption<T> createDefaultOption(OptionType<T> type, String name, T defaultValue) Creates a new option with default value and empty description.protected <T> LanguageOption<T> createOption(OptionType<T> type, String name) Creates a new option with empty descriptionprotected <T> LanguageOption<T> createOption(OptionType<T> type, String name, String description) Creates a new optionList<LanguageOption<?>>
-
Field Details
-
EMPTY_OPTIONS
-
-
Constructor Details
-
LanguageOptions
protected LanguageOptions()New instance
-
-
Method Details
-
createDefaultOption
protected <T> LanguageOption<T> createDefaultOption(OptionType<T> type, String name, String description, T defaultValue) Creates a new option with default value.- Type Parameters:
T- The java type- Parameters:
type- The typename- The namedescription- the descriptiondefaultValue- The default value- Returns:
- The new option
-
createDefaultOption
protected <T> LanguageOption<T> createDefaultOption(OptionType<T> type, String name, T defaultValue) Creates a new option with default value and empty description.- Type Parameters:
T- The java type- Parameters:
type- The typename- The namedefaultValue- The default value- Returns:
- The new option
-
createOption
Creates a new option- Type Parameters:
T- The java type- Parameters:
type- The typename- The namedescription- The description- Returns:
- The new option
-
createOption
Creates a new option with empty description- Type Parameters:
T- The java type- Parameters:
type- The typename- The name- Returns:
- The new option
-
getOptionsAsList
- Returns:
- The list of all options
-