Package chemaxon.checkers
Class BondChecker
- All Implemented Interfaces:
StructureChecker
,chemaxon.license.Licensable
,PropertyChangeListener
,Cloneable
,EventListener
- Direct Known Subclasses:
BondTopologyChecker
,CrossedDoubleBondChecker
,OverlappingBondsChecker
,QueryBondChecker
,ReactingCenterBondMarkChecker
,StraightDoubleBondChecker
Descentants of the abstract BondChecker class detect bond related problems.
- Since:
- Marvin 5.3
-
Field Summary
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
-
Constructor Summary
ModifierConstructorDescriptionprotected
BondChecker
(StructureCheckerErrorType errorType) Constructor to create a Structure checker instance with the given errorType. -
Method Summary
Modifier and TypeMethodDescriptionprotected StructureCheckerResult
createResult
(Molecule molecule, List<MolBond> bonds) Creates aStructureCheckerResult
from aList
containing the components.protected MolBond
getComponent
(Molecule molecule, int i) Gets the component from the molecule with index i.protected int
getComponentCount
(Molecule molecule) Gets the number of the components in the moleculeMethods inherited from class chemaxon.checkers.ComponentChecker
check, check1, initialize
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
-
Constructor Details
-
BondChecker
Constructor to create a Structure checker instance with the given errorType.- Parameters:
errorType
- element ofStructureCheckerErrorType
-
-
Method Details
-
getComponentCount
Description copied from class:ComponentChecker
Gets the number of the components in the molecule- Specified by:
getComponentCount
in classComponentChecker<MolBond>
- Parameters:
molecule
- the molecule to check- Returns:
- the number of the components in the molecule
-
getComponent
Description copied from class:ComponentChecker
Gets the component from the molecule with index i.- Specified by:
getComponent
in classComponentChecker<MolBond>
- Parameters:
molecule
- the molecule to checki
- the index of the component- Returns:
- the component
-
createResult
Description copied from class:ComponentChecker
Creates aStructureCheckerResult
from aList
containing the components.- Specified by:
createResult
in classComponentChecker<MolBond>
- Parameters:
molecule
- is aMolecule
instancebonds
- is an instance ofList
containing the problematic components- Returns:
- a
StructureCheckerResult
containing all problematic component indices
-