This project has retired. For details please refer to its
Attic page .
AbstractBaseAlgorithm (Cocoon API 2.1.12-dev [March 20 2012])
org.apache.cocoon.forms.formmodel.algorithms
Class AbstractBaseAlgorithm
java.lang.Object
org.apache.cocoon.forms.formmodel.algorithms.AbstractBaseAlgorithm
All Implemented Interfaces: Contextualizable , LogEnabled , CalculatedFieldAlgorithm
Direct Known Subclasses: SimpleFormula
public abstract class AbstractBaseAlgorithm extends Object implements CalculatedFieldAlgorithm , LogEnabled , Contextualizable
Abstract base class for algorithms.
This class implements the getTriggerWidgets method and holds the triggers list. It also implements
Contextualizable and LogEnabled to give the algorithms access to the cocoon's ObjectModel and Loggers.
Version:
$Id: AbstractBaseAlgorithm.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
triggers
protected List triggers
AbstractBaseAlgorithm
public AbstractBaseAlgorithm ()
getTriggerWidgets
public Iterator getTriggerWidgets ()
Description copied from interface: CalculatedFieldAlgorithm
Returns an iterator on trigger widget paths. When the value of a trigger widget changes,
then the CalculatedField
value must be recalculated.
Specified by: getTriggerWidgets
in interface CalculatedFieldAlgorithm
Returns: An iterator of Strings representing widget paths as interpreted by WidgetFinder
.
addTrigger
public void addTrigger (String widget)
enableLogging
public void enableLogging (Logger logger)
Specified by: enableLogging
in interface LogEnabled
getLogger
protected Logger getLogger ()
contextualize
public void contextualize (Context context)
throws ContextException
Specified by: contextualize
in interface Contextualizable
Throws:
ContextException
getContext
protected Context getContext ()
clearTriggers
public void clearTriggers ()
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.