public abstract class ReactionChecker extends AbstractStructureChecker
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
ReactionChecker(StructureCheckerErrorType errorType,
StructureChecker checker)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected StructureCheckerResult |
check1(Molecule molecule)
This method contains the current checking mechanism.
|
protected StructureCheckerResult |
createResult(Molecule molecule,
List<StructureCheckerResult> resultList)
This method a merged StructureCheckerResult from the
List
of StructureCheckerResult which contains the problems of the components in
the reaction |
protected abstract boolean |
isCorrect(StructureCheckerResult result)
This method determines if a component of the reaction correct or not.
|
addPropertyChangeListener, addPropertyChangeListener, check, clone, cloneItem, convertResult, equals, expandMolecule, getDescription, getDescriptor, getEditorClassName, getErrorCode, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getName, hashCode, isAvailable, isLicensed, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setDescription, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage, toString
public ReactionChecker(StructureCheckerErrorType errorType, StructureChecker checker)
errorType
- the type of the error checked by the checkerchecker
- is a standard StructureChecker
which contains the checking
logic for the components of the reactionprotected StructureCheckerResult check1(Molecule molecule)
AbstractStructureChecker
check1
in class AbstractStructureChecker
molecule
- the Molecule
instance to be checked for problemsStructureCheckerResult
which represents the problem or null
if no problem foundprotected abstract boolean isCorrect(StructureCheckerResult result)
result
- is a StructureCheckerResult
returned by the checker logicprotected StructureCheckerResult createResult(Molecule molecule, List<StructureCheckerResult> resultList)
List
of StructureCheckerResult
which contains the problems of the components in
the reactionmolecule
- the Molecule
instance which contains the problemsresultList
- is a List
of StructureCheckerResult
which contains
the problems of the components in the reactionStructureCheckerResult
from the List
of StructureCheckerResult
represented by resultList parameter