org.semanticweb.elk.loading
Class AbstractAxiomLoader

java.lang.Object
  extended by org.semanticweb.elk.loading.AbstractAxiomLoader
All Implemented Interfaces:
AxiomLoader
Direct Known Subclasses:
EmptyAxiomLoader, Owl2ParserLoader

public abstract class AbstractAxiomLoader
extends Object
implements AxiomLoader

A skeletal implementation of the AxiomLoader that minimizes the effort to implement the interface.

Author:
"Yevgeny Kazakov"

Constructor Summary
AbstractAxiomLoader()
           
 
Method Summary
 void dispose()
          Close resources used by this AxiomLoader
abstract  boolean isLoadingFinished()
           
abstract  void load(ElkAxiomProcessor axiomInserter, ElkAxiomProcessor axiomDeleter)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAxiomLoader

public AbstractAxiomLoader()
Method Detail

load

public abstract 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 added
axiomDeleter - an ElkAxiomProcessor that deletes the axioms that were removed
Throws:
ElkLoadingException - if loading cannot be completed successfully

isLoadingFinished

public abstract 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

dispose

public void dispose()
Description copied from interface: AxiomLoader
Close resources used by this AxiomLoader

Specified by:
dispose in interface AxiomLoader


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.