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 ofDefaultStructureCheckerResult
also implements theExternalStructureCheckerResult
interface thus providing a default implementation base class for external structure checkers' results.- Since:
- Marvin 5.3
-
-
Constructor Summary
Constructors Constructor Description DefaultExternalStructureCheckerResult(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)
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getErrorCode()
This function returns aString
which identifies the problems thus this must be unique for each class that implements this interfaceint
hashCode()
-
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 Detail
-
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 Detail
-
getErrorCode
public String 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
public boolean equals(Object obj)
- Overrides:
equals
in classDefaultStructureCheckerResult
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultStructureCheckerResult
-
-