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