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

## org.apache.struts.taglib.template.util
Class ContentMap

    java.lang.Object
      |
      +--org.apache.struts.taglib.template.util.ContentMap

All Implemented Interfaces:
  java.io.Serializable

public class ContentMap
extends java.lang.Object
implements java.io.Serializable

A simple facade for a hash map. This class restricts operations that can be performed on a hash map of contents.

Version:
  $Revision: 1.1 $ $Date: 2001-09-17 21:13:30 +0100 (Mon, 17 Sep 2001) $
Author:
  David Geary
See Also:
  Serialized Form

Field Summary
`private java.util.HashMap` | `map` The map.

Constructor Summary
`ContentMap()` Explicitly declare a do-nothing, no-arg constructor.

Method Summary
`Content` | `get(java.lang.String name)` Returns the content associated with name
`void` | `put(java.lang.String name, Content content)` Put named content into map.

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait`

Field Detail

### map

    private java.util.HashMap map

  The map.

Constructor Detail

### ContentMap

    public ContentMap()

  Explicitly declare a do-nothing, no-arg constructor.

Method Detail

### put

    public void put(java.lang.String name,
                    Content content)

  Put named content into map.
  Parameters:
    `name` - The content's name
    `content` - The content

### get

    public Content get(java.lang.String name)

  Returns the content associated with name

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

Copyright © 2000-2001 - Apache Software Foundation