Module org.apache.jena.ontapi
Package org.apache.jena.ontapi.impl
Class UnionGraphImpl.EventManagerImpl
java.lang.Object
org.apache.jena.graph.impl.SimpleEventManager
org.apache.jena.ontapi.impl.UnionGraphImpl.EventManagerImpl
- All Implemented Interfaces:
org.apache.jena.graph.GraphEventManager,org.apache.jena.graph.GraphListener,UnionGraph.EventManager,UnionGraph.Listener
- Enclosing class:
- UnionGraphImpl
public static class UnionGraphImpl.EventManagerImpl
extends org.apache.jena.graph.impl.SimpleEventManager
implements UnionGraph.EventManager
An extended
Jena Graph Event Manager,
a holder for GraphListeners.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStream<org.apache.jena.graph.GraphListener>Lists all encapsulated listeners.voidnotifySubGraphAdded(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called afterUnionGraph.addSubGraph(Graph).voidnotifySubGraphRemoved(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called afterUnionGraph.removeSubGraph(Graph).voidnotifySuperGraphAdded(UnionGraph graph, UnionGraph superGraph) Called afterUnionGraph.addSubGraph(Graph).voidoff()Turns off all listeners.voidon()Turns on all listeners.voidonAddSubGraph(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called beforeUnionGraph.addSubGraph(Graph).voidonAddTriple(UnionGraph graph, org.apache.jena.graph.Triple triple) Called beforeGraph.add(Node, Node, Node)&Graph.add(Triple).voidonClear(UnionGraph graph) Called beforeGraph.clear().voidonDeleteTriple(UnionGraph graph, org.apache.jena.graph.Triple triple) Called beforeGraph.delete(Node, Node, Node)&Graph.delete(Triple)&Graph.remove(Node, Node, Node).voidonRemoveSubGraph(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called beforeUnionGraph.removeSubGraph(Graph).Methods inherited from class org.apache.jena.graph.impl.SimpleEventManager
listening, notifyAddArray, notifyAddGraph, notifyAddIterator, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteGraph, notifyDeleteIterator, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple, notifyEvent, notifyingRemove, register, unregisterMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.graph.GraphEventManager
listening, notifyAddIterator, notifyDeleteIterator, register, unregisterMethods inherited from interface org.apache.jena.graph.GraphListener
notifyAddArray, notifyAddGraph, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteGraph, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple, notifyEventMethods inherited from interface org.apache.jena.ontapi.UnionGraph.EventManager
listeners
-
Constructor Details
-
EventManagerImpl
public EventManagerImpl()
-
-
Method Details
-
onAddTriple
Description copied from interface:UnionGraph.ListenerCalled beforeGraph.add(Node, Node, Node)&Graph.add(Triple).- Specified by:
onAddTriplein interfaceUnionGraph.Listener- Parameters:
graph-UnionGraphtriple-Triple
-
onDeleteTriple
Description copied from interface:UnionGraph.ListenerCalled beforeGraph.delete(Node, Node, Node)&Graph.delete(Triple)&Graph.remove(Node, Node, Node).- Specified by:
onDeleteTriplein interfaceUnionGraph.Listener- Parameters:
graph-UnionGraphtriple-Triple
-
onAddSubGraph
Description copied from interface:UnionGraph.ListenerCalled beforeUnionGraph.addSubGraph(Graph).- Specified by:
onAddSubGraphin interfaceUnionGraph.Listener- Parameters:
graph-UnionGraphsubGraph-Graph
-
onClear
Description copied from interface:UnionGraph.ListenerCalled beforeGraph.clear().- Specified by:
onClearin interfaceUnionGraph.Listener- Parameters:
graph-UnionGraph
-
notifySubGraphAdded
Description copied from interface:UnionGraph.ListenerCalled afterUnionGraph.addSubGraph(Graph). Note it differs fromGraphListener.notifyAddGraph(Graph, Graph), which is called when RDF data added into theUnionGraph.getBaseGraph().- Specified by:
notifySubGraphAddedin interfaceUnionGraph.Listener- Parameters:
graph-UnionGraphsubGraph-Graph
-
notifySuperGraphAdded
Description copied from interface:UnionGraph.ListenerCalled afterUnionGraph.addSubGraph(Graph).- Specified by:
notifySuperGraphAddedin interfaceUnionGraph.Listener- Parameters:
graph-UnionGraphsuperGraph-UnionGraph
-
onRemoveSubGraph
Description copied from interface:UnionGraph.ListenerCalled beforeUnionGraph.removeSubGraph(Graph).- Specified by:
onRemoveSubGraphin interfaceUnionGraph.Listener- Parameters:
graph-GraphsubGraph-Graph
-
notifySubGraphRemoved
Description copied from interface:UnionGraph.ListenerCalled afterUnionGraph.removeSubGraph(Graph). Note it differs fromGraphListener.notifyDeleteGraph(Graph, Graph), which is called when RDF data is added into theUnionGraph.getBaseGraph().- Specified by:
notifySubGraphRemovedin interfaceUnionGraph.Listener- Parameters:
graph-GraphsubGraph-Graph
-
off
public void off()Description copied from interface:UnionGraph.EventManagerTurns off all listeners.- Specified by:
offin interfaceUnionGraph.EventManager
-
on
public void on()Description copied from interface:UnionGraph.EventManagerTurns on all listeners.- Specified by:
onin interfaceUnionGraph.EventManager
-
listeners
Lists all encapsulated listeners.- Specified by:
listenersin interfaceUnionGraph.EventManager- Returns:
- Stream of
GraphListeners
-