|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoopTagStatus
Provides an interface for objects representing the current status of an iteration. Cocoon taglibrary provides a mechanism for LoopTags to return information about the current index of the iteration and convenience methods to determine whether or not the current round is either the first or last in the iteration. It also lets authors use the status object to obtain information about the iteration range, step, and current object.
Environments that require more status can extend this interface.
This Interface is a copy from JSTL1.0
LoopTagStatus
Method Summary | |
---|---|
Integer |
getBegin()
Returns the value of the 'begin' attribute for the associated tag, or null if no 'begin' attribute was specified. |
int |
getCount()
Retrieves the "count" of the current round of the iteration. |
Object |
getCurrent()
Retrieves the current item in the iteration. |
Integer |
getEnd()
Returns the value of the 'end' attribute for the associated tag, or null if no 'end' attribute was specified. |
int |
getIndex()
Retrieves the index of the current round of the iteration. |
Integer |
getStep()
Returns the value of the 'step' attribute for the associated tag, or null if no 'step' attribute was specified. |
boolean |
isFirst()
Returns information about whether the current round of the iteration is the first one. |
boolean |
isLast()
Returns information about whether the current round of the iteration is the last one. |
Method Detail |
---|
Object getCurrent()
int getIndex()
int getCount()
Retrieves the "count" of the current round of the iteration. The count is a relative, 1-based sequence number identifying the current "round" of iteration (in context with all rounds the current iteration will perform).
As an example, an iteration with begin = 5, end = 15, and step = 5 produces the counts 1, 2, and 3 in that order.
boolean isFirst()
boolean isLast()
Integer getBegin()
Integer getEnd()
Integer getStep()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |