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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.taglib.TagSupport
          extended by org.apache.cocoon.taglib.VarTagSupport
              extended by org.apache.cocoon.taglib.core.LoopTagSupport
                  extended by org.apache.cocoon.taglib.core.ForEachSupport
                      extended by org.apache.cocoon.taglib.jxpath.core.ForEachTag
All Implemented Interfaces:
Poolable, Recyclable, Component, LogEnabled, Serviceable, LoopTag, IterationTag, 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.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Volker Schmitt
See Also:
org.apache.taglibs.standard.tag.el.core.ForEachTag

Nested Class Summary
 
Nested classes/interfaces 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.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface org.apache.cocoon.taglib.Tag
EVAL_BODY, EVAL_PAGE, ROLE, SKIP_BODY
 
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.IterationTag
doAfterBody
 
Methods inherited from interface org.apache.cocoon.taglib.Tag
doEndTag, getParent, setParent, setup
 

Constructor Detail

ForEachTag

public ForEachTag()
Method Detail

doStartTag

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

The doStartTag method assumes that pageContext and 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
Returns:
EVAL_BODY or SKIP_BODY.
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-2010 The Apache Software Foundation. All Rights Reserved.