public class DefaultStructureCheckerResult extends Object implements StructureCheckerResult
StructureCheckerResult| Constructor and Description |
|---|
DefaultStructureCheckerResult(StructureChecker source,
List<MolAtom> atoms,
List<MolBond> bonds,
Molecule molecule)
Constructor which initialize all the properties.
|
DefaultStructureCheckerResult(StructureChecker source,
List<MolAtom> atoms,
List<MolBond> bonds,
StructureCheckerErrorType errorType,
Molecule molecule,
String description,
String name,
String localMenuName,
String helpText,
Icon icon)
|
DefaultStructureCheckerResult(StructureChecker source,
List<MolAtom> atoms,
List<MolBond> bonds,
StructureCheckerErrorType errorType,
Molecule molecule,
String description,
String name,
String localMenuName,
String helpText,
Icon icon,
int errorCount)
Constructor which initialize all the properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
convert(Molecule molecule,
Map<String,Map<? extends Object,? extends Object>> convertData)
This method converts the entities contained in this result according to the convertData.
|
boolean |
equals(Object obj) |
List<MolAtom> |
getAtoms() |
List<MolBond> |
getBonds() |
String |
getDescription() |
int |
getErrorCount()
Return the error count.
|
protected String |
getErrorDescription(StructureCheckerDescriptor descriptor,
int errorCount) |
StructureCheckerErrorType |
getErrorType() |
String |
getHelpText() |
Icon |
getIcon() |
String |
getLocalMenuName() |
Molecule |
getMolecule() |
String |
getName() |
StructureChecker |
getSource() |
int |
hashCode() |
void |
setAtoms(List<MolAtom> atoms)
This method sets the atoms property
|
void |
setBonds(List<MolBond> bonds)
This method sets the bonds property
|
void |
setMolecule(Molecule molecule)
This method sets the molecule
|
String |
toString() |
public DefaultStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, 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 problemerrorType - is an instance of StructureCheckerErrorType which identifies 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 problemicon - is an instance of Icon which will be shown in Marvin Sketch checker dialogserrorCount - count of identified errors@Deprecated public DefaultStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, Icon icon)
DefaultStructureCheckerResult(StructureChecker, List, List, StructureCheckerErrorType, Molecule, String, String, String, String, Icon, int) insteadsource - 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 problemerrorType - is an instance of StructureCheckerErrorType which identifies 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 problemicon - is an instance of Icon which will be shown in Marvin Sketch checker dialogspublic StructureChecker getSource()
getSource in interface StructureCheckerResultpublic String getHelpText()
getHelpText in interface StructureCheckerResultpublic String getLocalMenuName()
getLocalMenuName in interface StructureCheckerResultpublic List<MolAtom> getAtoms()
getAtoms in interface StructureCheckerResultList of MolAtom which contains the affected atoms of the problempublic List<MolBond> getBonds()
getBonds in interface StructureCheckerResultList of MolBond which contains the affected bonds of the problempublic String getDescription()
getDescription in interface StructureCheckerResultpublic Molecule getMolecule()
getMolecule in interface StructureCheckerResultpublic StructureCheckerErrorType getErrorType()
getErrorType in interface StructureCheckerResultStructureCheckerErrorType which is the errorCode of the problempublic String getName()
getName in interface StructureCheckerResultStructureChecker found the problempublic Icon getIcon()
getIcon in interface StructureCheckerResultpublic int getErrorCount()
public void setAtoms(List<MolAtom> atoms)
StructureCheckerResultsetAtoms in interface StructureCheckerResultatoms - is a List of MolAtompublic void setBonds(List<MolBond> bonds)
StructureCheckerResultsetBonds in interface StructureCheckerResultbonds - is a List of MolBondpublic void setMolecule(Molecule molecule)
StructureCheckerResultsetMolecule in interface StructureCheckerResultmolecule - is a Molecule instancepublic void convert(Molecule molecule, Map<String,Map<? extends Object,? extends Object>> convertData)
StructureCheckerResultconvert in interface StructureCheckerResultmolecule - the original molecule objectconvertData - is a map with String keys and Map values which contains
the convert related informationprotected String getErrorDescription(StructureCheckerDescriptor descriptor, int errorCount)