Interface StandardizerConfigurationReader
- All Known Implementing Classes:
StandardizerActionStringReader
,StandardizerXMLReader
This interface is provided for classes which can read the configuration of
Configuration error
There are 2 kinds of configuration errors for execution configuration.
In the second case the particular standardizer action contains information on the error. If an error like this occurred, the
StandardizerActionRunner
Configuration error
There are 2 kinds of configuration errors for execution configuration.
- the configuration contain unrecognized standardizer actions
- the recognized standardizer action has unrecognized, or invalid parameters
InvalidStandardizerAction
containing
the text representation of the error. Exceptions should not be thrown, so all
errors can be found in the configuration. This way, partially correct
configurations can be executed on the target molecules.In the second case the particular standardizer action contains information on the error. If an error like this occurred, the
StandardizerAction.isValid()
function should return false.- Since:
- 5.11
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the configuration defined by the pre-set configuration file.void
Sets the base path of the configuration.
-
Field Details
-
USER_STANDARDIZERS_CONFIG_PATH
path to user-defined standardizer action configuration list -
DEFAULT_STANDARDIZERS_CONFIG_PATH
path to default standardizer action configuration list- See Also:
-
-
Method Details
-
getConfiguration
StandardizerConfiguration getConfiguration()Gets the configuration defined by the pre-set configuration file.- Returns:
- the
StandardizerConfiguration
instance which can be run by aStandardizerActionRunner
instance
-
setPath
Sets the base path of the configuration. External references within the configuration file mist be based on the path set with this method.- Parameters:
path
- the base path of the configuration
-