org.apache.cocoon.forms.formmodel.algorithms
Class SimpleFormulaBuilder

java.lang.Object
  extended byorg.apache.cocoon.forms.formmodel.algorithms.AbstractBaseAlgorithmBuilder
      extended byorg.apache.cocoon.forms.formmodel.algorithms.SimpleFormulaBuilder
All Implemented Interfaces:
CalculatedFieldAlgorithmBuilder
Direct Known Subclasses:
RepeatedFormulaBuilder

public class SimpleFormulaBuilder
extends AbstractBaseAlgorithmBuilder

Builds a SimpleFormula algorithm.

The syntax is as follows : <fd:value type="formula" eval="..."> [triggers="..."]/>

Version:
$Id: SimpleFormulaBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.forms.formmodel.CalculatedFieldAlgorithmBuilder
ROLE
 
Constructor Summary
SimpleFormulaBuilder()
           
 
Method Summary
 CalculatedFieldAlgorithm build(Element algorithmElement)
           
 void setExpressionManager(ExpressionManager expressionManager)
           
protected  org.outerj.expression.Expression setupExpression(String formula)
           
protected  void setupExpression(String formula, SimpleFormula algo)
           
 
Methods inherited from class org.apache.cocoon.forms.formmodel.algorithms.AbstractBaseAlgorithmBuilder
setup, setupTriggers, setupTriggers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFormulaBuilder

public SimpleFormulaBuilder()
Method Detail

build

public CalculatedFieldAlgorithm build(Element algorithmElement)
                               throws Exception
Throws:
Exception

setupExpression

protected org.outerj.expression.Expression setupExpression(String formula)
                                                    throws Exception
Throws:
Exception

setupExpression

protected void setupExpression(String formula,
                               SimpleFormula algo)
                        throws Exception
Throws:
Exception

setExpressionManager

public void setExpressionManager(ExpressionManager expressionManager)


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.