com.hp.hpl.jena.graph
Interface GraphListener

All Known Subinterfaces:
GraphEventManager

public interface GraphListener

Interface for listening to graph-level update events. Each time the graph is oked to add or remove some triples, and after that poke has completed without throwing an exception, all the listeners attached to the Graph are informed about the poke.

Author:
Jeremy Carroll, extensions by kers

Method Summary
 void notifyAddArray(Triple[] triples)
          Method called when an array of triples has been added to the graph.
 void notifyAddGraph(Graph g)
          Method called when another graph g has been used to specify the triples added to our attached graph.
 void notifyAddIterator(java.util.Iterator it)
          Method called when an iterator [of triples] has been added to the graph
 void notifyAddList(java.util.List triples)
          Method called when a list [of triples] has been added to the graph.
 void notifyAddTriple(Triple t)
          Method called when a single triple has been added to the graph.
 void notifyDeleteArray(Triple[] triples)
          Method called when an array of triples has been deleted from the graph.
 void notifyDeleteGraph(Graph g)
          Method to call when another graph has been used to specify the triples deleted from our attached graph.
 void notifyDeleteIterator(java.util.Iterator it)
          Method called when an iterator [of triples] has been deleted from the graph.
 void notifyDeleteList(java.util.List L)
          Method called when a list [of triples] has been deleted from the graph.
 void notifyDeleteTriple(Triple t)
          Method called when a single triple has been deleted from the graph.
 

Method Detail

notifyAddTriple

public void notifyAddTriple(Triple t)
Method called when a single triple has been added to the graph.


notifyAddArray

public void notifyAddArray(Triple[] triples)
Method called when an array of triples has been added to the graph.


notifyAddList

public void notifyAddList(java.util.List triples)
Method called when a list [of triples] has been added to the graph.


notifyAddIterator

public void notifyAddIterator(java.util.Iterator it)
Method called when an iterator [of triples] has been added to the graph


notifyAddGraph

public void notifyAddGraph(Graph g)
Method called when another graph g has been used to specify the triples added to our attached graph.

Parameters:
g - the graph of triples added

notifyDeleteTriple

public void notifyDeleteTriple(Triple t)
Method called when a single triple has been deleted from the graph.


notifyDeleteList

public void notifyDeleteList(java.util.List L)
Method called when a list [of triples] has been deleted from the graph.


notifyDeleteArray

public void notifyDeleteArray(Triple[] triples)
Method called when an array of triples has been deleted from the graph.


notifyDeleteIterator

public void notifyDeleteIterator(java.util.Iterator it)
Method called when an iterator [of triples] has been deleted from the graph.


notifyDeleteGraph

public void notifyDeleteGraph(Graph g)
Method to call when another graph has been used to specify the triples deleted from our attached graph.

Parameters:
g - the graph of triples added


Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.