Class OWLDocumentFormatFactoryImpl

java.lang.Object
org.semanticweb.owlapi.util.OWLDocumentFormatFactoryImpl
All Implemented Interfaces:
Serializable, Supplier<OWLDocumentFormat>, MIMETypeAware, OWLDocumentFormatFactory
Direct Known Subclasses:
DLSyntaxDocumentFormatFactory, DLSyntaxHTMLDocumentFormatFactory, FunctionalSyntaxDocumentFormatFactory, KRSS2DocumentFormatFactory, KRSSDocumentFormatFactory, LabelFunctionalDocumentFormatFactory, LatexAxiomsListDocumentFormatFactory, LatexDocumentFormatFactory, ManchesterSyntaxDocumentFormatFactory, OBODocumentFormatFactory, OWLXMLDocumentFormatFactory, RDFXMLDocumentFormatFactory, TurtleDocumentFormatFactory

public abstract class OWLDocumentFormatFactoryImpl extends Object implements OWLDocumentFormatFactory
A generic factory class for OWLDocumentFormats. This class can act as a factory for any OWLDocumentFormat type that has a no argument constructor (the default type of OWLDocumentFormat).
Author:
ignazio
See Also:
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: OWLDocumentFormatFactory
      Returns the key for the OWLDocumentFormat that this class is a factory for without necessarily creating an instance of the OWLDocumentFormat.
      Specified by:
      getKey in interface OWLDocumentFormatFactory
      Returns:
      The key for the OWLDocumentFormat.
    • getDefaultMIMEType

      @Nullable public 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 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 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.
    • isTextual

      public boolean isTextual()
      Description copied from interface: OWLDocumentFormatFactory
      Returns true if this format can be represented using textual characters. Returns false if this format must be dealt with using binary methods.
      Specified by:
      isTextual in interface OWLDocumentFormatFactory
      Returns:
      True if this format is textual, and false if it is a binary format.
    • get

      public OWLDocumentFormat get()
      Specified by:
      get in interface Supplier<OWLDocumentFormat>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object