public interface IDynamicExpressionTools
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(String expression,
Object target,
IURI resourceUri,
IContext context,
HttpServletRequest request)
Returns an object if the expression contains just one token, otherwise,
returns a string.
|
void |
evaluate(String expression,
Writer out,
Object target,
IURI resourceUri,
IContext context,
HttpServletRequest request)
Print evaluated value for given target object and context.
|
String |
executeRegexp(String pattern,
String value)
Executes regexp pattern against string value.
|
Object |
getProperty(Object target,
String property)
Get property value for given property and target.
|
void |
sort(List<?> l,
String key,
IContext context)
Sorts list by expression key.
|
void evaluate(String expression, Writer out, Object target, IURI resourceUri, IContext context, HttpServletRequest request) throws PortalException, IOException
expression
- Value expression (ie '{name}').out
- Eval to this output stream.target
- Target object.resourceUri
- Paging resource uri.context
- User context.request
- Current request.PortalException
IOException
Object evaluate(String expression, Object target, IURI resourceUri, IContext context, HttpServletRequest request) throws PortalException
expression
- Value expression (ie '{name}').target
- Target object.resourceUri
- Paging resource uri.context
- User context.request
- Current request.PortalException
void sort(List<?> l, String key, IContext context) throws PortalException
PortalException
Object getProperty(Object target, String property) throws PortalException
PortalException
String executeRegexp(String pattern, String value) throws PortalException
PortalException