Module org.apache.jena.ontapi
Class OntUnionGraphListener
java.lang.Object
org.apache.jena.graph.impl.SimpleEventManager
org.apache.jena.ontapi.impl.GraphListenerBase
org.apache.jena.ontapi.impl.repositories.OntUnionGraphListener
- All Implemented Interfaces:
org.apache.jena.graph.GraphEventManager
,org.apache.jena.graph.GraphListener
,UnionGraph.EventManager
,UnionGraph.Listener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyEvent
(org.apache.jena.graph.Graph source, Object event) void
notifySubGraphAdded
(UnionGraph thisGraph, org.apache.jena.graph.Graph subGraph) Called afterUnionGraph.addSubGraph(Graph)
.void
notifySubGraphRemoved
(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called afterUnionGraph.removeSubGraph(Graph)
.void
notifySuperGraphAdded
(UnionGraph graph, UnionGraph superGraph) Called afterUnionGraph.addSubGraph(Graph)
.void
off()
Turns off all listeners.void
on()
Turns on all listeners.void
onAddSubGraph
(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called beforeUnionGraph.addSubGraph(Graph)
.void
onAddTriple
(UnionGraph graph, org.apache.jena.graph.Triple triple) Called beforeGraph.add(Node, Node, Node)
&Graph.add(Triple)
.void
onClear
(UnionGraph graph) Called beforeGraph.clear()
.void
onDeleteTriple
(UnionGraph graph, org.apache.jena.graph.Triple triple) Called beforeGraph.delete(Node, Node, Node)
&Graph.delete(Triple)
&Graph.remove(Node, Node, Node)
.void
onRemoveSubGraph
(UnionGraph graph, org.apache.jena.graph.Graph subGraph) Called beforeUnionGraph.removeSubGraph(Graph)
.Methods inherited from class org.apache.jena.ontapi.impl.GraphListenerBase
listeners, notifyAddArray, notifyAddIterator, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteIterator, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple
Methods inherited from class org.apache.jena.graph.impl.SimpleEventManager
listening, notifyAddGraph, notifyDeleteGraph, notifyingRemove, register, unregister
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.graph.GraphEventManager
listening, notifyAddIterator, notifyDeleteIterator, register, unregister
Methods inherited from interface org.apache.jena.graph.GraphListener
notifyAddArray, notifyAddGraph, notifyAddIterator, notifyAddList, notifyAddTriple, notifyDeleteArray, notifyDeleteGraph, notifyDeleteIterator, notifyDeleteList, notifyDeleteTriple
Methods inherited from interface org.apache.jena.ontapi.UnionGraph.EventManager
listeners, listeners
-
Method Details
-
off
public void off()Description copied from interface:UnionGraph.EventManager
Turns off all listeners.- Specified by:
off
in interfaceUnionGraph.EventManager
-
on
public void on()Description copied from interface:UnionGraph.EventManager
Turns on all listeners.- Specified by:
on
in interfaceUnionGraph.EventManager
-
onAddTriple
Description copied from interface:UnionGraph.Listener
Called beforeGraph.add(Node, Node, Node)
&Graph.add(Triple)
.- Specified by:
onAddTriple
in interfaceUnionGraph.Listener
- Parameters:
graph
-UnionGraph
triple
-Triple
-
onDeleteTriple
Description copied from interface:UnionGraph.Listener
Called beforeGraph.delete(Node, Node, Node)
&Graph.delete(Triple)
&Graph.remove(Node, Node, Node)
.- Specified by:
onDeleteTriple
in interfaceUnionGraph.Listener
- Parameters:
graph
-UnionGraph
triple
-Triple
-
onAddSubGraph
Description copied from interface:UnionGraph.Listener
Called beforeUnionGraph.addSubGraph(Graph)
.- Specified by:
onAddSubGraph
in interfaceUnionGraph.Listener
- Parameters:
graph
-UnionGraph
subGraph
-Graph
-
onClear
Description copied from interface:UnionGraph.Listener
Called beforeGraph.clear()
.- Specified by:
onClear
in interfaceUnionGraph.Listener
- Parameters:
graph
-UnionGraph
-
notifySubGraphAdded
Description copied from interface:UnionGraph.Listener
Called afterUnionGraph.addSubGraph(Graph)
. Note it differs fromGraphListener.notifyAddGraph(Graph, Graph)
, which is called when RDF data added into theUnionGraph.getBaseGraph()
.- Specified by:
notifySubGraphAdded
in interfaceUnionGraph.Listener
- Parameters:
thisGraph
-UnionGraph
subGraph
-Graph
-
notifySuperGraphAdded
Description copied from interface:UnionGraph.Listener
Called afterUnionGraph.addSubGraph(Graph)
.- Specified by:
notifySuperGraphAdded
in interfaceUnionGraph.Listener
- Parameters:
graph
-UnionGraph
superGraph
-UnionGraph
-
onRemoveSubGraph
Description copied from interface:UnionGraph.Listener
Called beforeUnionGraph.removeSubGraph(Graph)
.- Specified by:
onRemoveSubGraph
in interfaceUnionGraph.Listener
- Parameters:
graph
-Graph
subGraph
-Graph
-
notifySubGraphRemoved
Description copied from interface:UnionGraph.Listener
Called afterUnionGraph.removeSubGraph(Graph)
. Note it differs fromGraphListener.notifyDeleteGraph(Graph, Graph)
, which is called when RDF data is added into theUnionGraph.getBaseGraph()
.- Specified by:
notifySubGraphRemoved
in interfaceUnionGraph.Listener
- Parameters:
graph
-Graph
subGraph
-Graph
-
notifyEvent
- Specified by:
notifyEvent
in interfaceorg.apache.jena.graph.GraphListener
- Overrides:
notifyEvent
in classorg.apache.jena.graph.impl.SimpleEventManager
-