Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

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

    public class NamedGraphMap

extends java.lang.Object

a mapping from from names to Graphs.

Method Summary
`Graph` | `get(java.lang.String name)` Answer the GRaph with the given name, or null if there isn't one.
`NamedGraphMap` | `put(java.lang.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(java.lang.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(java.lang.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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP