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$
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


Copyright © 2000-2001 - Apache Software Foundation