Package digilib.util

Class OptionsSet


  • public class OptionsSet
    extends Object
    Author:
    casties
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
        logger
      • optionSep

        protected String optionSep
        String separating options in a String.
    • Constructor Detail

      • OptionsSet

        public OptionsSet()
      • OptionsSet

        public OptionsSet​(String s)
        Constructor with String of options.
        Parameters:
        s - the options string
    • Method Detail

      • parseString

        public void parseString​(String s)
        Adds all options from String to Set.
        Parameters:
        s - the options string
      • setOption

        public boolean setOption​(DigilibOption opt)
        Set the option opt.
        Parameters:
        opt - the DigilibOption
        Returns:
        if changed
      • hasOption

        public boolean hasOption​(DigilibOption opt)
        Return if the option opt is set.
        Parameters:
        opt - the DigilibOption
        Returns:
        if option is set
      • setOptions

        public void setOptions​(EnumSet<DigilibOption> options)
        Parameters:
        options - the options to set
      • getOptionSep

        public String getOptionSep()
        Returns:
        the option separator
      • setOptionSep

        public void setOptionSep​(String optionSep)
        Parameters:
        optionSep - the option separator