org.apache.commons.jelly.tags.core
Class ForEachTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.core.ForEachTag
All Implemented Interfaces:
Tag

public class ForEachTag
extends TagSupport

A tag which performs an iteration over the results of an XPath expression

Version:
$Revision: 1.15 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
ForEachTag()
           
 
Method Summary
 void doTag(XMLOutput output)
          Evaluates this tag after all the tags properties have been initialized.
 void setBegin(int begin)
          Sets the starting index value
 void setEnd(int end)
          Sets the ending index value
 void setIndexVar(java.lang.String indexVar)
          Sets the variable name to export the current index counter to
 void setItems(Expression items)
          Sets the expression used to iterate over
 void setStep(int step)
          Sets the index increment step
 void setVar(java.lang.String var)
          Sets the variable name to export for the item being iterated over
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForEachTag

public ForEachTag()
Method Detail

doTag

public void doTag(XMLOutput output)
           throws java.lang.Exception
Description copied from interface: Tag
Evaluates this tag after all the tags properties have been initialized.

setItems

public void setItems(Expression items)
Sets the expression used to iterate over

setVar

public void setVar(java.lang.String var)
Sets the variable name to export for the item being iterated over

setIndexVar

public void setIndexVar(java.lang.String indexVar)
Sets the variable name to export the current index counter to

setBegin

public void setBegin(int begin)
Sets the starting index value

setEnd

public void setEnd(int end)
Sets the ending index value

setStep

public void setStep(int step)
Sets the index increment step


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.