| java.lang.Object org.openlaszlo.iv.flash.context.Context org.openlaszlo.iv.flash.context.GraphContext org.openlaszlo.iv.flash.context.BeanContext
BeanContext | public class BeanContext extends GraphContext implements Map(Code) | | A Context that provides access to a graph of objects (beans and collections)
using Jexl (JSTL expression language + extenstions) syntax.
Unlike the other contexts in JGen, this is not easily creatable from a
datasource, and is intended to be used where JGen is embedded in another
framework.
author: James Taylor |
ROOT_ITEM_KEY | final public static String ROOT_ITEM_KEY(Code) | | Key used to store root object when building a context for a list item
|
BeanContext | public BeanContext()(Code) | | Creates empty context.
|
BeanContext | public BeanContext(Context context, Map values)(Code) | | Creates context from specified hashtable.
Parameters: context - parent context Parameters: values - Map of initial values to populate context with |
clear | public void clear()(Code) | | |
containsValue | public boolean containsValue(Object value)(Code) | | |
getValue | public String getValue(String path)(Code) | | Tries to resolve given string in this context as XPath expression,
using JPath. If the XPath expression selects an object, the result
of evaluating its 'toString' method is returned, otherwise the path
is passed along to the parent context (if defined).
Parameters: path - XPath/JPath expression String representation of result of xpath execution or resultfrom the parent or null |
getValueList | public List getValueList(String path)(Code) | | Tries to resolve given string in this context as Jexl expression.
If the path expression evaluates to a non-empty list, a list of contexts
corresponding to each value in that list will be returned. Otherwise
the path is passed to the parent context. If there is no parent
context, null is returned.
The wrapping contexts will have the single element 'root' which is the
object selected as a list item.
Parameters: path - Jexl expression List of objects (wrapped in BeanContext) selected by path orresult from the parent or null |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
|
|