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
-
-
Method Details
-
getType
-
getInitValue
Description copied from interface:Setting
Get the initial value- Specified by:
getInitValue
in interfaceSetting<T>
- Returns:
- T
-
get
-
set
-
setFromString
Set the value for this setting from a string- Parameters:
value
- string value- Throws:
IllegalArgumentException
-
getAsString
-
clear
-
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
-