@PublicAPI 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 java.lang.String |
PROPERTY_KEY_TYPES
Types property
|
protected java.util.List<java.lang.String> |
types
A
List of String which represents the types should be checked in
the molecule |
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Modifier | Constructor and Description |
---|---|
|
AtomTypeChecker()
Default constructor.
|
|
AtomTypeChecker(java.util.Map<java.lang.String,java.lang.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
|
java.util.List<java.lang.String> |
getTypes()
Returns the checked atom types
|
void |
setTypes(java.util.List<java.lang.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 java.lang.String PROPERTY_KEY_TYPES
protected java.util.List<java.lang.String> types
List
of String
which represents the types should be checked in
the moleculeprotected AtomTypeChecker(StructureCheckerErrorType type)
type
- is an instance is StructureCheckerErrorType
public AtomTypeChecker()
public AtomTypeChecker(java.util.Map<java.lang.String,java.lang.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 java.util.List<java.lang.String> getTypes()
public void setTypes(java.util.List<java.lang.String> types)
types
- the new value