Class OWLParserFactoryImpl

java.lang.Object
org.semanticweb.owlapi.io.OWLParserFactoryImpl
All Implemented Interfaces:
Serializable, Supplier<OWLParser>, OWLParserFactory, MIMETypeAware
Direct Known Subclasses:
DLSyntaxOWLParserFactory, KRSS2OWLParserFactory, KRSSOWLParserFactory, ManchesterOWLSyntaxOntologyParserFactory, OBOFormatOWLAPIParserFactory, OWLFunctionalSyntaxOWLParserFactory, OWLXMLParserFactory, RDFXMLParserFactory, TurtleOntologyParserFactory

public abstract class OWLParserFactoryImpl extends Object implements OWLParserFactory
Generic parser factory.
Author:
ignazio
See Also:
  • Method Details

    • getSupportedFormat

      public OWLDocumentFormatFactory getSupportedFormat()
      Specified by:
      getSupportedFormat in interface OWLParserFactory
      Returns:
      The supported format for this parser.
    • get

      public final OWLParser get()
      Specified by:
      get in interface Supplier<OWLParser>
    • getDefaultMIMEType

      @Nullable public final String getDefaultMIMEType()
      Description copied from interface: MIMETypeAware
      Returns the default MIME Type for the OWLDocumentFormat that this class is a factory for.
      Specified by:
      getDefaultMIMEType in interface MIMETypeAware
      Returns:
      The default MIME Type for the OWLDocumentFormat that this class is a factory for or null if no MIME Types are specified.
    • getMIMETypes

      public final List<String> getMIMETypes()
      Description copied from interface: MIMETypeAware
      Returns a sorted list of MIME types for the OWLDocumentFormat that this class is a factory for. If this list is not empty, the first element in the returned list must be the default MIME type.
      Specified by:
      getMIMETypes in interface MIMETypeAware
      Returns:
      A list of strings containing the known MIME types for this format.
    • handlesMimeType

      public final boolean handlesMimeType(String mimeType)
      Description copied from interface: MIMETypeAware
      Determines whether either MIMETypeAware.getDefaultMIMEType() equals the given mime type or MIMETypeAware.getMIMETypes() contains the given mime type.
      Specified by:
      handlesMimeType in interface MIMETypeAware
      Parameters:
      mimeType - The MIME type to match against.
      Returns:
      True if the given MIME type matches this format.