public class AtomTypeChecker extends AtomChecker
AtomChecker checking different atom types (represented by atom's
symbol) in the molecule.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_KEY_TYPES
Types property
|
protected List<String> |
types
|
errorType, propertyChangeSupportPROPERTY_KEY_VALID| Modifier | Constructor and Description |
|---|---|
|
AtomTypeChecker()
Default constructor.
|
|
AtomTypeChecker(Map<String,String> params)
Parameterized constructor.
|
protected |
AtomTypeChecker(StructureCheckerErrorType type)
Parameterized constructor providing the possibility for descendants to initialize
with their own error type.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(Molecule molecule,
MolAtom component)
Checks if the component with index i has problem
|
List<String> |
getTypes()
Returns the checked atom types
|
void |
setTypes(List<String> types)
Sets the checked atom types
|
createResult, getComponent, getComponentCountcheck1, 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 static final String PROPERTY_KEY_TYPES
protected AtomTypeChecker(StructureCheckerErrorType type)
type - is an instance is StructureCheckerErrorTypepublic AtomTypeChecker()
public AtomTypeChecker(Map<String,String> params)
params - a Map instance which contains String pairs. Key is the name of the
parameter.protected boolean check(Molecule molecule, MolAtom component)
ComponentCheckercheck in class ComponentChecker<MolAtom>molecule - is a Molecule instancecomponent - the current component to checkpublic List<String> getTypes()