public class RatomChecker extends AbstractStructureChecker
AbstractStructureChecker
detecting R-atoms.Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_SEARCH_ALL
This constant
String represents the name of the property which is
responsible for searching all ratoms in the molecule |
static String |
PROPERTY_KEY_SEARCH_DISCONNECTED
This constant
String represents the name of the property which is
responsible for searching disconnected ratoms in the molecule |
static String |
PROPERTY_KEY_SEARCH_GENERIC
This constant
String represents the name of the property which is
responsible for searching generic ratoms in the molecule |
static String |
PROPERTY_KEY_SEARCH_LINKER
This private constant
String represents the name of the property
which is responsible for searching linker ratoms in the molecule |
static String |
PROPERTY_KEY_SEARCH_NESTED
This private constant
String represents the name of the property
which is responsible for searching nested ratoms in the molecule |
errorType, propertyChangeSupport
PROPERTY_KEY_VALID
Constructor and Description |
---|
RatomChecker()
Creates a new anyChecker instance detecting all R-atoms.
|
RatomChecker(Map<String,String> params)
Creates a new anyChecker instance reading checking options from the
params argument.
|
Modifier and Type | Method and Description |
---|---|
protected StructureCheckerResult |
check1(Molecule molecule)
This method contains the current checking mechanism.
|
boolean |
isSearchAll()
Gets the option determining if the checker detects all R-atoms or not.
|
boolean |
isSearchDisconnected()
Gets the option determining if the checker detects R-atoms not connected
to any other atoms or not.
|
boolean |
isSearchGeneric()
Gets the option determining if the checker detects R-atoms without
identifier numbers or not.
|
boolean |
isSearchLinker()
Gets the option determining if the checker detects R-atoms with more than
one connection or not.
|
boolean |
isSearchNested()
Gets the option determining if the checker detects R-atoms within
R-groups or not.
|
void |
setSearchAll(boolean value)
Sets the option determining if the checker detects all R-atoms or not.
|
void |
setSearchDisconnected(boolean value)
Sets the option determining if the checker detects R-atoms not connected
to any other atoms or not.
|
void |
setSearchGeneric(boolean value)
Sets the option determining if the checker detects R-atoms without
identifier numbers or not.
|
void |
setSearchLinker(boolean value)
Sets the option determining if the checker detects R-atoms with more than
one connection or not.
|
void |
setSearchNested(boolean value)
Sets the option determining if the checker detects R-atoms within
R-groups or not.
|
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_SEARCH_ALL
String
represents the name of the property which is
responsible for searching all ratoms in the moleculepublic static final String PROPERTY_KEY_SEARCH_DISCONNECTED
String
represents the name of the property which is
responsible for searching disconnected ratoms in the moleculepublic static final String PROPERTY_KEY_SEARCH_GENERIC
String
represents the name of the property which is
responsible for searching generic ratoms in the moleculepublic static final String PROPERTY_KEY_SEARCH_LINKER
String
represents the name of the property
which is responsible for searching linker ratoms in the moleculepublic static final String PROPERTY_KEY_SEARCH_NESTED
String
represents the name of the property
which is responsible for searching nested ratoms in the moleculepublic RatomChecker()
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 foundpublic boolean isSearchAll()
public boolean isSearchDisconnected()
public boolean isSearchGeneric()
public boolean isSearchLinker()
public boolean isSearchNested()
public void setSearchAll(boolean value)
value
- if true, all R-atoms are detectedpublic void setSearchDisconnected(boolean value)
value
- if true, disconnected R-atoms are detectedpublic void setSearchGeneric(boolean value)
value
- if true, generic R-atoms are detectedpublic void setSearchLinker(boolean value)
value
- if true, linker R-atoms are detectedpublic void setSearchNested(boolean value)
value
- if true, nested R-atoms are detected