Package chemaxon.checkers
Class AtomTypeChecker
- java.lang.Object
-
- chemaxon.checkers.AbstractStructureChecker
-
- chemaxon.checkers.ComponentChecker<MolAtom>
-
- chemaxon.checkers.AtomChecker
-
- chemaxon.checkers.AtomTypeChecker
-
- All Implemented Interfaces:
StructureChecker
,chemaxon.license.Licensable
,PropertyChangeListener
,Cloneable
,EventListener
- Direct Known Subclasses:
RareElementChecker
@PublicAPI public class AtomTypeChecker extends AtomChecker
A descendant ofAtomChecker
checking different atom types (represented by atom's symbol) in the molecule.- Since:
- Marvin 5.4
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_KEY_TYPES
Types propertyprotected List<String>
types
-
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
-
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
-
-
Constructor Summary
Constructors Modifier Constructor Description AtomTypeChecker()
Default constructor.protected
AtomTypeChecker(StructureCheckerErrorType type)
Parameterized constructor providing the possibility for descendants to initialize with their own error type.AtomTypeChecker(Map<String,String> params)
Parameterized constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
check(Molecule molecule, MolAtom component)
Checks if the component with index i has problemList<String>
getTypes()
Returns the checked atom typesvoid
setTypes(List<String> types)
Sets the checked atom types-
Methods inherited from class chemaxon.checkers.AtomChecker
createResult, getComponent, getComponentCount
-
Methods inherited from class chemaxon.checkers.ComponentChecker
check1, initialize
-
Methods inherited from class chemaxon.checkers.AbstractStructureChecker
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
-
-
-
-
Field Detail
-
PROPERTY_KEY_TYPES
public static final String PROPERTY_KEY_TYPES
Types property- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AtomTypeChecker
protected AtomTypeChecker(StructureCheckerErrorType type)
Parameterized constructor providing the possibility for descendants to initialize with their own error type.- Parameters:
type
- is an instance isStructureCheckerErrorType
-
AtomTypeChecker
public AtomTypeChecker()
Default constructor.
-
AtomTypeChecker
public AtomTypeChecker(Map<String,String> params)
Parameterized constructor. If types parameter is given its value will be parsed and split along "," characters and all substring which represents a type will be search during the checking mechanism.- Parameters:
params
- aMap
instance which contains String pairs. Key is the name of the parameter.
-
-
Method Detail
-
check
protected boolean check(Molecule molecule, MolAtom component)
Description copied from class:ComponentChecker
Checks if the component with index i has problem- Specified by:
check
in classComponentChecker<MolAtom>
- Parameters:
molecule
- is aMolecule
instancecomponent
- the current component to check- Returns:
- true if the component has problem, false otherwise
-
getTypes
public List<String> getTypes()
Returns the checked atom types- Returns:
- the checked atom types
- Since:
- 5.7
-
-