public class ValencePropertyChecker extends AtomChecker
AtomChecker
detecting atoms having an
explicitly set valence property.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_DEFAULT_VALENCE
Search for valence properties that are equal to the default valence.
|
static String |
PROPERTY_KEY_NON_DEFAULT_VALENCE
Search for valence properties that are not equal to the default valence.
|
static String |
PROPERTY_KEY_SEARCH_DEFAULT_VALENCE
Search default valence property
|
static String |
PROPERTY_KEY_SEARCH_NON_DEFAULT_VALENCE
Search non default valence property
|
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
ValencePropertyChecker()
Creates a new ValencePropertyChecker instance.
|
ValencePropertyChecker(Map<String,String> params)
Creates a new ValencePropertyChecker instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
check(Molecule molecule,
MolAtom component)
Checks if the component with index i has problem
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isSearchDefaultValence()
Returns if the checker detects valence properties with the default
valence of the current atom type.
|
boolean |
isSearchNonDefaultValence()
Returns if the checker detects valence properties with a non-default
valence of the current atom type.
|
void |
setSearchDefaultValence(boolean value)
Sets checker to detect valence properties with the default valence of
the current atom type.
|
void |
setSearchNonDefaultValence(boolean value)
Sets checker to detect valence properties with non-default valence of
the current atom type.
|
createResult, getComponent, getComponentCount
check1, initialize
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
public static final String PROPERTY_KEY_DEFAULT_VALENCE
public static final String PROPERTY_KEY_NON_DEFAULT_VALENCE
public static final String PROPERTY_KEY_SEARCH_DEFAULT_VALENCE
public static final String PROPERTY_KEY_SEARCH_NON_DEFAULT_VALENCE
public ValencePropertyChecker()
public ValencePropertyChecker(Map<String,String> params)
params
- a Map
instance which contains String pairs. Key is the name of the
parameter.protected boolean check(Molecule molecule, MolAtom component)
ComponentChecker
check
in class ComponentChecker<MolAtom>
molecule
- is a Molecule
instancecomponent
- the current component to checkpublic boolean equals(Object obj)
equals
in class AbstractStructureChecker
public int hashCode()
hashCode
in class AbstractStructureChecker
public boolean isSearchDefaultValence()
public boolean isSearchNonDefaultValence()
public void setSearchDefaultValence(boolean value)
value
- if true, the checker will detect atoms with default valence
properties, otherwise notpublic void setSearchNonDefaultValence(boolean value)
value
- if true, the checker will detect atoms with non-default
valence properties, otherwise not