Package org.semanticweb.owlapi.util
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 Summary
Modifier and TypeMethodDescriptionboolean
get()
Returns the default MIME Type for the OWLDocumentFormat that this class is a factory for.getKey()
Returns the key for the OWLDocumentFormat that this class is a factory for without necessarily creating an instance of the OWLDocumentFormat.Returns a sorted list of MIME types for the OWLDocumentFormat that this class is a factory for.boolean
handlesMimeType
(String mimeType) Determines whether eitherMIMETypeAware.getDefaultMIMEType()
equals the given mime type orMIMETypeAware.getMIMETypes()
contains the given mime type.int
hashCode()
boolean
Returns true if this format can be represented using textual characters.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.model.OWLDocumentFormatFactory
createFormat
-
Method Details
-
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 interfaceOWLDocumentFormatFactory
- Returns:
- The key for the OWLDocumentFormat.
-
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 interfaceMIMETypeAware
- Returns:
- The default MIME Type for the OWLDocumentFormat that this class is a factory for or null if no MIME Types are specified.
-
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 interfaceMIMETypeAware
- Returns:
- A list of strings containing the known MIME types for this format.
-
handlesMimeType
Description copied from interface:MIMETypeAware
Determines whether eitherMIMETypeAware.getDefaultMIMEType()
equals the given mime type orMIMETypeAware.getMIMETypes()
contains the given mime type.- Specified by:
handlesMimeType
in interfaceMIMETypeAware
- 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 interfaceOWLDocumentFormatFactory
- Returns:
- True if this format is textual, and false if it is a binary format.
-
get
- Specified by:
get
in interfaceSupplier<OWLDocumentFormat>
-
hashCode
public int hashCode() -
equals
-