站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.4 API 英文版文档

Context - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.format.template
Interface Context

All Known Implementing Classes:
AbstractContext, DelegateContext

public interface Context


Field Summary
static Context NULL_CONTEXT
          null context
 
Method Summary
 java.util.Iterator childIterator(java.lang.String name)
          get an iterator for the nested/loop data contexts
 java.lang.String get(java.lang.String key)
          get the template data from the context
 Context put(java.lang.String key, java.lang.String value)
          add data to be rendered in the template through variable substitution
 

Field Detail

NULL_CONTEXT

public static final Context NULL_CONTEXT
null context

Method Detail

get

public java.lang.String get(java.lang.String key)
get the template data from the context

Parameters:
key - template variable name
Returns:
template value

put

public Context put(java.lang.String key,
                   java.lang.String value)
add data to be rendered in the template through variable substitution

Parameters:
key - template variable name
value - value to render in template
Returns:
context to place data into

childIterator

public java.util.Iterator childIterator(java.lang.String name)
get an iterator for the nested/loop data contexts

Parameters:
name - template variable prefix name
Returns:
iterator for the children