|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.semanticweb.owl.util.OntologyProcessor
A utility class for processing OWLOntologies in chunks. The progress of the processing can be monitored by attaching a ProgressListener.
| Nested Class Summary | |
protected static class |
OntologyProcessor.NullProgressListener
Empty progress listener. |
protected static interface |
OntologyProcessor.ObjectProcessor
Processor for loaded objects. |
static interface |
OntologyProcessor.ProgressListener
The interface receiving notification about the progress of the processor. |
| Field Summary | |
protected static int |
CHUNK_SIZE
The size of the chunks for processing. |
protected OntologyProcessor.ProgressListener |
m_progressListener
The progress listener of the processor. |
| Constructor Summary | |
OntologyProcessor()
Creates an instance of this class. |
|
| Method Summary | |
protected void |
checkInterrupted()
Checks whether the thread has been interrupted and throws an exception. |
protected void |
processElements(Set set,
OWLOntology ontology,
int loadFlag,
OntologyProcessor.ObjectProcessor objectProcessor,
int progressPhase)
Loads and processes elements from the given set in chunks. |
void |
setProgressListener(OntologyProcessor.ProgressListener progressListener)
Registers a progress listener. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int CHUNK_SIZE
protected OntologyProcessor.ProgressListener m_progressListener
| Constructor Detail |
public OntologyProcessor()
| Method Detail |
public void setProgressListener(OntologyProcessor.ProgressListener progressListener)
progressListener - the listener for processor progress
protected void processElements(Set set,
OWLOntology ontology,
int loadFlag,
OntologyProcessor.ObjectProcessor objectProcessor,
int progressPhase)
throws OWLException,
InterruptedException
set - the original set of objectsontology - the OWLOntology that loads elements (may be null - loading is then not done)loadFlag - the flag specifying which information should be loadedobjectProcessor - receives objects to be processedprogressPhase - the phase of the replication
OWLException - thrown if there is an error
InterruptedException - thrown if the replicator has been interrupted
protected void checkInterrupted()
throws InterruptedException
InterruptedException - thrown if the replicator has been interrupted
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||