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

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.Union
All Implemented Interfaces:
Graph

public class Union
extends Dyadic
implements Graph

Author:
hedgehog
dynamic union of two graphs. Addition only affects the left operand, deletion affects both.

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.graph.Graph
ADD, DELETE, ORDERED, SIZE
 
Constructor Summary
Union(Graph L, Graph R)
           
 
Method Summary
 boolean contains(Triple t)
          Answer true iff the graph contains a triple that t matches; t may be fluid.
 ExtendedIterator find(TripleMatch t)
          Returns an iterator over all the Triples that match the triple pattern.
 void performAdd(Triple t)
           
 void performDelete(Triple t)
           
 
Methods inherited from class com.hp.hpl.jena.graph.compose.Dyadic
capabilities, close, dependsOn, union
 
Methods inherited from class com.hp.hpl.jena.graph.compose.CompositionBase
butNot, countIterator, ifIn, ifIn, recording, reject, rejecting, size
 
Methods inherited from class com.hp.hpl.jena.graph.impl.GraphBase
add, contains, delete, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, notifyAdd, notifyDelete, 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
add, capabilities, close, contains, delete, dependsOn, find, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getReifier, getTransactionHandler, isIsomorphicWith, queryHandler, size
 

Constructor Detail

Union

public Union(Graph L,
             Graph R)
Method Detail

performAdd

public void performAdd(Triple t)

performDelete

public void performDelete(Triple t)

contains

public boolean contains(Triple t)
Description copied from interface: Graph
Answer true iff the graph contains a triple that t matches; t may be fluid.

Specified by:
contains in interface Graph
Overrides:
contains in class CompositionBase
Parameters:
t - A triple to test
Returns:
True if t is an edge of this graph
See Also:
Graph.contains(Triple)

find

public ExtendedIterator find(TripleMatch t)
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)


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