org.semanticweb.elk.loading
Class ComposedAxiomLoader
java.lang.Object
org.semanticweb.elk.loading.ComposedAxiomLoader
- All Implemented Interfaces:
- AxiomLoader
public class ComposedAxiomLoader
- extends Object
- implements AxiomLoader
A AxiomLoader that consists of two given AxiomLoaders. When
changes are loaded, they are first loaded using the first AxiomLoader
, and then using the second one.
- Author:
- "Yevgeny Kazakov"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComposedAxiomLoader
public ComposedAxiomLoader(AxiomLoader firstLoader,
AxiomLoader secondLoader)
load
public void load(ElkAxiomProcessor axiomInserter,
ElkAxiomProcessor axiomDeleter)
throws ElkLoadingException
- Description copied from interface:
AxiomLoader
- Loads pending axioms using the provided
axiomInserter for
inserting axioms and axiomDeleter for deleting axioms; if called
twice, the already loaded axioms will not be processed again
- Specified by:
load in interface AxiomLoader
- Parameters:
axiomInserter - an ElkAxiomProcessor that inserts the axioms that were
addedaxiomDeleter - an ElkAxiomProcessor that deletes the axioms that were
removed
- Throws:
ElkLoadingException - if loading cannot be completed successfully
dispose
public void dispose()
- Description copied from interface:
AxiomLoader
- Close resources used by this
AxiomLoader
- Specified by:
dispose in interface AxiomLoader
isLoadingFinished
public boolean isLoadingFinished()
- Specified by:
isLoadingFinished in interface AxiomLoader
- Returns:
true if the loading is finished, i.e., calling
AxiomLoader.load(ElkAxiomProcessor, ElkAxiomProcessor)
will have no effect
Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.