chemaxon.checkers
Class ReactionMapErrorChecker

java.lang.Object
  extended by chemaxon.checkers.AbstractStructureChecker
      extended by chemaxon.checkers.ReactionChecker
          extended by chemaxon.checkers.ReactionMapErrorChecker
All Implemented Interfaces:
StructureChecker, chemaxon.license.Licensable, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class ReactionMapErrorChecker
extends ReactionChecker

A descendant of ReactionChecker detecting reactions with invalid mapping.

Reaction components should contain at least two mapped atoms, otherwise they are considered incorrectly mapped.

Since:
Marvin 5.3
Version:
5.7
Author:
Attila Szabo

Field Summary
 
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
 
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
 
Constructor Summary
ReactionMapErrorChecker()
          Default constructor
 
Method Summary
protected  boolean isCorrect(StructureCheckerResult result)
          This method determines if a component of the reaction correct or not.
 
Methods inherited from class chemaxon.checkers.ReactionChecker
check1, createResult
 
Methods inherited from class chemaxon.checkers.AbstractStructureChecker
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
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReactionMapErrorChecker

public ReactionMapErrorChecker()
Default constructor

Method Detail

isCorrect

protected boolean isCorrect(StructureCheckerResult result)
Description copied from class: ReactionChecker
This method determines if a component of the reaction correct or not. Override it in descendants to define the criteria which should be fulfilled by the components.

Specified by:
isCorrect in class ReactionChecker
Parameters:
result - is a StructureCheckerResult returned by the checker logic
Returns:
true if the reaction component is correct false otherwise