org.apache.cocoon.forms.expression
Class DefaultExpressionManager
java.lang.Object
org.apache.cocoon.forms.expression.DefaultExpressionManager
- All Implemented Interfaces:
- Component, Configurable, ThreadSafe, ExpressionManager
public class DefaultExpressionManager
- extends Object
- implements ExpressionManager, Component, Configurable, ThreadSafe
Implementation of the ExpressionManager
role.
Custom functions can be added using configuration elements:
<function name="MyFunction" class="net.foo.MyFunction"/>
- Version:
- $Id: DefaultExpressionManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultExpressionManager
public DefaultExpressionManager()
configure
public void configure(Configuration config)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
parse
public org.outerj.expression.Expression parse(String expressionString)
throws org.outerj.expression.ParseException,
org.outerj.expression.ExpressionException
- Description copied from interface:
ExpressionManager
- Parse the given expression.
- Specified by:
parse
in interface ExpressionManager
- Parameters:
expressionString
- 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
public List parseVariables(String expressionString)
throws org.outerj.expression.ParseException,
org.outerj.expression.ExpressionException
- Description copied from interface:
ExpressionManager
- Parse the given expression to extract variables.
- Specified by:
parseVariables
in interface ExpressionManager
- 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.