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 StructureCheckerResult
public String getHelpText()
getHelpText
in interface StructureCheckerResult
public String getLocalMenuName()
getLocalMenuName
in interface StructureCheckerResult
public List<MolAtom> getAtoms()
getAtoms
in interface StructureCheckerResult
List
of MolAtom
which contains the affected atoms of the problempublic List<MolBond> getBonds()
getBonds
in interface StructureCheckerResult
List
of MolBond
which contains the affected bonds of the problempublic String getDescription()
getDescription
in interface StructureCheckerResult
public Molecule getMolecule()
getMolecule
in interface StructureCheckerResult
public StructureCheckerErrorType getErrorType()
getErrorType
in interface StructureCheckerResult
StructureCheckerErrorType
which is the errorCode of the problempublic String getName()
getName
in interface StructureCheckerResult
StructureChecker
found the problempublic Icon getIcon()
getIcon
in interface StructureCheckerResult
public int getErrorCount()
public void setAtoms(List<MolAtom> atoms)
StructureCheckerResult
setAtoms
in interface StructureCheckerResult
atoms
- is a List
of MolAtom
public void setBonds(List<MolBond> bonds)
StructureCheckerResult
setBonds
in interface StructureCheckerResult
bonds
- is a List
of MolBond
public void setMolecule(Molecule molecule)
StructureCheckerResult
setMolecule
in interface StructureCheckerResult
molecule
- is a Molecule
instancepublic void convert(Molecule molecule, Map<String,Map<? extends Object,? extends Object>> convertData)
StructureCheckerResult
convert
in interface StructureCheckerResult
molecule
- 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)