Class MOPAC2007Format

All Implemented Interfaces:
IChemFormat, IChemFormatMatcher, IResourceFormat

public class MOPAC2007Format extends AbstractResourceFormat implements IChemFormatMatcher
Source code:
Belongs to CDK module:
  • Constructor Details

    • MOPAC2007Format

      public MOPAC2007Format()
  • Method Details

    • getInstance

      public static IResourceFormat getInstance()
    • getFormatName

      public String getFormatName()
      Returns a one-lined format name of the format.
      Specified by:
      getFormatName in interface IResourceFormat
    • getMIMEType

      public String getMIMEType()
      Returns the accepted MIME type for this format.
      Specified by:
      getMIMEType in interface IResourceFormat
      null if no MIME type has been accepted on
    • getPreferredNameExtension

      public String getPreferredNameExtension()
      Returns the preferred resource name extension.
      Specified by:
      getPreferredNameExtension in interface IResourceFormat
    • getNameExtensions

      public String[] getNameExtensions()
      Returns an array of common resource name extensions.
      Specified by:
      getNameExtensions in interface IResourceFormat
    • getReaderClassName

      public String getReaderClassName()
      Returns the class name of the CDK Reader for this format.
      Specified by:
      getReaderClassName in interface IChemFormat
      null if no CDK Reader is available.
    • getWriterClassName

      public String getWriterClassName()
      Returns the class name of the CDK Writer for this format.
      Specified by:
      getWriterClassName in interface IChemFormat
      null if no CDK Writer is available.
    • matches

      public boolean matches(int lineNumber, String line)
    • isXMLBased

      public boolean isXMLBased()
      Indicates if the format is an XML-based language.
      Specified by:
      isXMLBased in interface IResourceFormat
      if the format is XML-based.
    • getSupportedDataFeatures

      public int getSupportedDataFeatures()
      Returns an integer indicating the data features that this format supports. The integer is composed as explained in DataFeatures. May be set to DataFeatures.NONE as default.
      Specified by:
      getSupportedDataFeatures in interface IChemFormat
      See Also:
    • getRequiredDataFeatures

      public int getRequiredDataFeatures()
      Returns an integer indicating the data features that this format requires. For example, the XYZ format requires 3D coordinates.
      Specified by:
      getRequiredDataFeatures in interface IChemFormat
      See Also:
    • matches

      public final IChemFormatMatcher.MatchResult matches(List<String> lines)
      Simple implementation, runs the lines one-by-one through matches(int, String) and returns true if any line matches.
      Specified by:
      matches in interface IChemFormatMatcher
      lines - lines of the input to be checked
      runs the lines