Class OptionIOSetting

java.lang.Object
org.openscience.cdk.io.setting.IOSetting
org.openscience.cdk.io.setting.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 Details

    • 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 Details

    • setSetting

      public void setSetting(String setting) throws CDKException
      Sets the setting for a certain question. It will throw a CDKException when the setting is not valid.
      Overrides:
      setSetting in class IOSetting
      Throws:
      CDKException
    • 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.