|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ForEach
public void setVar(java.lang.String var)
setVar
in class ForEach
public 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 ForEach
public void setEnd(int end)
setEnd
in class ForEach
public void setStep(int step)
setStep
in class ForEach
public java.lang.Object getCurrent()
getCurrent
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
getCurrent
in class ForEach
public int getIndex()
getIndex
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
getIndex
in class ForEach
public int getCount()
getCount
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
getCount
in class ForEach
public java.lang.Integer getStep()
getStep
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
getStep
in class ForEach
public boolean isLast()
true
if the current iteration is the last.
isLast
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
isLast
in class ForEach
public boolean isFirst()
true
if the current iteration is the first.
isFirst
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
isFirst
in class ForEach
public java.lang.Integer getEnd()
getEnd
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
getEnd
in class ForEach
public java.lang.Integer getBegin()
getBegin
in interface javax.servlet.jsp.jstl.core.LoopTagStatus
getBegin
in class ForEach
public void generate(Buffer out)
PageNode
PageNode.generateChildren(Buffer)
generate
in class ForEach
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |