Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      org.apache.cocoon.forms.formmodel.algorithms.AbstractBaseAlgorithmBuilder
          org.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.java 587759 2007-10-24 03:00:37Z vgritsenko $

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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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