|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.uka.ipd.consensus.impl.XTMImportHandler
TODO has to keep base locator! first remove old ontology, then import new one called only on startup
Constructor Summary | |
XTMImportHandler(LoggingManager lm,
OntologyManager om)
|
Method Summary | |
boolean |
canMerge()
Signals whether this handler can not only load (import), but also merge ontologies |
String |
getDescription()
Returns a short description about this import handler. |
String |
getExtension()
Returns the file extensions of the ontology format that this handler can load, e.g. |
void |
importOntology(InputStream in)
Imports an ontology from the given InputStream. |
void |
mergeOntology(InputStream in,
Collection errors)
If this handler supports ontology merging, this method can be called by an application to merge an ontology into the existing ontology. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XTMImportHandler(LoggingManager lm, OntologyManager om)
Method Detail |
public void importOntology(InputStream in) throws IOException, OntologyManagerException
ImportHandler
This method is responsible for closing the stream!
importOntology
in interface ImportHandler
in
- the InputStream to read the ontology from
IOException
- if an IO error occurrs while reading the stream
OntologyManagerException
- if the ontology cannot be loaded for logical reasonspublic void mergeOntology(InputStream in, Collection errors) throws IOException
ImportHandler
This method is responsible for closing the stream!
mergeOntology
in interface ImportHandler
in
- the InputStream to read the ontology fromerrors
- an empty collection provided by the caller, into which the method can put all exceptions that happen during the merge
IOException
- if an IO error occurrs while reading the streamImportHandler.canMerge()
public boolean canMerge()
ImportHandler
canMerge
in interface ImportHandler
true
if the handler can merge ontologies, false
otherwiseImportHandler.mergeOntology(InputStream, Collection)
public String getExtension()
ImportHandler
getExtension
in interface ImportHandler
public String getDescription()
ImportHandler
getDescription
in interface ImportHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |