| com.hp.hpl.jena.graph.GraphEventManager
All known Subclasses: com.hp.hpl.jena.graph.impl.SimpleEventManager,
GraphEventManager | public interface GraphEventManager extends GraphListener(Code) | | The component of a graph responsible for managing events and listeners.
The interface extends GraphListener because most of the notificiations are
the same; the special case to note is that an event manager expects to be
handed iterator events as lists, not as iterators.
author: kers |
Method Summary | |
boolean | listening() Answer true iff there is at least one attached listener. | void | notifyAddIterator(Graph g, List triples) Notify all attached listeners that an iterator [of triples] has been added to
the graph; its content has been captured in the list triples . | void | notifyDeleteIterator(Graph g, List triples) Notify all attached listeners that an iterator [of triples] has been removed from
the graph; its content has been captured in the list triples . | GraphEventManager | register(GraphListener listener) Attached listener to this manager; notification events
sent to the manager are sent to all registered listeners. | GraphEventManager | unregister(GraphListener listener) If listener is attached to this manager, detach it, otherwise
do nothing. |
listening | boolean listening()(Code) | | Answer true iff there is at least one attached listener.
true iff there is at least one attached listener |
notifyAddIterator | void notifyAddIterator(Graph g, List triples)(Code) | | Notify all attached listeners that an iterator [of triples] has been added to
the graph; its content has been captured in the list triples .
|
notifyDeleteIterator | void notifyDeleteIterator(Graph g, List triples)(Code) | | Notify all attached listeners that an iterator [of triples] has been removed from
the graph; its content has been captured in the list triples .
|
register | GraphEventManager register(GraphListener listener)(Code) | | Attached listener to this manager; notification events
sent to the manager are sent to all registered listeners. A listener may
be registered multiple times, in which case it's called multiple times per
event.
Parameters: listener - a listener to be fed events this manager, for cascading |
unregister | GraphEventManager unregister(GraphListener listener)(Code) | | If listener is attached to this manager, detach it, otherwise
do nothing. Only a single registration is removed.
Parameters: listener - the listener to be detached from the graph this manager, for cascading |
|
|