Package org.openscience.cdk.io.setting
Class OptionIOSetting
- java.lang.Object
-
- org.openscience.cdk.io.setting.IOSetting
-
- org.openscience.cdk.io.setting.OptionIOSetting
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openscience.cdk.io.setting.IOSetting
IOSetting.Importance
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getOptions()
Returns a Vector of Strings containing all possible options.void
setSetting(int setting)
Sets the setting for a certain question.void
setSetting(String setting)
Sets the setting for a certain question.-
Methods inherited from class org.openscience.cdk.io.setting.IOSetting
getDefaultSetting, getLevel, getName, getQuestion, getSetting
-
-
-
-
Method Detail
-
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 classIOSetting
- 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
-
-