public class SerializationFormat extends Object
| Constructor and Description |
|---|
SerializationFormat(String name,
SerializationFormatIOType ioType,
SerializationFormatGraphType graphType,
String extension,
String headerType)
Constructor
|
SerializationFormat(String name,
SerializationFormatIOType ioType,
SerializationFormatGraphType graphType,
String extension,
String headerType,
Set<String> synonyms)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getExtension()
Gets the serialization extension.
|
SerializationFormatGraphType |
getGraphType()
Accorting to
SerializationFormatGraphType this can be an
single graph or dataset |
String |
getHeaderType()
Gets the serialization mimetype
|
SerializationFormatIOType |
getIoType()
Accorting to
SerializationFormatIOType this can be an
input / output or input and output serialization format |
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, SerializationFormatIOType ioType, SerializationFormatGraphType graphType, String extension, String headerType)
name - a String object.ioType - a SerializationFormatIOType object.extension - a String object.headerType - a String object.graphType - a SerializationFormatGraphType object.public SerializationFormat(String name, SerializationFormatIOType ioType, SerializationFormatGraphType graphType, String extension, String headerType, Set<String> synonyms)
name - the nameioType - the typeextension - the extensionheaderType - the header typesynonyms - the synonymsgraphType - a SerializationFormatGraphType object.public 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()
public SerializationFormatIOType getIoType()
SerializationFormatIOType this can be an
input / output or input and output serialization formatSerializationFormatIOType object.public SerializationFormatGraphType getGraphType()
SerializationFormatGraphType this can be an
single graph or datasetSerializationFormatGraphType object.Copyright © 2015. All rights reserved.