|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for modules that can export the ontology in a certain file format.
An ExportHandler can be registered with OntologyManager.addExportHandler()
.
However, it's easier just to declare all export handlers (their fully qualified classes) as a comma separated list
under the "cf.exporthandler
" key in the ConsensusFoundation.properties
configuration file.
The declared export handlers will be loaded by OntologyManager.init()
. Instantiation will only be
successful if one of the following constructors is available (the first one that matches will be used):
MyExportHandler(Properties config, LoggingManager log, OntologyManager om)
MyExportHandler(LoggingManager log, OntologyManager om)
MyExportHandler(OntologyManager om)
MyExportHandler()
Properties
parameter contains all entries from ConsensusFoundation.properties
.
OntologyManager
,
ImportHandler
Method Summary | |
void |
exportOntology(OutputStream out,
boolean exportInternals)
Exports the ontology to a given OutputStream. |
String |
getContentType()
Returns the content (MIME) type that this handler will export, e.h. |
String |
getDescription()
Returns a short description about this export handler. |
String |
getExtension()
Returns the file extensions of the ontology format that this handler can export, e.g. |
Method Detail |
public void exportOntology(OutputStream out, boolean exportInternals) throws IOException, OntologyManagerException
This method is responsible for closing the stream!
out
- the OutputStream to write the ontology toexportInternals
- a flag if internal element shall be exported (like users and the "created-by" association)
IOException
- if an IO error occurs while writing the ontology
OntologyManagerException
- if the ontology cannot be exported for some other reasonpublic String getContentType()
public String getExtension()
public String getDescription()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |