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
ConstructorsConstructorDescriptionDefaultExternalStructureCheckerResult(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 theStructureCheckerinstance which identified the problematoms- aListofMolAtomwhich contains the affected atoms of the problembonds- aListofMolBondwhich contains the affected bonds of the problemmolecule- is aMoleculeinstance which contains the described problemdescription- is short information about the problemname- is the name of the checker which found the described problemlocalMenuName- is aStringwhich should be shown in the local menu of Marvin SketchhelpText- is help message for the problemerrorCode- is aStringwhich represents a unique identifier of the resulticon- is an instance ofIconwhich 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 theStructureCheckerinstance which identified the problematoms- aListofMolAtomwhich contains the affected atoms of the problembonds- aListofMolBondwhich contains the affected bonds of the problemmolecule- is aMoleculeinstance which contains the described problemdescription- is short information about the problemname- is the name of the checker which found the described problemlocalMenuName- is aStringwhich should be shown in the local menu of Marvin SketchhelpText- is help message for the problemerrorCode- is aStringwhich represents a unique identifier of the resulticon- is an instance ofIconwhich 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 theStructureCheckerinstance which identified the problematoms- aListofMolAtomwhich contains the affected atoms of the problembonds- aListofMolBondwhich contains the affected bonds of the problemmolecule- is aMoleculeinstance which contains the described problemerrorCode- is aStringwhich represents a unique identifier of the result
-
-
Method Details
-
getErrorCode
Description copied from interface:ExternalStructureCheckerResultThis function returns aStringwhich identifies the problems thus this must be unique for each class that implements this interface- Specified by:
getErrorCodein interfaceExternalStructureCheckerResult- Returns:
- a
Stringobject which is the error code of the problem
-
equals
- Overrides:
equalsin classDefaultStructureCheckerResult
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultStructureCheckerResult
-
DefaultExternalStructureCheckerResult(StructureChecker, List, List, Molecule, String, String, String, String, String, Icon, int)