|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.OntologyExporter
public abstract class OntologyExporter
This abstract class is used to export AceWiki ontologies in different formats.
Constructor Summary | |
---|---|
protected |
OntologyExporter()
Creates a new exporter. |
Method Summary | |
---|---|
void |
export(java.io.OutputStream outputStream)
Writes the export content into the given output stream. |
abstract java.lang.String |
getContentType()
Returns the content type for the given export type. |
abstract java.lang.String |
getFileSuffix()
Returns the file suffix for the given export type. |
abstract java.lang.String |
getName()
Returns the name of this exporter as shown to the user. |
protected Ontology |
getOntology()
Returns the AceWiki ontology for this exporter. |
protected java.util.List<OntologyElement> |
getOntologyElements()
Returns the list of all ontology elements. |
protected java.io.OutputStream |
getOutputStream()
Returns the current output stream. |
abstract boolean |
isApplicable()
Returns whether this ontology exporter is applicable in the current context. |
protected void |
write(java.lang.String str)
Writes the given string into the current output stream. |
protected abstract void |
writeContent()
This internal method should write the export content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected OntologyExporter()
Method Detail |
---|
public void export(java.io.OutputStream outputStream)
outputStream
- The output stream.public abstract boolean isApplicable()
public abstract java.lang.String getName()
protected abstract void writeContent() throws java.io.IOException
java.io.IOException
- when an IO problem occurs.public abstract java.lang.String getFileSuffix()
public abstract java.lang.String getContentType()
protected Ontology getOntology()
protected java.util.List<OntologyElement> getOntologyElements()
protected java.io.OutputStream getOutputStream()
protected void write(java.lang.String str) throws java.io.IOException
str
- The string to be written.
java.io.IOException
- when an IO problem occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |