Package chemaxon.checkers
Class ValenceErrorChecker
java.lang.Object
chemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.ValenceErrorChecker
- All Implemented Interfaces:
StructureChecker,chemaxon.license.Licensable,PropertyChangeListener,Cloneable,EventListener
A descendant of
AtomChecker detecting atoms with invalid valences.- Since:
- Marvin 5.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis public constantStringrepresents the name of the configuration file property which is responsible for traditional N representation is allowedFields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupportFields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorValenceErrorChecker(Map<String, String> params) Parameterized constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected StructureCheckerResultThis method contains the current checking mechanism.booleanGets whether the checker allows traditional N representationvoidsetAllowTraditionalNitrogen(boolean traditionalNallowed) Sets if the checker should allow traditional N representationMethods 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_TRADITIONAL_N_ALLOWED
This public constantStringrepresents the name of the configuration file property which is responsible for traditional N representation is allowed- Since:
- 6.0
- See Also:
-
-
Constructor Details
-
ValenceErrorChecker
public ValenceErrorChecker()Default constructor -
ValenceErrorChecker
Parameterized constructor. If "traditionalNitrogen" parameter is given and its value is "true" traditional representation of N will not be valence error- Parameters:
params- aMapinstance which contains String pairs. Key is the name of the parameter.
-
-
Method Details
-
setAllowTraditionalNitrogen
public void setAllowTraditionalNitrogen(boolean traditionalNallowed) Sets if the checker should allow traditional N representation- Parameters:
traditionalNallowed- is a boolean instance- Since:
- 6.0
-
isAllowTraditionalNitrogen
public boolean isAllowTraditionalNitrogen()Gets whether the checker allows traditional N representation- Returns:
- whether the checker allows traditional N representation
-
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
-