当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
AbstractContext - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.format.template
Class AbstractContext
java.lang.Object
org.jboss.portal.format.template.AbstractContext
- All Implemented Interfaces:
- Context
- public abstract class AbstractContext
- extends java.lang.Object
- implements Context
- Version:
- $Revision: 5448 $
- Author:
- Julien Viet
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 o)
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContext
public AbstractContext()
childIterator
public java.util.Iterator childIterator(java.lang.String name)
- Description copied from interface:
Context
- get an iterator for the nested/loop data contexts
- Specified by:
childIterator
in interface Context
- Parameters:
name
- template variable prefix name
- Returns:
- iterator for the children
get
public java.lang.String get(java.lang.String o)
- Description copied from interface:
Context
- get the template data from the context
- Specified by:
get
in interface Context
- Parameters:
o
- template variable name
- Returns:
- template value
put
public Context put(java.lang.String key,
java.lang.String value)
- Description copied from interface:
Context
- add data to be rendered in the template through variable substitution
- Specified by:
put
in interface Context
- Parameters:
key
- template variable namevalue
- value to render in template
- Returns:
- context to place data into