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 SummaryConstructorsConstructorDescriptionDefaultExternalStructureCheckerResult(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 SummaryMethods inherited from class chemaxon.checkers.result.DefaultStructureCheckerResultconvert, getAtoms, getBonds, getDescription, getErrorCount, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface chemaxon.checkers.result.StructureCheckerResultconvert, getAtoms, getBonds, getDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule
- 
Constructor Details- 
DefaultExternalStructureCheckerResultpublic 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 the- StructureCheckerinstance which identified the problem
- atoms- a- Listof- MolAtomwhich contains the affected atoms of the problem
- bonds- a- Listof- MolBondwhich contains the affected bonds of the problem
- molecule- is a- Moleculeinstance which contains the described problem
- description- is short information about the problem
- name- is the name of the checker which found the described problem
- localMenuName- is a- Stringwhich should be shown in the local menu of Marvin Sketch
- helpText- is help message for the problem
- errorCode- is a- Stringwhich represents a unique identifier of the result
- icon- is an instance of- Iconwhich will be shown in Marvin Sketch checker dialogs
- errorCount- 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 the- StructureCheckerinstance which identified the problem
- atoms- a- Listof- MolAtomwhich contains the affected atoms of the problem
- bonds- a- Listof- MolBondwhich contains the affected bonds of the problem
- molecule- is a- Moleculeinstance which contains the described problem
- description- is short information about the problem
- name- is the name of the checker which found the described problem
- localMenuName- is a- Stringwhich should be shown in the local menu of Marvin Sketch
- helpText- is help message for the problem
- errorCode- is a- Stringwhich represents a unique identifier of the result
- icon- is an instance of- Iconwhich will be shown in Marvin Sketch checker dialogs
 
- 
DefaultExternalStructureCheckerResultpublic DefaultExternalStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String errorCode) Constructor which initialize all the properties.- Parameters:
- source- is the- StructureCheckerinstance which identified the problem
- atoms- a- Listof- MolAtomwhich contains the affected atoms of the problem
- bonds- a- Listof- MolBondwhich contains the affected bonds of the problem
- molecule- is a- Moleculeinstance which contains the described problem
- errorCode- is a- Stringwhich represents a unique identifier of the result
 
 
- 
- 
Method Details- 
getErrorCodeDescription 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 interface- ExternalStructureCheckerResult
- Returns:
- a Stringobject which is the error code of the problem
 
- 
equals- Overrides:
- equalsin class- DefaultStructureCheckerResult
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- DefaultStructureCheckerResult
 
 
- 
DefaultExternalStructureCheckerResult(StructureChecker, List, List, Molecule, String, String, String, String, String, Icon, int)