public class ValenceErrorChecker extends AbstractStructureChecker
AtomChecker
detecting atoms with invalid valences.MoleculeGraph.hasValenceError()
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_TRADITIONAL_N_ALLOWED
This public constant
String represents the name of the
configuration file property which is responsible for traditional N
representation is allowed |
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
ValenceErrorChecker()
Default constructor
|
ValenceErrorChecker(Map<String,String> params)
Parameterized constructor.
|
Modifier and Type | Method and Description |
---|---|
protected StructureCheckerResult |
check1(Molecule molecule)
This method contains the current checking mechanism.
|
boolean |
isAllowTraditionalNitrogen()
Gets whether the checker allows traditional N representation
|
void |
setAllowTraditionalNitrogen(boolean traditionalNallowed)
Sets if the checker should allow traditional N representation
|
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
public static final String PROPERTY_KEY_TRADITIONAL_N_ALLOWED
String
represents the name of the
configuration file property which is responsible for traditional N
representation is allowedpublic ValenceErrorChecker()
public ValenceErrorChecker(Map<String,String> params)
params
- a Map
instance which contains String pairs. Key is the
name of the parameter.public void setAllowTraditionalNitrogen(boolean traditionalNallowed)
traditionalNallowed
- is a boolean instancepublic boolean isAllowTraditionalNitrogen()
protected StructureCheckerResult check1(Molecule molecule)
AbstractStructureChecker
check1
in class AbstractStructureChecker
molecule
- the Molecule
instance to be checked for problemsStructureCheckerResult
which represents the problem or null
if no problem found