public abstract class AtomChecker extends ComponentChecker<MolAtom>
errorType, propertyChangeSupportPROPERTY_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, initializeaddPropertyChangeListener, 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, toStringpublic AtomChecker(StructureCheckerErrorType errorType)
errorType - element of StructureCheckerErrorTypeprotected int getComponentCount(Molecule molecule)
ComponentCheckergetComponentCount in class ComponentChecker<MolAtom>molecule - the molecule to checkprotected MolAtom getComponent(Molecule molecule, int i)
ComponentCheckergetComponent in class ComponentChecker<MolAtom>molecule - the molecule to checki - the index of the componentprotected StructureCheckerResult createResult(Molecule molecule, List<MolAtom> atoms)
ComponentCheckerStructureCheckerResult 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