| |
|
| java.lang.Object org.jboss.portal.format.template.DelegateContext
DelegateContext | public DelegateContext()(Code) | | creates a new DelegateContext object.
|
DelegateContext | public DelegateContext(Map delegate, Map children)(Code) | | creates a new DelegateContext object.
Parameters: delegate - name/value pairs for "root" data Parameters: children - name/value pairs for nested or loop data |
append | public void append(String name, Context ctx)(Code) | | add an existing data context into this context for use in template loops or nested template data.
Parameters: name - variable prefix name Parameters: ctx - context to add |
createWithChildren | final public static DelegateContext createWithChildren(Map children)(Code) | | create a new "root" data context and name/value pairs to be used as nested or loop data
Parameters: children - name/value pairs for nested or loop data context to continue adding template data too |
createWithValues | final public static DelegateContext createWithValues(Map values)(Code) | | create a new data context with already existing name/value pairs
Parameters: values - existing name/value pair map context to continue adding template data too |
next | public DelegateContext next(String name)(Code) | | create a new object to place data for use in template loops or nested template data. tpl var format: {
prefix.VAR_NAME }
Parameters: name - variable prefix name delegate context that will contain the loop or nested data |
|
|
|