edu.stanford.smi.protege.model.query
Class SynchronizeQueryCallback
java.lang.Object
edu.stanford.smi.protege.model.query.SynchronizeQueryCallback
- All Implemented Interfaces:
- Localizable, QueryCallback
public class SynchronizeQueryCallback
- extends Object
- implements QueryCallback, Localizable
This class is a QueryCallback that provides utilities for making the
asynchronous executeQuery() call synchronous. The caller sequence should
look like this
SynchronizeQueryCallback callback = new SynchronizeQueryCallback();
executeQuery(query, callback);
return callback.waitForResults():
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizeQueryCallback
public SynchronizeQueryCallback(Object kbLock)
provideQueryResults
public void provideQueryResults(Collection<Frame> frames)
- Specified by:
provideQueryResults
in interface QueryCallback
handleError
public void handleError(OntologyException oe)
- Specified by:
handleError
in interface QueryCallback
handleError
public void handleError(ProtegeIOException ioe)
- Specified by:
handleError
in interface QueryCallback
handleError
public void handleError(ProtegeError pe)
- Specified by:
handleError
in interface QueryCallback
waitForResults
public Collection<Frame> waitForResults()
throws OntologyException,
ProtegeIOException
- Throws:
OntologyException
ProtegeIOException
localize
public void localize(KnowledgeBase kb)
- Specified by:
localize
in interface Localizable
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2011 Stanford University.