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
FieldsFields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupportFields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructor.protectedParameterized 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, getComponentCountMethods inherited from class chemaxon.checkers.ComponentChecker
check1, initializeMethods 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- aMapinstance which contains String pairs. Key is the name of the parameter.
-
-
Method Details
-
check
Description copied from class:ComponentCheckerChecks if the component with index i has problem- Specified by:
checkin classComponentChecker<MolAtom>- Parameters:
molecule- is aMoleculeinstancecomponent- 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
-