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
A descendant of
AtomChecker
checking different atom types (represented by atom's
symbol) in the molecule.- Since:
- Marvin 5.4
-
Field Summary
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
-
Constructor Summary
ModifierConstructorDescriptionDefault constructor.protected
Parameterized constructor providing the possibility for descendants to initialize with their own error type.AtomTypeChecker
(Map<String, String> params) Parameterized constructor. -
Method Summary
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 Details
-
PROPERTY_KEY_TYPES
Types property- See Also:
-
types
-
-
Constructor Details
-
AtomTypeChecker
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
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 Details
-
check
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
Returns the checked atom types- Returns:
- the checked atom types
- Since:
- 5.7
-
setTypes
Sets the checked atom types- Parameters:
types
- the new value- Since:
- 5.7
-