java.lang.Object
org.apache.jena.graph.GraphListenerBase
- All Implemented Interfaces:
GraphListener
A
GraphListener
that converts "add" and "delete" operations to
addEvent(org.apache.jena.graph.Triple)
and deleteEvent(org.apache.jena.graph.Triple)
together with optional
startRead()
and finishRead()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
notifyAddArray
(Graph g, Triple[] triples) Method called when an array of triples has been added to the graph.void
notifyAddGraph
(Graph g, Graph added) Method called when another graphg
has been used to specify the triples added to our attached graph.void
notifyAddIterator
(Graph g, Iterator<Triple> it) Method called when an iterator [of triples] has been added to the graphvoid
notifyAddList
(Graph g, List<Triple> triples) Method called when a list [of triples] has been added to the graph.void
notifyAddTriple
(Graph g, Triple t) Method called when a single triple has been added to the graph.void
notifyDeleteArray
(Graph g, Triple[] triples) Method called when an array of triples has been deleted from the graph.void
notifyDeleteGraph
(Graph g, Graph removed) Method to call when another graph has been used to specify the triples deleted from our attached graph.void
notifyDeleteIterator
(Graph g, Iterator<Triple> it) Method called when an iterator [of triples] has been deleted from the graph.void
notifyDeleteList
(Graph g, List<Triple> triples) Method called when a list [of triples] has been deleted from the graph.void
notifyDeleteTriple
(Graph g, Triple t) Method called when a single triple has been deleted from the graph.void
notifyEvent
(Graph source, Object value) method to call for a general event.
-
Constructor Details
-
GraphListenerBase
public GraphListenerBase()
-
-
Method Details
-
notifyAddTriple
Description copied from interface:GraphListener
Method called when a single triple has been added to the graph.- Specified by:
notifyAddTriple
in interfaceGraphListener
-
notifyAddArray
Description copied from interface:GraphListener
Method called when an array of triples has been added to the graph.- Specified by:
notifyAddArray
in interfaceGraphListener
-
notifyAddList
Description copied from interface:GraphListener
Method called when a list [of triples] has been added to the graph.- Specified by:
notifyAddList
in interfaceGraphListener
-
notifyAddIterator
Description copied from interface:GraphListener
Method called when an iterator [of triples] has been added to the graph- Specified by:
notifyAddIterator
in interfaceGraphListener
-
notifyAddGraph
Description copied from interface:GraphListener
Method called when another graphg
has been used to specify the triples added to our attached graph.- Specified by:
notifyAddGraph
in interfaceGraphListener
- Parameters:
g
- the graph of triples added
-
notifyDeleteTriple
Description copied from interface:GraphListener
Method called when a single triple has been deleted from the graph.- Specified by:
notifyDeleteTriple
in interfaceGraphListener
-
notifyDeleteList
Description copied from interface:GraphListener
Method called when a list [of triples] has been deleted from the graph.- Specified by:
notifyDeleteList
in interfaceGraphListener
-
notifyDeleteArray
Description copied from interface:GraphListener
Method called when an array of triples has been deleted from the graph.- Specified by:
notifyDeleteArray
in interfaceGraphListener
-
notifyDeleteIterator
Description copied from interface:GraphListener
Method called when an iterator [of triples] has been deleted from the graph.- Specified by:
notifyDeleteIterator
in interfaceGraphListener
-
notifyDeleteGraph
Description copied from interface:GraphListener
Method to call when another graph has been used to specify the triples deleted from our attached graph.- Specified by:
notifyDeleteGraph
in interfaceGraphListener
- Parameters:
g
- the graph of triples added
-
notifyEvent
Description copied from interface:GraphListener
method to call for a general event.value
is usually aGraphEvents
. Special attention is drawn toGraphEvents.removeAll
and events whoseGraphEvents.getTitle()
is"remove"
(seeGraphEvents.remove(Node, Node, Node)
. Unlike other notifications, the listener cannot tell which triples have been modified, since they have already been deleted by the time this event is sent, and the event does not include a record of them.- Specified by:
notifyEvent
in interfaceGraphListener
-