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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
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 typevoid
Set the value for this settingabstract void
setFromString
(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:Setting
Get the parameter type -
getInitValue
Description copied from interface:Setting
Get the initial value- Specified by:
getInitValue
in interfaceSetting<T>
- Returns:
- T
-
get
Description copied from interface:Setting
Get the current value for this setting -
set
Description copied from interface:Setting
Set 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:Setting
Clear setting -
getHelpShort
Get short description, small enough to fit on one console row- Specified by:
getHelpShort
in interfaceHelp
- Returns:
- help string
-
getHelpLong
Get long description- Specified by:
getHelpLong
in interfaceHelp
- Returns:
- string, can be multiple lines
-