Package chemaxon.checkers.result
Class DefaultExternalStructureCheckerResult
java.lang.Object
chemaxon.checkers.result.DefaultStructureCheckerResult
chemaxon.checkers.result.DefaultExternalStructureCheckerResult
- All Implemented Interfaces:
ExternalStructureCheckerResult
,StructureCheckerResult
@PublicApi
public class DefaultExternalStructureCheckerResult
extends DefaultStructureCheckerResult
implements ExternalStructureCheckerResult
This descendant of
DefaultStructureCheckerResult
also implements the
ExternalStructureCheckerResult
interface thus providing a default implementation
base class for external structure checkers' results.- Since:
- Marvin 5.3
-
Constructor Summary
ConstructorDescriptionDefaultExternalStructureCheckerResult
(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String errorCode) Constructor which initialize all the properties.DefaultExternalStructureCheckerResult
(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String description, String name, String localMenuName, String helpText, String errorCode, Icon icon) Deprecated.DefaultExternalStructureCheckerResult
(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String description, String name, String localMenuName, String helpText, String errorCode, Icon icon, int errorCount) Constructor which initialize all the properties. -
Method Summary
Methods inherited from class chemaxon.checkers.result.DefaultStructureCheckerResult
convert, getAtoms, getBonds, getDescription, getErrorCount, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface chemaxon.checkers.result.StructureCheckerResult
convert, getAtoms, getBonds, getDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule
-
Constructor Details
-
DefaultExternalStructureCheckerResult
public DefaultExternalStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String description, String name, String localMenuName, String helpText, String errorCode, Icon icon, int errorCount) Constructor which initialize all the properties.- Parameters:
source
- is theStructureChecker
instance which identified the problematoms
- aList
ofMolAtom
which contains the affected atoms of the problembonds
- aList
ofMolBond
which contains the affected bonds of the problemmolecule
- is aMolecule
instance which contains the described problemdescription
- is short information about the problemname
- is the name of the checker which found the described problemlocalMenuName
- is aString
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemerrorCode
- is aString
which represents a unique identifier of the resulticon
- is an instance ofIcon
which will be shown in Marvin Sketch checker dialogserrorCount
- count of identified errors
-
DefaultExternalStructureCheckerResult
@Deprecated public DefaultExternalStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String description, String name, String localMenuName, String helpText, String errorCode, Icon icon) Deprecated.Constructor which initialize all the properties.- Parameters:
source
- is theStructureChecker
instance which identified the problematoms
- aList
ofMolAtom
which contains the affected atoms of the problembonds
- aList
ofMolBond
which contains the affected bonds of the problemmolecule
- is aMolecule
instance which contains the described problemdescription
- is short information about the problemname
- is the name of the checker which found the described problemlocalMenuName
- is aString
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemerrorCode
- is aString
which represents a unique identifier of the resulticon
- is an instance ofIcon
which will be shown in Marvin Sketch checker dialogs
-
DefaultExternalStructureCheckerResult
public DefaultExternalStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String errorCode) Constructor which initialize all the properties.- Parameters:
source
- is theStructureChecker
instance which identified the problematoms
- aList
ofMolAtom
which contains the affected atoms of the problembonds
- aList
ofMolBond
which contains the affected bonds of the problemmolecule
- is aMolecule
instance which contains the described problemerrorCode
- is aString
which represents a unique identifier of the result
-
-
Method Details
-
getErrorCode
Description copied from interface:ExternalStructureCheckerResult
This function returns aString
which identifies the problems thus this must be unique for each class that implements this interface- Specified by:
getErrorCode
in interfaceExternalStructureCheckerResult
- Returns:
- a
String
object which is the error code of the problem
-
equals
- Overrides:
equals
in classDefaultStructureCheckerResult
-
hashCode
public int hashCode()- Overrides:
hashCode
in classDefaultStructureCheckerResult
-
DefaultExternalStructureCheckerResult(StructureChecker, List, List, Molecule, String, String, String, String, String, Icon, int)