Package org.semanticweb.owlapi.io
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
Generic parser factory.
- Author:
- ignazio
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal OWLParser
get()
final String
Returns the default MIME Type for the OWLDocumentFormat that this class is a factory for.Returns a sorted list of MIME types for the OWLDocumentFormat that this class is a factory for.final boolean
handlesMimeType
(String mimeType) Determines whether eitherMIMETypeAware.getDefaultMIMEType()
equals the given mime type orMIMETypeAware.getMIMETypes()
contains the given mime type.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.io.OWLParserFactory
createParser
-
Method Details
-
getSupportedFormat
- Specified by:
getSupportedFormat
in interfaceOWLParserFactory
- Returns:
- The supported format for this parser.
-
get
-
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.
-