|
|||||||||
| Home >> All >> com >> hp >> hpl >> jena >> [ graph overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.hp.hpl.jena.graph
Interface GraphEventManager

- All Superinterfaces:
- GraphListener
- public interface GraphEventManager
- extends GraphListener
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.
| Method Summary | |
boolean |
listening()
Answer true iff there is at least one attached listener. |
void |
notifyAddIterator(Graph g,
java.util.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,
java.util.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. |
| Methods inherited from interface com.hp.hpl.jena.graph.GraphListener |
notifyAddArray, notifyAddGraph, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteGraph, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple, notifyEvent |
| Method Detail |
register
public GraphEventManager register(GraphListener listener)
- Attached
listenerto 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.
unregister
public GraphEventManager unregister(GraphListener listener)
- If
listeneris attached to this manager, detach it, otherwise do nothing. Only a single registration is removed.
listening
public boolean listening()
- Answer true iff there is at least one attached listener.
notifyAddIterator
public void notifyAddIterator(Graph g, java.util.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.
notifyDeleteIterator
public void notifyDeleteIterator(Graph g, java.util.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.
|
|||||||||
| Home >> All >> com >> hp >> hpl >> jena >> [ graph overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC