chemaxon.checkers
Class QueryAtomChecker

java.lang.Object
  extended by chemaxon.checkers.AbstractStructureChecker
      extended by chemaxon.checkers.ComponentChecker<MolAtom>
          extended by chemaxon.checkers.AtomChecker
              extended by chemaxon.checkers.QueryAtomChecker
All Implemented Interfaces:
StructureChecker, chemaxon.license.Licensable, java.beans.PropertyChangeListener, java.lang.Cloneable, java.util.EventListener

public class QueryAtomChecker
extends AtomChecker

A descendant of AtomChecker detecting generic atoms or ones having query properties.

Since:
Marvin 5.3
Version:
5.7
Author:
Attila Szabo
See Also:
MolAtom.isQuery()

Field Summary
 
Fields inherited from class chemaxon.checkers.AbstractStructureChecker
errorType, propertyChangeSupport
 
Fields inherited from interface chemaxon.checkers.StructureChecker
PROPERTY_KEY_VALID
 
Constructor Summary
QueryAtomChecker()
          Default constructor
 
Method Summary
protected  boolean check(Molecule molecule, MolAtom atom)
          Detects atom of the molecule is a query atom.
 
Methods inherited from class chemaxon.checkers.AtomChecker
createResult, 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, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setDescription, setHelpText, setIcon, setLicenseEnvironment, setLocalMenuName, setMoreErrorMessage, setName, setNoErrorMessage, setOneErrorMessage, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryAtomChecker

public QueryAtomChecker()
Default constructor

Method Detail

check

protected boolean check(Molecule molecule,
                        MolAtom atom)
Detects atom of the molecule is a query atom.

Specified by:
check in class ComponentChecker<MolAtom>
Parameters:
atom - is an instance of MolAtom
molecule - is a Molecule instance
Returns:
true if the molecule contains query atom, false otherwise