|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateInterpreter
Name: TemplateInterpreter
Description: Description of the class.
Method Summary | |
---|---|
boolean |
evalBooleanExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a boolean value. |
Date |
evalDateExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a Date value. |
double |
evalDoubleExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a double value. |
float |
evalFloatExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a float value. |
int |
evalIntExpr(String expression,
TemplateContext ctx)
Evaluates an expression as an int value. |
long |
evalLongExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a long value. |
Object |
evalObjectExpr(String expression,
TemplateContext ctx)
Evaluates an expression as an Object. |
String |
evalStringExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a String value. |
Time |
evalTimeExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a Time value. |
Timestamp |
evalTimestampExpr(String expression,
TemplateContext ctx)
Evaluates an expression as a Timestamp value. |
String |
execute(String template,
TemplateContext ctx)
Executes the given template. |
void |
execute(String template,
Writer writer,
TemplateContext ctx)
Executes the given template. |
void |
execute(TemplateRoot template,
Writer writer,
TemplateContext ctx)
Executes the given template. |
ExpressionFilter |
getExpressionFilter()
Getter method for the the property expressionFilter. |
TemplateRoot |
parse(String source)
Parses the given template source code. |
void |
setExpressionFilter(ExpressionFilter expressionFilter)
Setter method for the the property expressionFilter. |
Method Detail |
---|
TemplateRoot parse(String source) throws TemplateException, IOException
source
- The source to parse.
TemplateException
- If the expression could not be
successfuly resolved
IOException
- In case a I/O problem occured while writing the
expression result.String execute(String template, TemplateContext ctx) throws TemplateException
template
- The source code of the template to execute.ctx
- The template context to use.
TemplateException
- If the an expression could not be
successfuly resolvedvoid execute(String template, Writer writer, TemplateContext ctx) throws TemplateException, IOException
template
- The source code of the template to execute.writer
- The writer to output the result to.ctx
- The template context to use.
TemplateException
- If the an expression could not be
successfuly resolved
IOException
- If something went wrong while writing the
result to the given writer.void execute(TemplateRoot template, Writer writer, TemplateContext ctx) throws TemplateException, IOException
template
- The root element of the template parse result.writer
- The writer to output the result to.ctx
- The template context to use.
TemplateException
- If the an expression could not be
successfuly resolved
IOException
- If something went wrong while writing the
result to the given writer.boolean evalBooleanExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedint evalIntExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedlong evalLongExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedfloat evalFloatExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolveddouble evalDoubleExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedDate evalDateExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedTime evalTimeExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedTimestamp evalTimestampExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedString evalStringExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedObject evalObjectExpr(String expression, TemplateContext ctx) throws ExpressionException
expression
- The expression to evaluate.ctx
- The template context.
ExpressionException
- If the expression could not be successfuly resolvedExpressionFilter getExpressionFilter()
void setExpressionFilter(ExpressionFilter expressionFilter)
expressionFilter
- The value to set for the property expressionFilter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |