org.apache.tiles
Interface AttributeContext

Package class diagram package AttributeContext

public interface AttributeContext

Encapsulation of the current state of execution.

Since:
Tiles 2.0

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

Method Detail

addAll

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

Parameters:
newAttributes - the attributes to be added.

addMissing

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

Parameters:
defaultAttributes - attributes which should be present.

getAttribute

Attribute getAttribute(java.lang.String name)
Retrieve the named attribute.

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

getAttributeNames

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

Returns:
iterator of all names.

putAttribute

void putAttribute(java.lang.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.