org.apache.cocoon.forms.expression
Interface ExpressionManager

All Known Implementing Classes:
DefaultExpressionManager

public interface ExpressionManager

Work interface for the component that creates Expression objects. The reason for centralising the creation of expressions is so that new functions can be registered in one place.

Version:
$Id: ExpressionManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
static String ROLE
           
 
Method Summary
 org.outerj.expression.Expression parse(String expression)
          Parse the given expression.
 List parseVariables(String expressionString)
          Parse the given expression to extract variables.
 

Field Detail

ROLE

static final String ROLE
Method Detail

parse

org.outerj.expression.Expression parse(String expression)
                                       throws org.outerj.expression.ParseException,
                                              org.outerj.expression.ExpressionException
Parse the given expression.

Parameters:
expression - The string containing the expression to parse.
Returns:
The Expression object resulting from parse.
Throws:
org.outerj.expression.ParseException - If something goes wrong while parsing.
org.outerj.expression.ExpressionException - If the expression has been parsed successfully but is invalid.

parseVariables

List parseVariables(String expressionString)
                    throws org.outerj.expression.ParseException,
                           org.outerj.expression.ExpressionException
Parse the given expression to extract variables.

Parameters:
expressionString - The string containing the expression to parse.
Returns:
A List of VariableFunction, one for each variable used in the expression.
Throws:
org.outerj.expression.ParseException - If something goes wrong while parsing.
org.outerj.expression.ExpressionException - If the expression has been parsed successfully but is invalid.
See Also:
VariableFunction.getVariableName()


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.