|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.checkers.AbstractStructureChecker
chemaxon.checkers.AbbreviatedGroupChecker
public class AbbreviatedGroupChecker
A descendant of AbstractStructureChecker
detecting abbreviations
("COOH", "Ala", "NO2", etc.) in a Molecule instance represented in
abbreviated group form.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_KEY_CONTRACTED
This public constant String represents the name of the
configuration file property which is responsible for searching contracted
abbreviated groups |
static java.lang.String |
PROPERTY_KEY_EXPANDED
This public constant String represents the name of the
configuration file property which is responsible for searching expanded
abbreviated groups |
static java.lang.String |
PROPERTY_KEY_SEARCH_CONTRACTED
This public constant String represents the name of the property
which is responsible for searching contracted abbreviated groups |
static java.lang.String |
PROPERTY_KEY_SEARCH_EXPANDED
This public constant String represents the name of the property
which is responsible for searching expanded abbreviated groups |
Fields inherited from class chemaxon.checkers.AbstractStructureChecker |
---|
errorType, propertyChangeSupport |
Fields inherited from interface chemaxon.checkers.StructureChecker |
---|
PROPERTY_KEY_VALID |
Constructor Summary | |
---|---|
AbbreviatedGroupChecker()
Default constructor. |
|
AbbreviatedGroupChecker(java.util.Map<java.lang.String,java.lang.String> params)
Parameterized constructor. |
Method Summary | |
---|---|
protected StructureCheckerResult |
check1(Molecule molecule)
This method contains the current checking mechanism. |
protected void |
convertResult(Molecule originalMolecule,
Molecule expandedMolecule,
StructureCheckerResult result,
java.util.Map<MolAtom,MolAtom> atomMap,
java.util.Map<MolBond,MolBond> bondMap)
This implementation does nothing. |
boolean |
equals(java.lang.Object obj)
|
protected Molecule |
expandMolecule(Molecule molecule,
java.util.Map<MolAtom,MolAtom> atomMap,
java.util.Map<MolBond,MolBond> bondMap)
This implementation does nothing. |
int |
hashCode()
|
boolean |
isSearchContracted()
Returns if the checker is searching for contracted SGroups or not |
boolean |
isSearchExpanded()
Returns if the checker is searching for expanded SGroups or not |
void |
setSearchContracted(boolean searchContracted)
Sets the checker should search for contracted abbreviated groups or not |
void |
setSearchExpanded(boolean searchExpanded)
Sets the checker should search for expanded abbreviated groups or not |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_KEY_EXPANDED
String
represents the name of the
configuration file property which is responsible for searching expanded
abbreviated groups
public static final java.lang.String PROPERTY_KEY_CONTRACTED
String
represents the name of the
configuration file property which is responsible for searching contracted
abbreviated groups
public static final java.lang.String PROPERTY_KEY_SEARCH_CONTRACTED
String
represents the name of the property
which is responsible for searching contracted abbreviated groups
public static final java.lang.String PROPERTY_KEY_SEARCH_EXPANDED
String
represents the name of the property
which is responsible for searching expanded abbreviated groups
Constructor Detail |
---|
public AbbreviatedGroupChecker()
public AbbreviatedGroupChecker(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 |
---|
public boolean isSearchContracted()
public boolean isSearchExpanded()
protected Molecule expandMolecule(Molecule molecule, java.util.Map<MolAtom,MolAtom> atomMap, java.util.Map<MolBond,MolBond> bondMap)
expandMolecule
in class AbstractStructureChecker
molecule
- the molecule to check
protected void convertResult(Molecule originalMolecule, Molecule expandedMolecule, StructureCheckerResult result, java.util.Map<MolAtom,MolAtom> atomMap, java.util.Map<MolBond,MolBond> bondMap)
convertResult
in class AbstractStructureChecker
originalMolecule
- the original moleculeexpandedMolecule
- the cloned then expanded moleculeresult
- the structure checker result on cloned moleculeatomMap
- the mapping of cloned molecule and original molecule atomsbondMap
- the mapping of cloned molecule and original molecule bondsprotected StructureCheckerResult check1(Molecule molecule)
AbstractStructureChecker
check1
in class AbstractStructureChecker
molecule
- the Molecule
instance to be checked for problems
StructureCheckerResult
which represents the problem or null
if no problem foundpublic boolean equals(java.lang.Object obj)
equals
in class AbstractStructureChecker
public int hashCode()
hashCode
in class AbstractStructureChecker
public void setSearchExpanded(boolean searchExpanded)
searchExpanded
- is a boolean property. If true expanded abbreviated groups
will be checked during the checking mechanism.public void setSearchContracted(boolean searchContracted)
searchContracted
- is a boolean property. If true contracted abbreviated groups
will be checked during the checking mechanism.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |