|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.ComponentChecker<MolAtom>
chemaxon.checkers.AtomChecker
chemaxon.checkers.ValencePropertyChecker
public class ValencePropertyChecker
A descendant of AtomChecker detecting atoms having an
explicitly set valence property.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_KEY_DEFAULT_VALENCE
Search for valence properties that are equal to the default valence. |
static java.lang.String |
PROPERTY_KEY_NON_DEFAULT_VALENCE
Search for valence properties that are not equal to the default valence. |
static java.lang.String |
PROPERTY_KEY_SEARCH_DEFAULT_VALENCE
Search default valence property |
static java.lang.String |
PROPERTY_KEY_SEARCH_NON_DEFAULT_VALENCE
Search non default valence property |
| Fields inherited from class chemaxon.checkers.AbstractStructureChecker |
|---|
errorType, propertyChangeSupport |
| Fields inherited from interface chemaxon.checkers.StructureChecker |
|---|
PROPERTY_KEY_VALID |
| Constructor Summary | |
|---|---|
ValencePropertyChecker()
Creates a new ValencePropertyChecker instance. |
|
ValencePropertyChecker(java.util.Map<java.lang.String,java.lang.String> params)
Creates a new ValencePropertyChecker instance. |
|
| Method Summary | |
|---|---|
protected boolean |
check(Molecule molecule,
MolAtom component)
Checks if the component with index i has problem |
boolean |
equals(java.lang.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. |
| Methods inherited from class chemaxon.checkers.AtomChecker |
|---|
createResult, getComponent, getComponentCount |
| Methods inherited from class chemaxon.checkers.ComponentChecker |
|---|
check1, initialize |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_KEY_DEFAULT_VALENCE
public static final java.lang.String PROPERTY_KEY_NON_DEFAULT_VALENCE
public static final java.lang.String PROPERTY_KEY_SEARCH_DEFAULT_VALENCE
public static final java.lang.String PROPERTY_KEY_SEARCH_NON_DEFAULT_VALENCE
| Constructor Detail |
|---|
public ValencePropertyChecker()
public ValencePropertyChecker(java.util.Map<java.lang.String,java.lang.String> params)
params - a Map instance which contains String pairs. Key is the name of the
parameter.| Method Detail |
|---|
protected boolean check(Molecule molecule,
MolAtom component)
ComponentChecker
check in class ComponentChecker<MolAtom>molecule - is a Molecule instancecomponent - the current component to check
public boolean equals(java.lang.Object obj)
equals in class AbstractStructureCheckerpublic int hashCode()
hashCode in class AbstractStructureCheckerpublic 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||