@ParametersAreNonnullByDefault public class OBOFormatWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
OBOFormatWriter.NameProvider
Provide names for given OBO identifiers.
|
static class |
OBOFormatWriter.OBODocNameProvider
Default implementation of a
OBOFormatWriter.NameProvider using an underlying. |
static class |
OBOFormatWriter.OWLOntologyNameProvider
Alternative implementation to lookup labels in an
OWLOntology. |
| Constructor and Description |
|---|
OBOFormatWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCheckStructure() |
void |
setCheckStructure(boolean isCheckStructure) |
static void |
sortTermClauses(List<Clause> clauses)
Sort a list of term frame clauses according to in the OBO format specified tag and value
order.
|
static void |
write(Clause clause,
Writer writer,
OBOFormatWriter.NameProvider nameProvider)
Write.
|
void |
write(Frame frame,
Writer writer,
OBOFormatWriter.NameProvider nameProvider) |
void |
write(OBODoc doc,
File outFile) |
void |
write(OBODoc doc,
String outFilename) |
void |
write(OBODoc doc,
Writer writer) |
void |
write(OBODoc doc,
Writer writer,
OBOFormatWriter.NameProvider nameProvider) |
void |
write(Reader reader,
Writer writer) |
void |
write(String fn,
Writer writer) |
void |
write(URL url,
Writer writer)
Write.
|
static void |
writeDef(Clause clause,
Writer writer)
Write def.
|
void |
writeHeader(Frame frame,
Writer writer,
OBOFormatWriter.NameProvider nameProvider)
Write header.
|
static void |
writePropertyValue(Clause clause,
Writer writer)
Write property value.
|
static void |
writeSynonym(Clause clause,
Writer writer)
Write synonym.
|
public static void writeDef(Clause clause, Writer writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public static void writePropertyValue(Clause clause, Writer writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public static void writeSynonym(Clause clause, Writer writer) throws IOException
clause - the clausewriter - the writerIOException - Signals that an I/O exception has occurred.public static void write(Clause clause, Writer writer, @Nullable OBOFormatWriter.NameProvider nameProvider) throws IOException
clause - the clausewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public static void sortTermClauses(List<Clause> clauses)
clauses - the clausespublic boolean isCheckStructure()
public void setCheckStructure(boolean isCheckStructure)
isCheckStructure - the new check structurepublic void write(String fn, Writer writer) throws IOException
fn - the file name to read inwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the OBO format parser exceptionpublic void write(URL url, Writer writer) throws IOException
url - the urlwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the OBO format parser exceptionpublic void write(Reader reader, Writer writer) throws IOException
reader - the readerwriter - the writerIOException - Signals that an I/O exception has occurred.OBOFormatParserException - the OBO format parser exceptionpublic void write(OBODoc doc, String outFilename) throws IOException
doc - the docoutFilename - the out file nameIOException - Signals that an I/O exception has occurred.public void write(OBODoc doc, File outFile) throws IOException
doc - the docoutFile - the out fileIOException - Signals that an I/O exception has occurred.public void write(OBODoc doc, Writer writer) throws IOException
doc - the docwriter - the writerIOException - Signals that an I/O exception has occurred.public void write(OBODoc doc, Writer writer, OBOFormatWriter.NameProvider nameProvider) throws IOException
doc - the docwriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public void writeHeader(Frame frame, Writer writer, OBOFormatWriter.NameProvider nameProvider) throws IOException
frame - the framewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.public void write(Frame frame, Writer writer, @Nullable OBOFormatWriter.NameProvider nameProvider) throws IOException
frame - the framewriter - the writernameProvider - the name providerIOException - Signals that an I/O exception has occurred.Copyright © 2020 The University of Manchester. All rights reserved.