public class ExpressionHelper extends Object
Constructor and Description |
---|
ExpressionHelper(ExpressionResolver resolver,
PageContext pageContext) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String expression,
Class<T> expectedType)
Resolves the given expression.
|
<T> T |
get(String expression,
Locale locale,
Class<T> expectedType)
Resolves the given expression, with the given locale.
|
boolean |
getBoolean(String expression)
Resolves the given expression as boolean.
|
boolean |
getBoolean(String expression,
Locale locale)
Resolves the given expression as boolean, with the given locale.
|
String |
getString(String expression)
Resolves the given expression as string.
|
String |
getString(String expression,
Locale locale)
Resolves the given expression as string, with the given locale.
|
public ExpressionHelper(ExpressionResolver resolver, PageContext pageContext)
public String getString(String expression)
expression
- the expression to be resolvedpublic String getString(String expression, Locale locale)
expression
- the expression to be resolvedlocale
- the localepublic boolean getBoolean(String expression)
expression
- the expression to be resolvedpublic boolean getBoolean(String expression, Locale locale)
expression
- the expression to be resolvedlocale
- the localepublic <T> T get(String expression, Class<T> expectedType)
T
- the type of the resolved expressionexpression
- the expression to be resolvedexpectedType
- the expected type of the resolved expressionpublic <T> T get(String expression, Locale locale, Class<T> expectedType)
T
- the type of the resolved expressionexpression
- the expression to be resolvedlocale
- the localeexpectedType
- the expected type of the resolved expression"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"