public class SerializationFormat extends Object
| Constructor and Description |
|---|
SerializationFormat(String name,
org.aksw.rdfunit.io.format.SerializationFormatType type,
String extension,
String headerType)
Constructor
|
SerializationFormat(String name,
org.aksw.rdfunit.io.format.SerializationFormatType type,
String extension,
String headerType,
Set<String> synonyms)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getExtension()
Gets the serialization extension.
|
String |
getHeaderType()
Gets the serialization mimetype
|
String |
getName()
Gets the default serialization name.
|
int |
hashCode() |
boolean |
isAcceptedAsInput(String format)
Checks if this format is an input format (or input and output) and matches one of the synonyms
|
boolean |
isAcceptedAsOutput(String format)
Checks if this format is an output format (or input and output) and matches one of the synonyms
|
public SerializationFormat(String name, org.aksw.rdfunit.io.format.SerializationFormatType type, String extension, String headerType)
public SerializationFormat(String name, org.aksw.rdfunit.io.format.SerializationFormatType type, String extension, String headerType, Set<String> synonyms)
name - the nametype - the typeextension - the extensionheaderType - the header typesynonyms - the synonymspublic boolean isAcceptedAsInput(String format)
format - the format e.g. "nt"public boolean isAcceptedAsOutput(String format)
format - the format e.g. "nt"public String getName()
public String getExtension()
public String getHeaderType()
Copyright © 2015. All rights reserved.