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

java.lang.Object
  extended by org.apache.cocoon.forms.formmodel.algorithms.AbstractBaseAlgorithmBuilder
      extended by org.apache.cocoon.forms.formmodel.algorithms.SimpleFormulaBuilder
All Implemented Interfaces:
Contextualizable, LogEnabled, Serviceable, 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 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.forms.formmodel.algorithms.AbstractBaseAlgorithmBuilder
context
 
Fields inherited from interface org.apache.cocoon.forms.formmodel.CalculatedFieldAlgorithmBuilder
ROLE
 
Constructor Summary
SimpleFormulaBuilder()
           
 
Method Summary
 CalculatedFieldAlgorithm build(Element algorithmElement)
           
 void dispose()
           
 void service(ServiceManager serviceManager)
           
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
contextualize, enableLogging, getLogger, setup, setupComponent, 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

service

public void service(ServiceManager serviceManager)
             throws ServiceException
Specified by:
service in interface Serviceable
Overrides:
service in class AbstractBaseAlgorithmBuilder
Throws:
ServiceException

dispose

public void dispose()


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