| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.common.context.DelegateContext
| Field Summary | 
| Fields inherited from interface org.jboss.portal.common.context.Context | 
| NULL_CONTEXT | 
| Constructor Summary | |
| DelegateContext()creates a new DelegateContext object. | |
| DelegateContext(java.util.Map delegate,
                java.util.Map children)creates a new DelegateContext object. | |
| Method Summary | |
|  void | append(java.lang.String name,
       Context ctx)add an existing data context into this context for use in template loops or nested template data. | 
|  java.util.Iterator | childIterator(java.lang.String name)get an iterator for the nested/loop data contexts | 
| static DelegateContext | createWithChildren(java.util.Map children)create a new "root" data context and name/value pairs to be used as nested or loop data | 
| static DelegateContext | createWithValues(java.util.Map values)create a new data context with already existing name/value pairs | 
|  java.lang.String | get(java.lang.String key)get the template data from the context | 
|  DelegateContext | next(java.lang.String name)create a new object to place data for use in template loops or nested template data. | 
|  Context | put(java.lang.String key,
    java.lang.Integer value)add data to be rendered in the template through variable substitution | 
|  Context | put(java.lang.String key,
    java.lang.String value)add data to be rendered in the template through variable substitution | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public DelegateContext()
public DelegateContext(java.util.Map delegate,
                       java.util.Map children)
delegate - name/value pairs for "root" datachildren - name/value pairs for nested or loop data| Method Detail | 
public static final DelegateContext createWithChildren(java.util.Map children)
children - name/value pairs for nested or loop data
public static final DelegateContext createWithValues(java.util.Map values)
values - existing name/value pair map
public void append(java.lang.String name,
                   Context ctx)
name - variable prefix namectx - context to addpublic java.util.Iterator childIterator(java.lang.String name)
Context
childIterator in interface Contextname - template variable prefix name
Context.childIterator(java.lang.String)public java.lang.String get(java.lang.String key)
Context
key - template variable name
Context.get(java.lang.String)public DelegateContext next(java.lang.String name)
name - variable prefix name
public Context put(java.lang.String key, java.lang.String value)
Context
key - template variable namevalue - value to render in template
Context.put(java.lang.String,
      java.lang.String)public Context put(java.lang.String key, java.lang.Integer value)
Context
key - template variable namevalue - value to render in template
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||