public abstract class BondChecker extends ComponentChecker<MolBond>
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
BondChecker(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<MolBond> bonds)
Creates a
StructureCheckerResult from a List 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 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 BondChecker(StructureCheckerErrorType errorType)
errorType
- element of StructureCheckerErrorType
protected int getComponentCount(Molecule molecule)
ComponentChecker
getComponentCount
in class ComponentChecker<MolBond>
molecule
- the molecule to checkprotected MolBond getComponent(Molecule molecule, int i)
ComponentChecker
getComponent
in class ComponentChecker<MolBond>
molecule
- the molecule to checki
- the index of the componentprotected StructureCheckerResult createResult(Molecule molecule, List<MolBond> bonds)
ComponentChecker
StructureCheckerResult
from a List
containing the components.createResult
in class ComponentChecker<MolBond>
molecule
- is a Molecule
instancebonds
- is an instance of List
containing the problematic componentsStructureCheckerResult
containing all problematic component indices