Package chemaxon.checkers.result
Class SgroupCheckerResult
java.lang.Object
chemaxon.checkers.result.DefaultStructureCheckerResult
chemaxon.checkers.result.SgroupCheckerResult
- All Implemented Interfaces:
StructureCheckerResult
- Direct Known Subclasses:
DataSgroupCheckerResult
A descendant of
DefaultStructureCheckerResult for identifying Sgroup problems.- Since:
- Marvin 5.3
-
Constructor Summary
ConstructorsConstructorDescriptionSgroupCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, List<Sgroup> groups, String name, String localMenuName, String helpText, Icon icon) Constructor which initialize all the properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method converts the entities contained in this result according to the convertData.booleanReturns aListwhich contains the affected groups of the probleminthashCode()voidsetSrgoups(List<Sgroup> groups) This method sets the groups propertyMethods inherited from class chemaxon.checkers.result.DefaultStructureCheckerResult
getAtoms, getBonds, getDescription, getErrorCount, getErrorDescription, getErrorType, getHelpText, getIcon, getLocalMenuName, getMolecule, getName, getSource, setAtoms, setBonds, setMolecule, toString
-
Constructor Details
-
SgroupCheckerResult
public SgroupCheckerResult(StructureChecker source, List<MolAtom> atoms, List<MolBond> bonds, StructureCheckerErrorType errorType, Molecule molecule, String description, List<Sgroup> groups, String name, String localMenuName, String helpText, Icon icon) 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 problemgroups- is aListofSgroupwhich contains the affected groups of 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
-
-
Method Details
-
getSgroups
Returns aListwhich contains the affected groups of the problem -
setSrgoups
This method sets the groups property -
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultStructureCheckerResult
-
equals
- Overrides:
equalsin classDefaultStructureCheckerResult
-
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- Overrides:
convertin classDefaultStructureCheckerResult- Parameters:
molecule- the original molecule objectconvertData- is a map withStringkeys and Map values which contains the convert related information
-