Package de.jplag.options
Interface LanguageOption<T>
- Type Parameters:
T- The type of the options value
- All Known Implementing Classes:
DefaultLanguageOption
public interface LanguageOption<T>
A single language specific option.
-
Method Details
-
getType
OptionType<T> getType()- Returns:
- The type instance for the option.
-
getName
String getName()- Returns:
- The name of the option.
-
getNameAsUnixParameter
- Returns:
- The name as a unix parameter name. This should be "--" followed by the value of getName
-
getValue
T getValue()- Returns:
- The value of the option.
-
getDescription
String getDescription()- Returns:
- The description of the option.
-
setValue
Updates the options value.- Parameters:
value- The new value
-
hasValue
boolean hasValue()- Returns:
- True, if the option has a value right now. The actual value might still be null.
-