org.apache.clerezza.rdf.core.event
Class GraphEvent

java.lang.Object
  extended by org.apache.clerezza.rdf.core.event.GraphEvent
Direct Known Subclasses:
AddEvent, RemoveEvent

public class GraphEvent
extends Object

This class represent a modification event that occured on a TripleCollection. A GraphEvent object keeps information about this event. These information are: The Triple that was part of the modification, the type of modification (addition or removal) and the TripleCollection that was modified.

Author:
mir

Constructor Summary
protected GraphEvent(TripleCollection graph, Triple triple)
           
 
Method Summary
 TripleCollection getGraph()
          Returns the TripleCollection that was modified in the event.
 Triple getTriple()
          Return the Triple that was part of the modification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphEvent

protected GraphEvent(TripleCollection graph,
                     Triple triple)
Method Detail

getGraph

public TripleCollection getGraph()
Returns the TripleCollection that was modified in the event.

Returns:
the graph

getTriple

public Triple getTriple()
Return the Triple that was part of the modification.

Returns:
the triple


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.