public class DateFormatEvaluator extends Evaluator
Formats values using a given date format.
Pass three parameters:
EntityField or a date expression to be parsed with
the DateMathParser class If the value is in a String,
then it is assumed to be a datemath expression, otherwise it
resolved using a VariableResolver instanceSimpleDateFormat for the syntax.Locale to parse.
(optional. Defaults to the Root Locale) | Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DATE_FORMAT |
DATE_FORMAT_EVALUATOR, ESCAPE_SOLR_QUERY_CHARS, SQL_ESCAPE_EVALUATOR, URL_ENCODE_EVALUATOR| Constructor and Description |
|---|
DateFormatEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(String expression,
Context context)
Return a String after processing an expression and a
VariableResolver |
public static final String DEFAULT_DATE_FORMAT
public String evaluate(String expression, Context context)
EvaluatorVariableResolverevaluate in class Evaluatorexpression - string to be evaluatedcontext - instanceVariableResolverCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.