Package chemaxon.checkers.result
Class DefaultStructureCheckerResult
java.lang.Object
chemaxon.checkers.result.DefaultStructureCheckerResult
- All Implemented Interfaces:
StructureCheckerResult
- Direct Known Subclasses:
AromaticityCheckerResult,AtomQueryPropertyCheckerResult,BondAngleCheckerResult,BondLengthCheckerResult,DefaultExternalStructureCheckerResult,ExplicitHydrogenResult,MetalloceneCheckerResult,ReactionCheckerResult,RgroupCheckerResult,SgroupCheckerResult,SubstructureCheckerResult
@PublicApi
public class DefaultStructureCheckerResult
extends Object
implements StructureCheckerResult
This class is the default implementation of
StructureCheckerResult- Since:
- Marvin 5.3
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, String name, String localMenuName, String helpText, Icon icon) Deprecated.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.DefaultStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule) Constructor which initialize all the properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method converts the entities contained in this result according to the convertData.booleangetAtoms()getBonds()intReturn the error count.protected static StringgetErrorDescription(StructureCheckerDescriptor descriptor, int errorCount) getIcon()getName()inthashCode()voidThis method sets the atoms propertyvoidThis method sets the bonds propertyvoidsetMolecule(Molecule molecule) This method sets the moleculetoString()
-
Constructor Details
-
DefaultStructureCheckerResult
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) Constructor which initialize all the properties.- Parameters:
source- is theStructureCheckerinstance which identified the problematoms- aListofMolAtomwhich contains the affected atoms of the problembonds- aListofMolBondwhich contains the affected bonds of the problemerrorType- is an instance ofStructureCheckerErrorTypewhich identifies the problemmolecule- is aMoleculeinstance which contains the described problemdescription- is short information about the problemname- is the name of the checker which found the described problemlocalMenuName- is aStringwhich should be shown in the local menu of Marvin SketchhelpText- is help message for the problemicon- is an instance ofIconwhich will be shown in Marvin Sketch checker dialogserrorCount- count of identified errors
-
DefaultStructureCheckerResult
@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) Deprecated.Constructor which initialize all the properties.- Parameters:
source- is theStructureCheckerinstance which identified the problematoms- aListofMolAtomwhich contains the affected atoms of the problembonds- aListofMolBondwhich contains the affected bonds of the problemerrorType- is an instance ofStructureCheckerErrorTypewhich identifies the problemmolecule- is aMoleculeinstance which contains the described problemdescription- is short information about the problemname- is the name of the checker which found the described problemlocalMenuName- is aStringwhich should be shown in the local menu of Marvin SketchhelpText- is help message for the problemicon- is an instance ofIconwhich will be shown in Marvin Sketch checker dialogs
-
DefaultStructureCheckerResult
public DefaultStructureCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, Molecule molecule) Constructor which initialize all the properties.- Parameters:
source- is theStructureCheckerinstance which identified the problematoms- aListofMolAtomwhich contains the affected atoms of the problembonds- aListofMolBondwhich contains the affected bonds of the problemmolecule- is aMoleculeinstance which contains the described problem
-
-
Method Details
-
getSource
- Specified by:
getSourcein interfaceStructureCheckerResult- Returns:
- the StructureChecker instance which created this result
-
getHelpText
- Specified by:
getHelpTextin interfaceStructureCheckerResult- Returns:
- the help text of the problem
-
getLocalMenuName
- Specified by:
getLocalMenuNamein interfaceStructureCheckerResult- Returns:
- the name should show in the local menu of Marvin Sketch
-
getAtoms
- Specified by:
getAtomsin interfaceStructureCheckerResult- Returns:
- a
ListofMolAtomwhich contains the affected atoms of the problem
-
getBonds
- Specified by:
getBondsin interfaceStructureCheckerResult- Returns:
- a
ListofMolBondwhich contains the affected bonds of the problem
-
getDescription
- Specified by:
getDescriptionin interfaceStructureCheckerResult- Returns:
- the description of the error
-
getMolecule
- Specified by:
getMoleculein interfaceStructureCheckerResult- Returns:
- the molecule which has the current error
-
getErrorType
- Specified by:
getErrorTypein interfaceStructureCheckerResult- Returns:
- an instance of
StructureCheckerErrorTypewhich is the errorCode of the problem
-
getName
- Specified by:
getNamein interfaceStructureCheckerResult- Returns:
- the name of the
StructureCheckerfound the problem
-
getIcon
- Specified by:
getIconin interfaceStructureCheckerResult- Returns:
- the icon of the problem
-
getErrorCount
public int getErrorCount()Return the error count.- Returns:
- the error count
-
hashCode
public int hashCode() -
equals
-
toString
-
setAtoms
Description copied from interface:StructureCheckerResultThis method sets the atoms property- Specified by:
setAtomsin interfaceStructureCheckerResult- Parameters:
atoms- is aListofMolAtom
-
setBonds
Description copied from interface:StructureCheckerResultThis method sets the bonds property- Specified by:
setBondsin interfaceStructureCheckerResult- Parameters:
bonds- is aListofMolBond
-
setMolecule
Description copied from interface:StructureCheckerResultThis method sets the molecule- Specified by:
setMoleculein interfaceStructureCheckerResult- Parameters:
molecule- is aMoleculeinstance
-
convert
Description copied from interface:StructureCheckerResultThis method converts the entities contained in this result according to the convertData. By default this method isn't needed to call from any place.- Specified by:
convertin interfaceStructureCheckerResult- Parameters:
molecule- the original molecule objectconvertData- is a map withStringkeys and Map values which contains the convert related information
-
getErrorDescription
-
DefaultStructureCheckerResult(StructureChecker, List, List, StructureCheckerErrorType, Molecule, String, String, String, String, Icon, int)instead