|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.japano.PageNode
org.japano.pagenode.jstl.core.ForEach
org.japano.pagenode.jstl.core.ForTokens
public class ForTokens
Iterates over tokens, separated by the supplied delimeters
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.japano.PageNode |
|---|
PageNode.Output |
| Field Summary |
|---|
| Fields inherited from class org.japano.pagenode.jstl.core.ForEach |
|---|
begin, beginSet, count, current, delimiter, end, endOfRun, endSet, first, iBegin, iEnd, index, iStep, items, itemsSet, last, step, var, varStatus |
| Fields inherited from class org.japano.PageNode |
|---|
children, context, EMPTY, nodeId, parent |
| Constructor Summary | |
|---|---|
ForTokens()
|
|
| Method Summary | |
|---|---|
void |
generate(Buffer out)
Generates this node The base implementation just calls PageNode.generateChildren(Buffer) |
java.lang.Integer |
getBegin()
Returns the begin value. |
int |
getCount()
Returns the current count. |
java.lang.Object |
getCurrent()
Returns the current object. |
java.lang.Integer |
getEnd()
Returns the end value. |
int |
getIndex()
Returns the current index. |
java.lang.Integer |
getStep()
Returns the step value. |
boolean |
isFirst()
Returns true if the current iteration is the first. |
boolean |
isLast()
Returns true if the current iteration is the last. |
void |
setBegin(int begin)
If items specified: Iteration begins at the item located at the specified index. |
void |
setDelimiter(java.lang.String delimiter)
The set of delimiters (the characters that separate the tokens in the string). |
void |
setEnd(int end)
If items specified: Iteration ends at the item located at the specified index (inclusive). |
void |
setItems(java.lang.String items)
String of tokens to iterate over. |
void |
setStep(int step)
Iteration will only process every step items of the collection, starting with the first one. |
void |
setVar(java.lang.String var)
Name of the exported scoped variable for the current item of the iteration. |
void |
setVarStatus(java.lang.String varStatus)
Name of the exported scoped variable for the status of the iteration. |
| Methods inherited from class org.japano.pagenode.jstl.core.ForEach |
|---|
generateChildren, iterate, setItems |
| Methods inherited from class org.japano.PageNode |
|---|
findChildren, findParent, findRootNode, getChildren, getContext, getNodeId, getParent, init, recInit, release, setChildren, setContext, setNodeId, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForTokens()
| Method Detail |
|---|
public void setVarStatus(java.lang.String varStatus)
setVarStatus in class ForEachpublic void setVar(java.lang.String var)
setVar in class ForEachpublic void setItems(java.lang.String items)
items - New value of property items.public void setDelimiter(java.lang.String delimiter)
items - New value of property items.public void setBegin(int begin)
setBegin in class ForEachpublic void setEnd(int end)
setEnd in class ForEachpublic void setStep(int step)
setStep in class ForEachpublic java.lang.Object getCurrent()
getCurrent in interface javax.servlet.jsp.jstl.core.LoopTagStatusgetCurrent in class ForEachpublic int getIndex()
getIndex in interface javax.servlet.jsp.jstl.core.LoopTagStatusgetIndex in class ForEachpublic int getCount()
getCount in interface javax.servlet.jsp.jstl.core.LoopTagStatusgetCount in class ForEachpublic java.lang.Integer getStep()
getStep in interface javax.servlet.jsp.jstl.core.LoopTagStatusgetStep in class ForEachpublic boolean isLast()
true if the current iteration is the last.
isLast in interface javax.servlet.jsp.jstl.core.LoopTagStatusisLast in class ForEachpublic boolean isFirst()
true if the current iteration is the first.
isFirst in interface javax.servlet.jsp.jstl.core.LoopTagStatusisFirst in class ForEachpublic java.lang.Integer getEnd()
getEnd in interface javax.servlet.jsp.jstl.core.LoopTagStatusgetEnd in class ForEachpublic java.lang.Integer getBegin()
getBegin in interface javax.servlet.jsp.jstl.core.LoopTagStatusgetBegin in class ForEachpublic void generate(Buffer out)
PageNodePageNode.generateChildren(Buffer)
generate in class ForEach
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||