org.apache.struts.taglib.template.util

Class ContentMap

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.5 $ $Date: 2002/10/25 23:54:53 $

Author:
David Geary

See Also:
Serialized Form

Field Summary

private HashMap
map
The map.

Constructor Summary

ContentMap()
Deprecated. Use Tiles instead.

Method Summary

Content
get(String name)
Deprecated. Use Tiles instead.
void
put(String name, Content content)
Deprecated. Use Tiles instead.

Field Details

map

private HashMap map
The map.

Constructor Details

ContentMap

public ContentMap()

Deprecated. Use Tiles instead.

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

Method Details

get

public Content get(String name)

Deprecated. Use Tiles instead.

Returns the content associated with name.

Parameters:
name - Name of content to retrieve


put

public void put(String name,
                Content content)

Deprecated. Use Tiles instead.

Put named content into map.

Parameters:
name - The content's name
content - The content


Copyright B) 2000-2005 - Apache Software Foundation