Class ConsoleSetting<T>
java.lang.Object
org.eclipse.rdf4j.console.setting.ConsoleSetting<T>
- Type Parameters:
T-
- Direct Known Subclasses:
ConsoleWidth,LogLevel,Prefixes,QueryPrefix,SaveHistory,ShowPrefix,WorkDir
Abstract setting
- Author:
- Bart Hanssens
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear settingget()Get the current value for this settingGet the value for this setting as a stringGet long descriptionGet short description, small enough to fit on one console rowGet the initial valuegetType()Get the parameter typevoidSet the value for this settingabstract voidsetFromString(String value) Set the value for this setting from a string
-
Constructor Details
-
ConsoleSetting
Constructor- Parameters:
initValue- initial value
-
-
Method Details
-
getType
Description copied from interface:SettingGet the parameter type -
getInitValue
Description copied from interface:SettingGet the initial value- Specified by:
getInitValuein interfaceSetting<T>- Returns:
- T
-
get
Description copied from interface:SettingGet the current value for this setting -
set
Description copied from interface:SettingSet the value for this setting -
setFromString
Set the value for this setting from a string- Parameters:
value- string value- Throws:
IllegalArgumentException
-
getAsString
Get the value for this setting as a string- Returns:
- string value
-
clear
public void clear()Description copied from interface:SettingClear setting -
getHelpShort
Get short description, small enough to fit on one console row- Specified by:
getHelpShortin interfaceHelp- Returns:
- help string
-
getHelpLong
Get long description- Specified by:
getHelpLongin interfaceHelp- Returns:
- string, can be multiple lines
-