Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.jet.taglib
Interface IteratingTag

All Superinterfaces:
ContainerTag, CustomTag, EmptyTag
All Known Implementing Classes:
AbstractIteratingTag

public interface IteratingTag
extends ContainerTag

Define the behavior of a JET2 iterating tag. An iterating tag:

  • Must be of the form an open-tag (<myiterate>) and a close-tag (</myiterate>).
  • Control the number of times the body content is written via the methods doInitializeLoop(TagInfo, JET2Context) and doEvalLoopCondition(TagInfo, JET2Context).
  • Methods are called in the following sequence:
  • The set*() methods as defined by CustomTag to initialize the tag
  • doInitializeLoop(TagInfo, JET2Context) is called to allow the tag to determine the loop data.
  • doEvalLoopCondition(TagInfo, JET2Context) is called multiple times to traverse the loop data.
  • Each time doEvalLoopCondition(TagInfo, JET2Context) returns true, then the body processing methods are called as described in ContainerTag.

  • Method Summary
     boolean doEvalLoopCondition ( TagInfo td, JET2Context context)
              Determine whether the tag should do another iteration, and, if so, setup any data for the iteration.
     void doInitializeLoop ( TagInfo td, JET2Context context)
              Initialize any data required to determine how many times the tag should iterate.
     
    Methods inherited from interface org.eclipse.jet.taglib. ContainerTag
    doAfterBody, doBeforeBody, setBodyContent
     
    Methods inherited from interface org.eclipse.jet.taglib. EmptyTag
    doAction
     

    Method Detail

    doEvalLoopCondition

    boolean doEvalLoopCondition(
    TagInfo td,
                                
    JET2Context context)
                                throws 
    JET2TagException
    
    Determine whether the tag should do another iteration, and, if so, setup any data for the iteration. This method is called one more more times after the call to doInitializeLoop(TagInfo, JET2Context).

    Parameters:
    td - the tag information (attribute values, etc)
    context - the JET2 execution context.
    Returns:
    true if another iteration is to be performed, false otherwise.
    Throws:
    JET2TagException - if the method cannot complete successfully. Note that this will terminate the tag loop.

    doInitializeLoop

    void doInitializeLoop(
    TagInfo td,
                          
    JET2Context context)
                          throws 
    JET2TagException
    
    Initialize any data required to determine how many times the tag should iterate. This method is called once, and is called prior to any calls to doEvalLoopCondition(TagInfo, JET2Context).

    Parameters:
    td - the tag data (attribute values, etc)
    context - the JET2 exectuion context
    Throws:
    JET2TagException - if the method cannot execute successfully.

    Copyright 2006 IBM Corporation and others.
    All Rights Reserved.


     
     
      Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire