public abstract class AtomChecker extends ComponentChecker<MolAtom>
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
AtomChecker(StructureCheckerErrorType errorType)
Constructor to create a Structure checker instance with the given errorType.
|
Modifier and Type | Method and Description |
---|---|
protected StructureCheckerResult |
createResult(Molecule molecule,
List<MolAtom> atoms)
Creates a
StructureCheckerResult from a List containing the components. |
protected MolAtom |
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 molecule
|
check, check1, initialize
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 AtomChecker(StructureCheckerErrorType errorType)
errorType
- element of StructureCheckerErrorType
protected int getComponentCount(Molecule molecule)
ComponentChecker
getComponentCount
in class ComponentChecker<MolAtom>
molecule
- the molecule to checkprotected MolAtom getComponent(Molecule molecule, int i)
ComponentChecker
getComponent
in class ComponentChecker<MolAtom>
molecule
- the molecule to checki
- the index of the componentprotected StructureCheckerResult createResult(Molecule molecule, List<MolAtom> atoms)
ComponentChecker
StructureCheckerResult
from a List
containing the components.createResult
in class ComponentChecker<MolAtom>
molecule
- is a Molecule
instanceatoms
- is an instance of List
containing the problematic componentsStructureCheckerResult
containing all problematic component indices