Class IOSetting
java.lang.Object
org.openscience.cdk.io.setting.IOSetting
- All Implemented Interfaces:
ISetting
- Direct Known Subclasses:
BooleanIOSetting, IntegerIOSetting, OptionIOSetting, StringIOSetting
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIOSetting(String name, IOSetting.Importance level, String question, String defaultSetting) The default constructor that sets this field. -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()getName()Access the name of the setting.Sets the setting for a certain question.voidsetSetting(String setting) Sets the setting for a certain question.
-
Field Details
-
level
-
name
-
question
-
setting
-
-
Constructor Details
-
IOSetting
The default constructor that sets this field. All textual information is supposed to be English. Localization is taken care off by the ReaderConfigurator.- Parameters:
name- Name of the settinglevel- Level at which question is askedquestion- Question that is popped to the user when the ReaderSetting needs settingdefaultSetting- The default setting, used if not overwritten by a user
-
-
Method Details
-
getName
-
getQuestion
-
getDefaultSetting
-
getLevel
-
setSetting
Sets the setting for a certain question. It will throw a CDKException when the setting is not valid.- Throws:
CDKException
-
getSetting
Sets the setting for a certain question. It will throw a CDKException when the setting is not valid.
-