Class OptionIOSetting

  • All Implemented Interfaces:
    ISetting

    public class OptionIOSetting
    extends IOSetting
    An class for a reader setting which must be found in the list of possible settings.
    Author:
    Egon Willighagen <egonw@sci.kun.nl>
    Source code:
    main
    Belongs to CDK module:
    io
    • Constructor Detail

      • OptionIOSetting

        public OptionIOSetting​(String name,
                               IOSetting.Importance level,
                               String question,
                               List<String> settings,
                               String defaultSetting)
        OptionIOSetting is IOSetting for which the value must be in the list of possible options.
    • Method Detail

      • setSetting

        public void setSetting​(int setting)
                        throws CDKException
        Sets the setting for a certain question. It will throw a CDKException when the setting is not valid. The first setting is setting 1.
        Throws:
        CDKException
      • getOptions

        public List<String> getOptions()
        Returns a Vector of Strings containing all possible options.