Package chemaxon.checkers
Class PseudoAtomChecker
- java.lang.Object
-
- chemaxon.checkers.AbstractStructureChecker
-
- chemaxon.checkers.ComponentChecker<MolAtom>
-
- chemaxon.checkers.AtomChecker
-
- chemaxon.checkers.PseudoAtomChecker
-
- All Implemented Interfaces:
StructureChecker
,chemaxon.license.Licensable
,PropertyChangeListener
,Cloneable
,EventListener
@PublicAPI public class PseudoAtomChecker extends AtomChecker
A descendant ofAtomChecker
detecting pseudo atoms.- Since:
- Marvin 5.3
- See Also:
MolAtom.isPseudo()
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_KEY_EXCLUDED
This public constantString
represents the name of the property which is responsible for the list of excluded pseudo atom labelsstatic String
PROPERTY_KEY_SEARCH_EXCLUDED
-
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
-
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
-
-
Constructor Summary
Constructors Constructor Description PseudoAtomChecker()
Default constructorPseudoAtomChecker(Map<String,String> params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
check(Molecule molecule, MolAtom atom)
Checks if the component with index i has problemprotected StructureCheckerResult
createResult(Molecule molecule, List<MolAtom> atoms)
Creates aStructureCheckerResult
from aList
containing the components.chemaxon.checkers.util.AtomLabels
getExcluded()
boolean
isValid()
Returns true if the checker's configuration is valid, false otherwisevoid
setExcluded(chemaxon.checkers.util.AtomLabels excluded)
-
Methods inherited from class chemaxon.checkers.AtomChecker
getComponent, getComponentCount
-
Methods inherited from class chemaxon.checkers.ComponentChecker
check1, initialize
-
Methods inherited from class chemaxon.checkers.AbstractStructureChecker
addPropertyChangeListener, addPropertyChangeListener, check, clone, cloneItem, convertResult, equals, expandMolecule, getDescription, getDescriptor, getEditorClassName, getErrorCode, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getName, hashCode, isAvailable, isLicensed, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setDescription, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage, toString
-
-
-
-
Field Detail
-
PROPERTY_KEY_EXCLUDED
public static final String PROPERTY_KEY_EXCLUDED
This public constantString
represents the name of the property which is responsible for the list of excluded pseudo atom labels- Since:
- 16.9.26
- See Also:
- Constant Field Values
-
PROPERTY_KEY_SEARCH_EXCLUDED
public static final String PROPERTY_KEY_SEARCH_EXCLUDED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExcluded
public chemaxon.checkers.util.AtomLabels getExcluded()
-
setExcluded
public void setExcluded(chemaxon.checkers.util.AtomLabels excluded)
-
isValid
public boolean isValid()
Description copied from interface:StructureChecker
Returns true if the checker's configuration is valid, false otherwise- Specified by:
isValid
in interfaceStructureChecker
- Overrides:
isValid
in classAbstractStructureChecker
- Returns:
- true if the checker's configuration is valid, false otherwise
-
check
protected boolean check(Molecule molecule, MolAtom atom)
Description copied from class:ComponentChecker
Checks if the component with index i has problem- Specified by:
check
in classComponentChecker<MolAtom>
- Parameters:
molecule
- is aMolecule
instanceatom
- the current component to check- Returns:
- true if the component has problem, false otherwise
-
createResult
protected StructureCheckerResult createResult(Molecule molecule, List<MolAtom> atoms)
Description copied from class:ComponentChecker
Creates aStructureCheckerResult
from aList
containing the components.- Overrides:
createResult
in classAtomChecker
- Parameters:
molecule
- is aMolecule
instanceatoms
- is an instance ofList
containing the problematic components- Returns:
- a
StructureCheckerResult
containing all problematic component indices
-
-