Class ConvertToIonicFormFixer

java.lang.Object
chemaxon.fixers.AbstractStructureFixer
chemaxon.fixers.ConvertToIonicFormFixer
All Implemented Interfaces:
StructureFixer

@PublicApi public class ConvertToIonicFormFixer extends AbstractStructureFixer
A descendant of AbstractStructureFixer which converts the incorrectly drawn (connected to bond, no charge) covalent counter ion representation into ionic form.
Since:
Marvin 5.4
  • Constructor Details

    • ConvertToIonicFormFixer

      public ConvertToIonicFormFixer()
  • Method Details

    • fix

      public boolean fix(StructureCheckerResult result)
      Checker results contain atoms from the alkali metal and alkaline earth metal groups and their ionic counterparts of N, O, S atoms. The fix removes the bonds between them and adds charges to the atoms involved.
      Parameters:
      result - results from checker
      Returns:
      true if the fix was successful; the molecule in result is changed