org.topbraid.core.graph
Class DelegatingEventManager
java.lang.Object
org.topbraid.core.graph.DelegatingEventManager
- All Implemented Interfaces:
- com.hp.hpl.jena.graph.GraphEventManager, com.hp.hpl.jena.graph.GraphListener
public class DelegatingEventManager
- extends java.lang.Object
- implements com.hp.hpl.jena.graph.GraphEventManager
A GraphEventManager that is listening to the next Graph in a delegation
chain, and repackages all events to use the owning Graph as source. To
listeners it therefore appears that the DelegatingGraph has been creating
the event.
- Author:
- Holger Knublauch
|
Field Summary |
protected com.hp.hpl.jena.graph.Graph |
graph
|
protected java.util.List |
listeners
|
|
Method Summary |
boolean |
listening()
|
void |
notifyAddArray(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple[] ts)
|
void |
notifyAddGraph(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Graph added)
|
void |
notifyAddIterator(com.hp.hpl.jena.graph.Graph g,
java.util.Iterator it)
|
void |
notifyAddIterator(com.hp.hpl.jena.graph.Graph g,
java.util.List it)
|
void |
notifyAddList(com.hp.hpl.jena.graph.Graph g,
java.util.List l)
|
void |
notifyAddTriple(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple t)
|
void |
notifyDeleteArray(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple[] ts)
|
void |
notifyDeleteGraph(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Graph removed)
|
void |
notifyDeleteIterator(com.hp.hpl.jena.graph.Graph g,
java.util.Iterator it)
|
void |
notifyDeleteIterator(com.hp.hpl.jena.graph.Graph g,
java.util.List L)
|
void |
notifyDeleteList(com.hp.hpl.jena.graph.Graph g,
java.util.List L)
|
void |
notifyDeleteTriple(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple t)
|
void |
notifyEvent(com.hp.hpl.jena.graph.Graph source,
java.lang.Object event)
|
com.hp.hpl.jena.graph.GraphEventManager |
register(com.hp.hpl.jena.graph.GraphListener listener)
|
com.hp.hpl.jena.graph.GraphEventManager |
unregister(com.hp.hpl.jena.graph.GraphListener listener)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
graph
protected com.hp.hpl.jena.graph.Graph graph
listeners
protected java.util.List listeners
DelegatingEventManager
public DelegatingEventManager(com.hp.hpl.jena.graph.Graph graph)
register
public com.hp.hpl.jena.graph.GraphEventManager register(com.hp.hpl.jena.graph.GraphListener listener)
- Specified by:
register in interface com.hp.hpl.jena.graph.GraphEventManager
unregister
public com.hp.hpl.jena.graph.GraphEventManager unregister(com.hp.hpl.jena.graph.GraphListener listener)
- Specified by:
unregister in interface com.hp.hpl.jena.graph.GraphEventManager
listening
public boolean listening()
- Specified by:
listening in interface com.hp.hpl.jena.graph.GraphEventManager
notifyAddTriple
public void notifyAddTriple(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple t)
- Specified by:
notifyAddTriple in interface com.hp.hpl.jena.graph.GraphListener
notifyAddArray
public void notifyAddArray(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple[] ts)
- Specified by:
notifyAddArray in interface com.hp.hpl.jena.graph.GraphListener
notifyAddList
public void notifyAddList(com.hp.hpl.jena.graph.Graph g,
java.util.List l)
- Specified by:
notifyAddList in interface com.hp.hpl.jena.graph.GraphListener
notifyAddIterator
public void notifyAddIterator(com.hp.hpl.jena.graph.Graph g,
java.util.List it)
- Specified by:
notifyAddIterator in interface com.hp.hpl.jena.graph.GraphEventManager
notifyAddIterator
public void notifyAddIterator(com.hp.hpl.jena.graph.Graph g,
java.util.Iterator it)
- Specified by:
notifyAddIterator in interface com.hp.hpl.jena.graph.GraphListener
notifyAddGraph
public void notifyAddGraph(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Graph added)
- Specified by:
notifyAddGraph in interface com.hp.hpl.jena.graph.GraphListener
notifyDeleteTriple
public void notifyDeleteTriple(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple t)
- Specified by:
notifyDeleteTriple in interface com.hp.hpl.jena.graph.GraphListener
notifyDeleteArray
public void notifyDeleteArray(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Triple[] ts)
- Specified by:
notifyDeleteArray in interface com.hp.hpl.jena.graph.GraphListener
notifyDeleteList
public void notifyDeleteList(com.hp.hpl.jena.graph.Graph g,
java.util.List L)
- Specified by:
notifyDeleteList in interface com.hp.hpl.jena.graph.GraphListener
notifyDeleteIterator
public void notifyDeleteIterator(com.hp.hpl.jena.graph.Graph g,
java.util.List L)
- Specified by:
notifyDeleteIterator in interface com.hp.hpl.jena.graph.GraphEventManager
notifyDeleteIterator
public void notifyDeleteIterator(com.hp.hpl.jena.graph.Graph g,
java.util.Iterator it)
- Specified by:
notifyDeleteIterator in interface com.hp.hpl.jena.graph.GraphListener
notifyDeleteGraph
public void notifyDeleteGraph(com.hp.hpl.jena.graph.Graph g,
com.hp.hpl.jena.graph.Graph removed)
- Specified by:
notifyDeleteGraph in interface com.hp.hpl.jena.graph.GraphListener
notifyEvent
public void notifyEvent(com.hp.hpl.jena.graph.Graph source,
java.lang.Object event)
- Specified by:
notifyEvent in interface com.hp.hpl.jena.graph.GraphListener