jfun.yan.xml.nuts.optional
Class ForeachNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nut.BinderNut
          extended by jfun.yan.xml.nuts.DelegatingBinderNut
              extended by jfun.yan.xml.nuts.optional.ForeachNut
All Implemented Interfaces:
java.io.Serializable

public class ForeachNut
extends DelegatingBinderNut

This Nut class creates a Binder object that passes each element in an array/collection/map to another Binder object for subsequent changes.

If the object is not an array/collection/Map, it directly calls against the object itself.

Author:
Ben Yu Nov 12, 2005 11:59:27 PM
See Also:
Serialized Form

Constructor Summary
ForeachNut()
           
 
Method Summary
 Binder eval()
           
 
Methods inherited from class jfun.yan.xml.nuts.DelegatingBinderNut
add, getBinder, getMandatory, setBinder
 
Methods inherited from class jfun.yan.xml.nut.Nut
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeachNut

public ForeachNut()
Method Detail

eval

public Binder eval()
            throws java.lang.Exception
Specified by:
eval in class BinderNut
Throws:
java.lang.Exception