public class AtomQueryPropertyChecker extends AtomChecker
AtomChecker detecting atoms having an query property
set.| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_KEY_AROMATCITY
Aromaticity atom query property.
|
static String |
PROPERTY_KEY_AROMATICITY_CHECKING
Aromaticity checking property
|
static String |
PROPERTY_KEY_CONNECTION_COUNT
Connection count atom query property.
|
static String |
PROPERTY_KEY_CONNECTION_COUNT_CHECKING
Connection count checking property
|
static String |
PROPERTY_KEY_EXPLICIT_CONNECTION_COUNT
Explicit connection count atom query property.
|
static String |
PROPERTY_KEY_EXPLICIT_CONNECTION_COUNT_CHECKING
Explicit connection count checking property
|
static String |
PROPERTY_KEY_HYDROGEN_COUNT
Hydrogen count atom query property.
|
static String |
PROPERTY_KEY_HYDROGEN_COUNT_CHECKING
Hydrogen count checking property
|
static String |
PROPERTY_KEY_IMPLICIT_HYDROGEN_COUNT
Implicit hydrogen count atom query property.
|
static String |
PROPERTY_KEY_IMPLICIT_HYDROGEN_COUNT_CHECKING
Implicit hydrogen count checking property
|
static String |
PROPERTY_KEY_RING_BOND_COUNT
Ring bond count atom query property.
|
static String |
PROPERTY_KEY_RING_BOND_COUNT_CHECKING
Ring bond count checking property
|
static String |
PROPERTY_KEY_RING_COUNT
Ring count atom query property.
|
static String |
PROPERTY_KEY_RING_COUNT_CHECKING
Ring count checking property
|
static String |
PROPERTY_KEY_SMALLEST_RING_SIZE
Smallest ring size atom query property.
|
static String |
PROPERTY_KEY_SMALLEST_RING_SIZE_CHECKING
Smallest ring size checking property
|
static String |
PROPERTY_KEY_SUBSTITUTION_COUNT
Substitution count atom query property.
|
static String |
PROPERTY_KEY_SUBSTITUTION_COUNT_CHECKING
Substitution count checking property
|
static String |
PROPERTY_KEY_UNSATURATION
Unsaturation atom query property.
|
static String |
PROPERTY_KEY_UNSATURATION_CHECKING
Unsaturation checking property
|
errorType, propertyChangeSupportPROPERTY_KEY_VALID| Constructor and Description |
|---|
AtomQueryPropertyChecker()
Creates a new AtomQueryPropertyChecker instance, it detects all query
properties by default.
|
AtomQueryPropertyChecker(Map<String,String> params)
Creates a new AtomQueryPropertyChecker instance to detect the given query
properties.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
check(Molecule molecule,
MolAtom component)
Checks if the component with index i has problem
|
protected StructureCheckerResult |
createResult(Molecule molecule,
List<MolAtom> atoms)
Creates a
StructureCheckerResult from a List containing the components. |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isAromaticityChecking()
Gets the option determining if the checker detects aromaticity atom query
properties or not.
|
boolean |
isConnectionCountChecking()
Gets the option determining if the checker detects connection count atom
query properties or not.
|
boolean |
isExplicitConnectionCountChecking()
Gets the option determining if the checker detects explicit connection
count atom query properties or not.
|
boolean |
isHydrogenCountChecking()
Gets the option determining if the checker detects hydrogen count atom
query properties or not.
|
boolean |
isImplicitHydrogenCountChecking()
Gets the option determining if the checker detects implicit hydrogen
count atom query properties or not.
|
boolean |
isRingBondCountChecking()
Gets the option determining if the checker detects ring bond count atom
query properties or not.
|
boolean |
isRingCountChecking()
Gets the option determining if the checker detects ring count atom query
properties or not.
|
boolean |
isSmallestRingSizeChecking()
Gets the option determining if the checker detects smallest ring size
atom query properties or not.
|
boolean |
isSubstitutionCountChecking()
Gets the option determining if the checker detects substitution count
atom query properties or not.
|
boolean |
isUnsaturationChecking()
Gets the option determining if the checker detects unsaturation atom
query properties or not.
|
void |
setAromaticityChecking(boolean value)
Sets the option determining if the checker detects aromaticity atom query
properties or not.
|
void |
setConnectionCountChecking(boolean value)
Sets the option determining if the checker detects connection count atom
query properties or not.
|
void |
setExplicitConnectionCountChecking(boolean value)
Sets the option determining if the checker detects explicit connection
count atom query properties or not.
|
void |
setHydrogenCountChecking(boolean value)
Sets the option determining if the checker detects hydrogen count atom
query properties or not.
|
void |
setImplicitHydrogenCountChecking(boolean value)
Sets the option determining if the checker detects implicit hydrogen
count atom query properties or not.
|
void |
setRingBondCountChecking(boolean value)
Sets the option determining if the checker detects ring bond count atom
query properties or not.
|
void |
setRingCountChecking(boolean value)
Sets the option determining if the checker detects ring count atom query
properties or not.
|
void |
setSmallestRingSizeChecking(boolean value)
Sets the option determining if the checker detects smallest ring size
atom query properties or not.
|
void |
setSubstitutionCountChecking(boolean value)
Sets the option determining if the checker detects substitution count
atom query properties or not.
|
void |
setUnsaturationChecking(boolean value)
Sets the option determining if the checker detects unsaturation atom
query properties or not.
|
String |
toString() |
getComponent, getComponentCountcheck1, initializeaddPropertyChangeListener, 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, setOneErrorMessagepublic static final String PROPERTY_KEY_HYDROGEN_COUNT
public static final String PROPERTY_KEY_CONNECTION_COUNT
public static final String PROPERTY_KEY_EXPLICIT_CONNECTION_COUNT
public static final String PROPERTY_KEY_RING_COUNT
public static final String PROPERTY_KEY_IMPLICIT_HYDROGEN_COUNT
public static final String PROPERTY_KEY_SMALLEST_RING_SIZE
public static final String PROPERTY_KEY_AROMATCITY
public static final String PROPERTY_KEY_SUBSTITUTION_COUNT
public static final String PROPERTY_KEY_UNSATURATION
public static final String PROPERTY_KEY_RING_BOND_COUNT
public static final String PROPERTY_KEY_AROMATICITY_CHECKING
public static final String PROPERTY_KEY_CONNECTION_COUNT_CHECKING
public static final String PROPERTY_KEY_EXPLICIT_CONNECTION_COUNT_CHECKING
public static final String PROPERTY_KEY_HYDROGEN_COUNT_CHECKING
public static final String PROPERTY_KEY_IMPLICIT_HYDROGEN_COUNT_CHECKING
public static final String PROPERTY_KEY_RING_BOND_COUNT_CHECKING
public static final String PROPERTY_KEY_RING_COUNT_CHECKING
public static final String PROPERTY_KEY_SMALLEST_RING_SIZE_CHECKING
public static final String PROPERTY_KEY_SUBSTITUTION_COUNT_CHECKING
public static final String PROPERTY_KEY_UNSATURATION_CHECKING
public AtomQueryPropertyChecker()
protected boolean check(Molecule molecule, MolAtom component)
ComponentCheckercheck in class ComponentChecker<MolAtom>molecule - is a Molecule instancecomponent - the current component to checkprotected StructureCheckerResult createResult(Molecule molecule, List<MolAtom> atoms)
ComponentCheckerStructureCheckerResult from a List containing the components.createResult in class AtomCheckermolecule - is a Molecule instanceatoms - is an instance of List containing the problematic componentsStructureCheckerResult containing all problematic component indicespublic boolean equals(Object obj)
equals in class AbstractStructureCheckerpublic int hashCode()
hashCode in class AbstractStructureCheckerpublic boolean isAromaticityChecking()
public boolean isConnectionCountChecking()
public boolean isExplicitConnectionCountChecking()
public boolean isHydrogenCountChecking()
public boolean isImplicitHydrogenCountChecking()
public boolean isRingBondCountChecking()
public boolean isRingCountChecking()
public boolean isSmallestRingSizeChecking()
public boolean isSubstitutionCountChecking()
public boolean isUnsaturationChecking()
public void setAromaticityChecking(boolean value)
value - if true, aromaticity atom query properties are detectedpublic void setConnectionCountChecking(boolean value)
value - if true, connection count atom query properties are detectedpublic void setExplicitConnectionCountChecking(boolean value)
value - if true, explicit connection count atom query properties are
detectedpublic void setHydrogenCountChecking(boolean value)
value - if true, hydrogen count atom query properties are detectedpublic void setImplicitHydrogenCountChecking(boolean value)
value - if true, implicit hydrogen count atom query properties are
detectedpublic void setRingBondCountChecking(boolean value)
value - if true, ring bond count atom query properties are detectedpublic void setRingCountChecking(boolean value)
value - if true, ring count atom query properties are detectedpublic void setSmallestRingSizeChecking(boolean value)
value - if true, smallest ring size atom query properties are
detectedpublic void setSubstitutionCountChecking(boolean value)
value - if true, substitution count atom query properties are
detectedpublic void setUnsaturationChecking(boolean value)
value - if true, unsaturation query properties are detectedpublic String toString()
toString in class AbstractStructureChecker