public class DefaultExternalStructureCheckerResult extends DefaultStructureCheckerResult implements ExternalStructureCheckerResult
DefaultStructureCheckerResult
also implements the
ExternalStructureCheckerResult
interface thus providing a default implementation
base class for external structure checkers' results.Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getErrorCode()
This function returns a
String which identifies the problems thus this
must be unique for each class that implements this interface |
int |
hashCode() |
convert, getAtoms, getBonds, getDescription, getErrorCount, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
convert, getAtoms, getBonds, getDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule
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)
source
- is the StructureChecker
instance which identified the problematoms
- a List
of MolAtom
which contains the affected atoms of the problembonds
- a List
of MolBond
which contains the affected bonds of the problemmolecule
- is a Molecule
instance which contains the described problemdescription
- is short information about the problemname
- is the name of the checker which found the described problemlocalMenuName
- is a String
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemerrorCode
- is a String
which represents a unique identifier of the resulticon
- is an instance of Icon
which will be shown in Marvin Sketch checker dialogserrorCount
- count of identified errors@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)
DefaultExternalStructureCheckerResult(StructureChecker, List, List, Molecule, String, String, String, String, String, Icon, int)
source
- is the StructureChecker
instance which identified the problematoms
- a List
of MolAtom
which contains the affected atoms of the problembonds
- a List
of MolBond
which contains the affected bonds of the problemmolecule
- is a Molecule
instance which contains the described problemdescription
- is short information about the problemname
- is the name of the checker which found the described problemlocalMenuName
- is a String
which should be shown in the local menu of Marvin SketchhelpText
- is help message for the problemerrorCode
- is a String
which represents a unique identifier of the resulticon
- is an instance of Icon
which will be shown in Marvin Sketch checker dialogspublic DefaultExternalStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule, String errorCode)
source
- is the StructureChecker
instance which identified the problematoms
- a List
of MolAtom
which contains the affected atoms of the problembonds
- a List
of MolBond
which contains the affected bonds of the problemmolecule
- is a Molecule
instance which contains the described problemerrorCode
- is a String
which represents a unique identifier of the resultpublic String getErrorCode()
ExternalStructureCheckerResult
String
which identifies the problems thus this
must be unique for each class that implements this interfacegetErrorCode
in interface ExternalStructureCheckerResult
String
object which is the error code of the problempublic boolean equals(Object obj)
equals
in class DefaultStructureCheckerResult
public int hashCode()
hashCode
in class DefaultStructureCheckerResult