public class ELActionContext extends AbstractActionContext implements ActionContext
| Modifier and Type | Field and Description |
|---|---|
static javax.el.ExpressionFactory |
EXPRESSION_FACTORY |
protected javax.el.ExpressionFactory |
expressionFactory |
protected javax.el.ELContext |
originalContext |
currentDocument, currentPrincipal, docMgr, localVariables| Constructor and Description |
|---|
ELActionContext() |
ELActionContext(javax.el.ELContext originalContext,
javax.el.ExpressionFactory expressionFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCondition(String expression)
Returns true if given expression resolves to true in this context.
|
<T> T |
evalExpression(String expression,
Class<T> expectedType)
Evaluates the given
expression and returns the result cast to the given expectedType. |
disableGlobalCaching, getCurrentDocument, getCurrentPrincipal, getDocumentManager, getLocalVariable, putAllLocalVariables, putLocalVariable, setCurrentDocument, setCurrentPrincipal, setDocumentManager, sizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableGlobalCaching, getCurrentDocument, getCurrentPrincipal, getDocumentManager, getLocalVariable, putAllLocalVariables, putLocalVariable, setCurrentDocument, setCurrentPrincipal, setDocumentManager, sizeprotected final javax.el.ELContext originalContext
protected final javax.el.ExpressionFactory expressionFactory
public static final javax.el.ExpressionFactory EXPRESSION_FACTORY
public ELActionContext()
public ELActionContext(javax.el.ELContext originalContext, javax.el.ExpressionFactory expressionFactory)
public <T> T evalExpression(String expression, Class<T> expectedType) throws javax.el.ELException
ActionContextexpression and returns the result cast to the given expectedType.evalExpression in interface ActionContextjavax.el.ELExceptionpublic boolean checkCondition(String expression) throws javax.el.ELException
ActionContextReturns false if expression is blank (null or empty).
checkCondition in interface ActionContextcheckCondition in class AbstractActionContextjavax.el.ELExceptionCopyright © 2019 Nuxeo. All rights reserved.