org.pelds.rules
Class UpdateGraphListener

java.lang.Object
  extended by org.pelds.rules.UpdateGraphListener
All Implemented Interfaces:
com.hp.hpl.jena.graph.GraphListener

public class UpdateGraphListener
extends java.lang.Object
implements com.hp.hpl.jena.graph.GraphListener

UpdateGraphListener watches a graph, all added and deleted triples get added to a list for inspection.

Author:
Hannes Muehleisen (hannes@muehleisen.org)

Constructor Summary
UpdateGraphListener(java.util.Collection<com.hp.hpl.jena.graph.Triple> someOriginalTriples)
           
 
Method Summary
 java.util.Collection<com.hp.hpl.jena.graph.Triple> getAddedTriples()
           
 java.util.Collection<com.hp.hpl.jena.graph.Triple> getChanges()
           
 com.hp.hpl.jena.rdf.model.Model getChangesModel()
           
 java.util.Collection<com.hp.hpl.jena.graph.Triple> getDeletedTriples()
           
 void notifyAddArray(com.hp.hpl.jena.graph.Graph arg0, com.hp.hpl.jena.graph.Triple[] arg1)
           
 void notifyAddGraph(com.hp.hpl.jena.graph.Graph arg0, com.hp.hpl.jena.graph.Graph arg1)
           
 void notifyAddIterator(com.hp.hpl.jena.graph.Graph arg0, java.util.Iterator<com.hp.hpl.jena.graph.Triple> arg1)
           
 void notifyAddList(com.hp.hpl.jena.graph.Graph arg0, java.util.List<com.hp.hpl.jena.graph.Triple> arg1)
           
 void notifyAddTriple(com.hp.hpl.jena.graph.Graph arg0, com.hp.hpl.jena.graph.Triple arg1)
           
 void notifyDeleteArray(com.hp.hpl.jena.graph.Graph arg0, com.hp.hpl.jena.graph.Triple[] arg1)
           
 void notifyDeleteGraph(com.hp.hpl.jena.graph.Graph arg0, com.hp.hpl.jena.graph.Graph arg1)
           
 void notifyDeleteIterator(com.hp.hpl.jena.graph.Graph arg0, java.util.Iterator<com.hp.hpl.jena.graph.Triple> arg1)
           
 void notifyDeleteList(com.hp.hpl.jena.graph.Graph arg0, java.util.List<com.hp.hpl.jena.graph.Triple> arg1)
           
 void notifyDeleteTriple(com.hp.hpl.jena.graph.Graph arg0, com.hp.hpl.jena.graph.Triple arg1)
           
 void notifyEvent(com.hp.hpl.jena.graph.Graph arg0, java.lang.Object arg1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateGraphListener

public UpdateGraphListener(java.util.Collection<com.hp.hpl.jena.graph.Triple> someOriginalTriples)
Method Detail

notifyAddArray

public void notifyAddArray(com.hp.hpl.jena.graph.Graph arg0,
                           com.hp.hpl.jena.graph.Triple[] arg1)
Specified by:
notifyAddArray in interface com.hp.hpl.jena.graph.GraphListener

notifyAddGraph

public void notifyAddGraph(com.hp.hpl.jena.graph.Graph arg0,
                           com.hp.hpl.jena.graph.Graph arg1)
Specified by:
notifyAddGraph in interface com.hp.hpl.jena.graph.GraphListener

notifyAddIterator

public void notifyAddIterator(com.hp.hpl.jena.graph.Graph arg0,
                              java.util.Iterator<com.hp.hpl.jena.graph.Triple> arg1)
Specified by:
notifyAddIterator in interface com.hp.hpl.jena.graph.GraphListener

notifyAddList

public void notifyAddList(com.hp.hpl.jena.graph.Graph arg0,
                          java.util.List<com.hp.hpl.jena.graph.Triple> arg1)
Specified by:
notifyAddList in interface com.hp.hpl.jena.graph.GraphListener

notifyAddTriple

public void notifyAddTriple(com.hp.hpl.jena.graph.Graph arg0,
                            com.hp.hpl.jena.graph.Triple arg1)
Specified by:
notifyAddTriple in interface com.hp.hpl.jena.graph.GraphListener

notifyDeleteArray

public void notifyDeleteArray(com.hp.hpl.jena.graph.Graph arg0,
                              com.hp.hpl.jena.graph.Triple[] arg1)
Specified by:
notifyDeleteArray in interface com.hp.hpl.jena.graph.GraphListener

notifyDeleteGraph

public void notifyDeleteGraph(com.hp.hpl.jena.graph.Graph arg0,
                              com.hp.hpl.jena.graph.Graph arg1)
Specified by:
notifyDeleteGraph in interface com.hp.hpl.jena.graph.GraphListener

notifyDeleteIterator

public void notifyDeleteIterator(com.hp.hpl.jena.graph.Graph arg0,
                                 java.util.Iterator<com.hp.hpl.jena.graph.Triple> arg1)
Specified by:
notifyDeleteIterator in interface com.hp.hpl.jena.graph.GraphListener

notifyDeleteList

public void notifyDeleteList(com.hp.hpl.jena.graph.Graph arg0,
                             java.util.List<com.hp.hpl.jena.graph.Triple> arg1)
Specified by:
notifyDeleteList in interface com.hp.hpl.jena.graph.GraphListener

notifyDeleteTriple

public void notifyDeleteTriple(com.hp.hpl.jena.graph.Graph arg0,
                               com.hp.hpl.jena.graph.Triple arg1)
Specified by:
notifyDeleteTriple in interface com.hp.hpl.jena.graph.GraphListener

notifyEvent

public void notifyEvent(com.hp.hpl.jena.graph.Graph arg0,
                        java.lang.Object arg1)
Specified by:
notifyEvent in interface com.hp.hpl.jena.graph.GraphListener

getChanges

public java.util.Collection<com.hp.hpl.jena.graph.Triple> getChanges()

getChangesModel

public com.hp.hpl.jena.rdf.model.Model getChangesModel()

getAddedTriples

public java.util.Collection<com.hp.hpl.jena.graph.Triple> getAddedTriples()

getDeletedTriples

public java.util.Collection<com.hp.hpl.jena.graph.Triple> getDeletedTriples()