Package digilib.util
Class OptionsSet
java.lang.Object
digilib.util.OptionsSet
- Author:
- casties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasOption
(DigilibOption opt) Return if the option opt is set.void
Adds all options from String to Set.boolean
setOption
(DigilibOption opt) Set the option opt.void
setOptions
(EnumSet<DigilibOption> options) void
setOptionSep
(String optionSep) toString()
-
Field Details
-
logger
protected static final org.slf4j.Logger loggerlogger -
optionSep
String separating options in a String.
-
-
Constructor Details
-
OptionsSet
public OptionsSet() -
OptionsSet
Constructor with String of options.- Parameters:
s
- the options string
-
-
Method Details
-
parseString
Adds all options from String to Set.- Parameters:
s
- the options string
-
setOption
Set the option opt.- Parameters:
opt
- the DigilibOption- Returns:
- if changed
-
hasOption
Return if the option opt is set.- Parameters:
opt
- the DigilibOption- Returns:
- if option is set
-
toString
-
getOptions
- Returns:
- the options
-
setOptions
- Parameters:
options
- the options to set
-
getOptionSep
- Returns:
- the option separator
-
setOptionSep
- Parameters:
optionSep
- the option separator
-