public class CellMlRecognizer extends FormatRecognizer
Modifier and Type | Field and Description |
---|---|
protected static int |
priority
priority for this format recognizer
|
IDENTIFIERS_BASE, PURL_BASE
Constructor and Description |
---|
CellMlRecognizer() |
Modifier and Type | Method and Description |
---|---|
URI |
getFormatByParsing(File file,
String mimeType)
Parses the given file and tries to determine the format, such as purl.org
or identifiers.org URI.
|
URI |
getFormatFromExtension(String extension)
Tries to map the given file extension to a format.
|
URI |
getFormatFromMime(String mime)
Tries to map the given mime type to a format.
|
int |
getPriority()
Returns the priority of this format recognizer.
|
static void |
setPriority(int newPriority)
Sets the priority of this format recognizer and triggers a resort of all
format recognizers.
|
buildUri, buildUri
public static void setPriority(int newPriority)
newPriority
- the new priority of this recogniserpublic int getPriority()
FormatRecognizer
getPriority
in class FormatRecognizer
public URI getFormatByParsing(File file, String mimeType)
FormatRecognizer
null
.getFormatByParsing
in class FormatRecognizer
file
- Path to the filemimeType
- MIME type for quick evaluation.public URI getFormatFromMime(String mime)
FormatRecognizer
null
.getFormatFromMime
in class FormatRecognizer
mime
- MIME typepublic URI getFormatFromExtension(String extension)
FormatRecognizer
null
.getFormatFromExtension
in class FormatRecognizer
extension
- file extensionCopyright © 2018 SEMS project @ University of Rostock. All rights reserved.