@PublicAPI public class DefaultStructureCheckerResult extends java.lang.Object implements StructureCheckerResult
StructureCheckerResult
Constructor and Description |
---|
DefaultStructureCheckerResult(StructureChecker source,
java.util.List<MolAtom> atoms,
java.util.List<MolBond> bonds,
Molecule molecule)
Constructor which initialize all the properties.
|
DefaultStructureCheckerResult(StructureChecker source,
java.util.List<MolAtom> atoms,
java.util.List<MolBond> bonds,
StructureCheckerErrorType errorType,
Molecule molecule,
java.lang.String description,
java.lang.String name,
java.lang.String localMenuName,
java.lang.String helpText,
javax.swing.Icon icon)
|
DefaultStructureCheckerResult(StructureChecker source,
java.util.List<MolAtom> atoms,
java.util.List<MolBond> bonds,
StructureCheckerErrorType errorType,
Molecule molecule,
java.lang.String description,
java.lang.String name,
java.lang.String localMenuName,
java.lang.String helpText,
javax.swing.Icon icon,
int errorCount)
Constructor which initialize all the properties.
|
Modifier and Type | Method and Description |
---|---|
void |
convert(Molecule molecule,
java.util.Map<java.lang.String,java.util.Map<? extends java.lang.Object,? extends java.lang.Object>> convertData)
This method converts the entities contained in this result according to the convertData.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<MolAtom> |
getAtoms() |
java.util.List<MolBond> |
getBonds() |
java.lang.String |
getDescription() |
int |
getErrorCount()
Return the error count.
|
protected java.lang.String |
getErrorDescription(StructureCheckerDescriptor descriptor,
int errorCount) |
StructureCheckerErrorType |
getErrorType() |
java.lang.String |
getHelpText() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getLocalMenuName() |
Molecule |
getMolecule() |
java.lang.String |
getName() |
StructureChecker |
getSource() |
int |
hashCode() |
void |
setAtoms(java.util.List<MolAtom> atoms)
This method sets the atoms property
|
void |
setBonds(java.util.List<MolBond> bonds)
This method sets the bonds property
|
void |
setMolecule(Molecule molecule)
This method sets the molecule
|
java.lang.String |
toString() |
public DefaultStructureCheckerResult(StructureChecker source, java.util.List<MolAtom> atoms, java.util.List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, java.lang.String description, java.lang.String name, java.lang.String localMenuName, java.lang.String helpText, javax.swing.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, java.util.List<MolAtom> atoms, java.util.List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, java.lang.String description, java.lang.String name, java.lang.String localMenuName, java.lang.String helpText, javax.swing.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 DefaultStructureCheckerResult(StructureChecker source, java.util.List<MolAtom> atoms, java.util.List<MolBond> bonds, Molecule molecule)
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 problempublic StructureChecker getSource()
getSource
in interface StructureCheckerResult
public java.lang.String getHelpText()
getHelpText
in interface StructureCheckerResult
public java.lang.String getLocalMenuName()
getLocalMenuName
in interface StructureCheckerResult
public java.util.List<MolAtom> getAtoms()
getAtoms
in interface StructureCheckerResult
List
of MolAtom
which contains the affected atoms of the problempublic java.util.List<MolBond> getBonds()
getBonds
in interface StructureCheckerResult
List
of MolBond
which contains the affected bonds of the problempublic java.lang.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 java.lang.String getName()
getName
in interface StructureCheckerResult
StructureChecker
found the problempublic javax.swing.Icon getIcon()
getIcon
in interface StructureCheckerResult
public int getErrorCount()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void setAtoms(java.util.List<MolAtom> atoms)
StructureCheckerResult
setAtoms
in interface StructureCheckerResult
atoms
- is a List
of MolAtom
public void setBonds(java.util.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, java.util.Map<java.lang.String,java.util.Map<? extends java.lang.Object,? extends java.lang.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 java.lang.String getErrorDescription(StructureCheckerDescriptor descriptor, int errorCount)