Package digilib.util
Class OptionsSet
java.lang.Object
digilib.util.OptionsSet
- Author:
- casties
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasOption(DigilibOption opt) Return if the option opt is set.voidAdds all options from String to Set.booleansetOption(DigilibOption opt) Set the option opt.voidsetOptions(EnumSet<DigilibOption> options) voidsetOptionSep(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
-