Package chemaxon.checkers
Class AromaticityErrorChecker
java.lang.Object
chemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.AromaticityErrorChecker
- All Implemented Interfaces:
StructureChecker,chemaxon.license.Licensable,PropertyChangeListener,Cloneable,EventListener
A descendant of
AbstractStructureChecker detecting aromatization problems.- Since:
- Marvin 5.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringThis public constantStringrepresents the name of the property which is responsible for using the given aromatization type during the check mechanism.Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupportFields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AromaticityErrorChecker(Map<String, String> params) Parameterized constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StructureCheckerResultThis method contains the current checking mechanism.booleanReturns the aromTypeintgetType()Returns the type of the aromatizationinthashCode()voidsetType(int type) Methods inherited from class chemaxon.checkers.AbstractStructureChecker
addPropertyChangeListener, addPropertyChangeListener, check, clone, cloneItem, convertResult, expandMolecule, getDescription, getDescriptor, getEditorClassName, getErrorCode, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getName, isAvailable, isLicensed, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setDescription, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage, toString
-
Field Details
-
PROPERTY_KEY_TYPE
This public constantStringrepresents the name of the property which is responsible for using the given aromatization type during the check mechanism.- Since:
- 5.4
- See Also:
-
PROPERTY_KEY_AROM_TYPE
This public constantStringrepresents the name of the property which represents the arom typeStringproperty- Since:
- 5.7
- See Also:
-
-
Constructor Details
-
AromaticityErrorChecker
public AromaticityErrorChecker()Default constructor. General aromatization will be used. -
AromaticityErrorChecker
Parameterized constructor. If type parameter is given and its value is basic or loose then basic/loose aromatization will be used during checking mechanism otherwise general.- Parameters:
params- aMapinstance which contains String pairs. Key is the name of the parameter.
-
-
Method Details
-
check1
Description copied from class:AbstractStructureCheckerThis method contains the current checking mechanism.- Specified by:
check1in classAbstractStructureChecker- Parameters:
molecule- theMoleculeinstance to be checked for problems- Returns:
- a
StructureCheckerResultwhich represents the problem or null if no problem found
-
equals
- Overrides:
equalsin classAbstractStructureChecker
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractStructureChecker
-
getType
public int getType()Returns the type of the aromatization- Returns:
- the type of the aromatization
-
setType
public void setType(int type) - Parameters:
type- is the type of the aromatization
-
getAromType
Returns the aromType- Returns:
- the aromType
-