public class AbbreviatedGroupChecker extends AbstractStructureChecker
AbstractStructureChecker detecting abbreviations
("COOH", "Ala", "NO2", etc.) in a Molecule instance represented in
abbreviated group form.| Modifier and Type | Class and Description |
|---|---|
static class |
AbbreviatedGroupChecker.Abbreviations
The abbreviation storage class.
|
| Modifier and Type | Field and Description |
|---|---|
static 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 String |
PROPERTY_KEY_EXCLUDED
This public constant
String represents the name of the property
which is responsible for the list of excluded groups |
static 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 String |
PROPERTY_KEY_SEARCH_CONTRACTED
This public constant
String represents the name of the property
which is responsible for searching contracted abbreviated groups |
static String |
PROPERTY_KEY_SEARCH_EXCLUDED
This public constant
String represents the name of the property
which is responsible for the list of excluded groups |
static String |
PROPERTY_KEY_SEARCH_EXPANDED
This public constant
String represents the name of the property
which is responsible for searching expanded abbreviated groups |
errorType, propertyChangeSupportPROPERTY_KEY_VALID| Constructor and Description |
|---|
AbbreviatedGroupChecker()
Default constructor.
|
AbbreviatedGroupChecker(Map<String,String> params)
Parameterized constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected StructureCheckerResult |
check1(Molecule molecule)
This method contains the current checking mechanism.
|
protected void |
convertResult(Molecule originalMolecule,
Molecule expandedMolecule,
StructureCheckerResult result,
Map<MolAtom,MolAtom> atomMap,
Map<MolBond,MolBond> bondMap)
This implementation does nothing.
|
boolean |
equals(Object obj) |
protected Molecule |
expandMolecule(Molecule molecule,
Map<MolAtom,MolAtom> atomMap,
Map<MolBond,MolBond> bondMap)
This implementation does nothing.
|
AbbreviatedGroupChecker.Abbreviations |
getExcluded()
Gets the excluded abbreviations
|
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
|
boolean |
isValid()
Excluded object is initialized.
|
void |
setExcluded(AbbreviatedGroupChecker.Abbreviations excluded)
Sets the abbreviations to be excluded
|
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
|
addPropertyChangeListener, addPropertyChangeListener, check, clone, cloneItem, getDescription, getDescriptor, getEditorClassName, getErrorCode, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getName, isAvailable, isLicensed, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setDescription, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage, toStringpublic static final String PROPERTY_KEY_EXPANDED
String represents the name of the
configuration file property which is responsible for searching expanded
abbreviated groupspublic static final String PROPERTY_KEY_CONTRACTED
String represents the name of the
configuration file property which is responsible for searching contracted
abbreviated groupspublic static final String PROPERTY_KEY_SEARCH_CONTRACTED
String represents the name of the property
which is responsible for searching contracted abbreviated groupspublic static final String PROPERTY_KEY_SEARCH_EXPANDED
String represents the name of the property
which is responsible for searching expanded abbreviated groupspublic static final String PROPERTY_KEY_EXCLUDED
String represents the name of the property
which is responsible for the list of excluded groupspublic static final String PROPERTY_KEY_SEARCH_EXCLUDED
String represents the name of the property
which is responsible for the list of excluded groupspublic AbbreviatedGroupChecker()
public AbbreviatedGroupChecker(Map<String,String> params)
params - a Map instance which contains String pairs. Key is the
name of the parameter.public boolean isSearchContracted()
public boolean isSearchExpanded()
protected Molecule expandMolecule(Molecule molecule, Map<MolAtom,MolAtom> atomMap, Map<MolBond,MolBond> bondMap)
expandMolecule in class AbstractStructureCheckermolecule - the molecule to checkprotected void convertResult(Molecule originalMolecule, Molecule expandedMolecule, StructureCheckerResult result, Map<MolAtom,MolAtom> atomMap, Map<MolBond,MolBond> bondMap)
convertResult in class AbstractStructureCheckeroriginalMolecule - 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)
AbstractStructureCheckercheck1 in class AbstractStructureCheckermolecule - the Molecule instance to be checked for problemsStructureCheckerResult which represents the problem or null
if no problem foundpublic boolean equals(Object obj)
equals in class AbstractStructureCheckerpublic int hashCode()
hashCode in class AbstractStructureCheckerpublic 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.public void setExcluded(AbbreviatedGroupChecker.Abbreviations excluded)
excluded - the abbreviations to be excludedpublic boolean isValid()
isValid in interface StructureCheckerisValid in class AbstractStructureCheckerpublic AbbreviatedGroupChecker.Abbreviations getExcluded()