com.hp.hpl.jena.graph.query
Class NamedGraphMap

java.lang.Object
  extended by com.hp.hpl.jena.graph.query.NamedGraphMap

public class NamedGraphMap
extends Object

a mapping from from names to Graphs.


Method Summary
 Graph get(String name)
          Answer the GRaph with the given name, or null if there isn't one.
 NamedGraphMap put(String name, Graph g)
          Add a named graph to the map and return this map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

put

public NamedGraphMap put(String name,
                         Graph g)
Add a named graph to the map and return this map.

Parameters:
name - the name to give this graph. Must not already be bound.
g - the graph to name
Returns:
this NamedGraphMap

get

public Graph get(String name)
Answer the GRaph with the given name, or null if there isn't one.

Parameters:
name - the name of the graph
Returns:
the named graph, or null


Licenced under the Apache License, Version 2.0