This project has retired. For details please refer to its Attic page.
AttributeContext (Tiles 2 2.0.7 API)

org.apache.tiles
Interface AttributeContext

Package class diagram package AttributeContext
All Known Implementing Classes:
BasicAttributeContext

public interface AttributeContext

Encapsulation of the current state of execution.

Since:
Tiles 2.0
Version:
$Rev: 527536 $ $Date: 2007-04-11 17:44:51 +0200 (Wed, 11 Apr 2007) $

Method Summary
 void addAll(Map<String,Attribute> newAttributes)
          Add all attributes to the context.
 void addMissing(Map<String,Attribute> defaultAttributes)
          Add all attributes to the context.
 void clear()
          Clear the attributes.
 Attribute getAttribute(String name)
          Retrieve the named attribute.
 Iterator<String> getAttributeNames()
          Iterator of all attribute names.
 void putAttribute(String name, Attribute value)
          Add the specified attribute.
 

Method Detail

addAll

void addAll(Map<String,Attribute> newAttributes)
Add all attributes to the context.

Parameters:
newAttributes - the attributes to be added.

addMissing

void addMissing(Map<String,Attribute> defaultAttributes)
Add all attributes to the context.

Parameters:
defaultAttributes - attributes which should be present.

getAttribute

Attribute getAttribute(String name)
Retrieve the named attribute.

Parameters:
name - key name for the attribute.
Returns:
Attribute associated with the given name.

getAttributeNames

Iterator<String> getAttributeNames()
Iterator of all attribute names.

Returns:
iterator of all names.

putAttribute

void putAttribute(String name,
                  Attribute value)
Add the specified attribute.

Parameters:
name - name of the attribute
value - value of the attribute

clear

void clear()
Clear the attributes.



Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.