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, propertyChangeSupport
PROPERTY_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, getComponentCount
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 static final String PROPERTY_KEY_TYPES
protected AtomTypeChecker(StructureCheckerErrorType type)
type
- is an instance is StructureCheckerErrorType
public 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)
ComponentChecker
check
in class ComponentChecker<MolAtom>
molecule
- is a Molecule
instancecomponent
- the current component to checkpublic List<String> getTypes()