public class ForEach extends AbstractAction
| Constructor and Description |
|---|
ForEach() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBegin()
Returns the index of the item at which the iteration begins.
|
int |
getEnd()
Returns the index of the item at which the iteration ends (inclusive).
|
java.lang.Object |
getItems()
Returns the attribute items.
|
java.lang.String |
getVar()
Returns the variable name used to iterate thru items.
|
java.lang.String |
getVarStatus()
Returns the variable name used to hold the current iteration
status, an instance of
LoopStatus. |
boolean |
isTrim()
Returns whether to trim the result.
|
void |
render(ActionContext ac,
boolean nested)
Processes the action and renders the output to
ActionContext.getOut(). |
void |
setBegin(int beg)
Sets the index of the item at which the iteration begins.
|
void |
setEnd(int end)
Sets the index of the item at which the iteration ends (inclusive).
|
void |
setItems(java.lang.Object items)
Sets the attribute items.
|
void |
setTrim(boolean trim)
Sets whether to trim the result.
|
void |
setVar(java.lang.String var)
Sets the variable name used to iterate thru items.
|
void |
setVarStatus(java.lang.String varStatus)
Sets the variable name used to hold the current iteration status.
|
java.lang.String |
toString() |
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScopepublic java.lang.String getVar()
public void setVar(java.lang.String var)
public java.lang.String getVarStatus()
LoopStatus.public void setVarStatus(java.lang.String varStatus)
public java.lang.Object getItems()
public void setItems(java.lang.Object items)
public int getBegin()
public void setBegin(int beg)
Default: 0.
public int getEnd()
public void setEnd(int end)
Default: Integer.MAX_VALUE.
public boolean isTrim()
public void setTrim(boolean trim)
Default: true.
public void render(ActionContext ac, boolean nested) throws DspException, java.io.IOException
ActionActionContext.getOut().nested - whether there is any nested content.DspExceptionjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2011 Potix Corporation. All Rights Reserved.