de.matthias_burbach.mosaique.core.model
Class TilesContext

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.model.TilesContext

public class TilesContext
extends java.lang.Object

Represents the complete Tiles context that is composed of the attributes defined along the definition hierarchy of a Tile plus the attributes that may be defined in the insert element inserting this tile in some JSP.

Author:
Matthias Burbach

Constructor Summary
TilesContext()
           
 
Method Summary
 void addPuts(java.util.Map additionalValues)
           
 java.util.Map getPuts()
           
 java.util.List getPutsOrderedByLevel()
           
 java.lang.String getValue(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesContext

public TilesContext()
Method Detail

getPuts

public java.util.Map getPuts()
Returns:
The put objects of type Put keyed by their names.

getPutsOrderedByLevel

public java.util.List getPutsOrderedByLevel()
Returns:
The put objects of type Put ordered ascendingly by the levels of the definitions defining them. See Definition.getLevel() to understand the meaning of levels.

addPuts

public void addPuts(java.util.Map additionalValues)
Parameters:
additionalValues - Adds all puts of type Put keyed by their names of type String to the map of already puts. Will override existing puts with same names, so make sure to add in good order that reflects the definition hierarchy.

getValue

public java.lang.String getValue(java.lang.String name)
Parameters:
name - The name of a put attribute.
Returns:
The value of a put attribute or null if the name is unknown.


Copyright © 2005-2006 . All Rights Reserved.