org.apache.cocoon.taglib.jxpath.core
Class ForEachTag

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.taglib.TagSupport
          extended byorg.apache.cocoon.taglib.VarTagSupport
              extended byorg.apache.cocoon.taglib.core.LoopTagSupport
                  extended byorg.apache.cocoon.taglib.core.ForEachSupport
                      extended byorg.apache.cocoon.taglib.jxpath.core.ForEachTag
All Implemented Interfaces:
IterationTag, LogEnabled, LoopTag, Poolable, Recyclable, Serviceable, Tag

public class ForEachTag
extends ForEachSupport
implements LoopTag, IterationTag

A handler for <forEach> that accepts attributes as Strings and evaluates them as expressions at runtime.

Migration from JSTL1.0

Version:
CVS $Id: ForEachTag.java 30941 2004-07-29 19:56:58Z vgritsenko $
Author:
Volker Schmitt
See Also:
org.apache.taglibs.standard.tag.el.core.ForEachTag

Nested Class Summary
 
Nested classes inherited from class org.apache.cocoon.taglib.core.ForEachSupport
ForEachSupport.ForEachIterator, ForEachSupport.SimpleForEachIterator
 
Field Summary
 
Fields inherited from class org.apache.cocoon.taglib.core.ForEachSupport
items, rawItems
 
Fields inherited from class org.apache.cocoon.taglib.core.LoopTagSupport
begin, beginSpecified, count, end, endSpecified, index, last, statusId, step, stepSpecified
 
Fields inherited from class org.apache.cocoon.taglib.VarTagSupport
manager, var
 
Fields inherited from class org.apache.cocoon.taglib.TagSupport
objectModel, parameters, parent, resolver
 
Fields inherited from interface org.apache.cocoon.taglib.Tag
EVAL_BODY, EVAL_PAGE, ROLE, SKIP_BODY
 
Fields inherited from interface org.apache.cocoon.taglib.IterationTag
EVAL_BODY_AGAIN
 
Constructor Summary
ForEachTag()
           
 
Method Summary
 int doStartTag(String namespaceURI, String localName, String qName, Attributes atts)
          Process the start tag for this instance.
 void recycle()
           
 void setBegin(String begin_)
           
 void setEnd(String end_)
           
 void setItems(String items_)
           
 void setStep(String step_)
           
 
Methods inherited from class org.apache.cocoon.taglib.core.ForEachSupport
hasNext, next, prepare, supportedTypeForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator, toForEachIterator
 
Methods inherited from class org.apache.cocoon.taglib.core.LoopTagSupport
doAfterBody, doCatch, doFinally, getCurrent, getIteratorStatus, setVarStatus, validateBegin, validateEnd, validateStep
 
Methods inherited from class org.apache.cocoon.taglib.VarTagSupport
getRequest, getVar, getVariable, removeVariable, service, setVar, setVariable
 
Methods inherited from class org.apache.cocoon.taglib.TagSupport
doEndTag, findAncestorWithClass, findAttribute, getParent, setParent, setup
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.taglib.core.LoopTag
getCurrent, getIteratorStatus
 
Methods inherited from interface org.apache.cocoon.taglib.Tag
doEndTag, getParent, setParent, setup
 
Methods inherited from interface org.apache.cocoon.taglib.IterationTag
doAfterBody
 

Constructor Detail

ForEachTag

public ForEachTag()
Method Detail

doStartTag

public int doStartTag(String namespaceURI,
                      String localName,
                      String qName,
                      Attributes atts)
               throws SAXException
Description copied from interface: Tag
Process the start tag for this instance.

The doStartTag method assumes that parent have been set. It also assumes that any properties exposed as attributes have been set too. When this method is invoked, the body has not yet been evaluated.

Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class LoopTagSupport
Throws:
SAXException

recycle

public void recycle()
Specified by:
recycle in interface Recyclable
Overrides:
recycle in class ForEachSupport

setBegin

public void setBegin(String begin_)

setEnd

public void setEnd(String end_)

setStep

public void setStep(String step_)

setItems

public void setItems(String items_)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.