Package chemaxon.checkers
Class AtomChecker
- All Implemented Interfaces:
StructureChecker,chemaxon.license.Licensable,PropertyChangeListener,Cloneable,EventListener
- Direct Known Subclasses:
AliasChecker,AtomMapChecker,AtomQueryPropertyChecker,AtomTypeChecker,AtomValueChecker,ExplicitLonePairChecker,IsotopeChecker,MissingAtomMapChecker,MultiCenterChecker,OverlappingAtomsChecker,PseudoAtomChecker,QueryAtomChecker,RacemateChecker,RadicalChecker,StarAtomChecker,StereoInversionRetentionMarkChecker,ThreeDimensionChecker,ValencePropertyChecker
Descendants of the abstract AtomChecker class check every atom for a specific error or property.
- Since:
- Marvin 5.3
-
Field Summary
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupportFields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAtomChecker(StructureCheckerErrorType errorType) Constructor to create a Structure checker instance with the given errorType. -
Method Summary
Modifier and TypeMethodDescriptionprotected StructureCheckerResultcreateResult(Molecule molecule, List<MolAtom> atoms) Creates aStructureCheckerResultfrom aListcontaining the components.protected MolAtomgetComponent(Molecule molecule, int i) Gets the component from the molecule with index i.protected intgetComponentCount(Molecule molecule) Gets the number of the components in the moleculeMethods inherited from class chemaxon.checkers.ComponentChecker
check, check1, initializeMethods 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
-
AtomChecker
Constructor to create a Structure checker instance with the given errorType.- Parameters:
errorType- element ofStructureCheckerErrorType
-
-
Method Details
-
getComponentCount
Description copied from class:ComponentCheckerGets the number of the components in the molecule- Specified by:
getComponentCountin classComponentChecker<MolAtom>- Parameters:
molecule- the molecule to check- Returns:
- the number of the components in the molecule
-
getComponent
Description copied from class:ComponentCheckerGets the component from the molecule with index i.- Specified by:
getComponentin classComponentChecker<MolAtom>- Parameters:
molecule- the molecule to checki- the index of the component- Returns:
- the component
-
createResult
Description copied from class:ComponentCheckerCreates aStructureCheckerResultfrom aListcontaining the components.- Specified by:
createResultin classComponentChecker<MolAtom>- Parameters:
molecule- is aMoleculeinstanceatoms- is an instance ofListcontaining the problematic components- Returns:
- a
StructureCheckerResultcontaining all problematic component indices
-