com.hp.hpl.jena.graph.compose
Class Delta

java.lang.Object
  extended bycom.hp.hpl.jena.graph.impl.GraphBase
      extended bycom.hp.hpl.jena.graph.compose.CompositionBase
          extended bycom.hp.hpl.jena.graph.compose.Dyadic
              extended bycom.hp.hpl.jena.graph.compose.Delta
All Implemented Interfaces:
Graph

public class Delta
extends Dyadic
implements Graph

Author:
hedgehog L is the collection of things added, R is the collection of things removed, base is the original graph (which is not mutated)

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
ADD, DELETE, ORDERED, SIZE
 
Constructor Summary
Delta(Graph base)
           
 
Method Summary
 void add(Triple t)
          Add the triple t (if possible) to the set belonging to this graph
 void close()
          Free all resources, any further use of this Graph is an error.
 void delete(Triple t)
          Remove the triple t (if possible) from the set belonging to this graph
 ExtendedIterator find(TripleMatch tm)
          Returns an iterator over all the Triples that match the triple pattern.
 Graph getAdditions()
           
 Graph getDeletions()
           
 int size()
           Answer the number of triples in this graph
 
Methods inherited from class com.hp.hpl.jena.graph.compose.Dyadic
capabilities, dependsOn, union
 
Methods inherited from class com.hp.hpl.jena.graph.compose.CompositionBase
butNot, contains, countIterator, ifIn, ifIn, recording, reject, rejecting
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
contains, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, notifyAdd, notifyDelete, performAdd, performDelete, queryHandler, toString, withReification
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.graph.Graph
capabilities, contains, contains, dependsOn, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, queryHandler
 

Constructor Detail

Delta

public Delta(Graph base)
Method Detail

getAdditions

public Graph getAdditions()

getDeletions

public Graph getDeletions()

add

public void add(Triple t)
Description copied from interface: Graph
Add the triple t (if possible) to the set belonging to this graph

Specified by:
add in interface Graph

delete

public void delete(Triple t)
Description copied from interface: Graph
Remove the triple t (if possible) from the set belonging to this graph

Specified by:
delete in interface Graph
See Also:
Graph.delete(Triple)

find

public ExtendedIterator find(TripleMatch tm)
Description copied from interface: Graph
Returns an iterator over all the Triples that match the triple pattern.

Specified by:
find in interface Graph
See Also:
Graph.find(TripleMatch)

close

public void close()
Description copied from interface: Graph
Free all resources, any further use of this Graph is an error.

Specified by:
close in interface Graph
Overrides:
close in class Dyadic

size

public int size()
Description copied from class: CompositionBase

Answer the number of triples in this graph

Specified by:
size in interface Graph
Overrides:
size in class CompositionBase
Returns:
The integer triple count
See Also:
Graph.size()


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