Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/aendvari/tethys/tag/logic/IterateTEI.java


1   /*
2    * IterateTEI.java
3    *
4    * Copyright (c) 2001, 2002 Aendvari, Ltd. All Rights Reserved.
5    *
6    * See the file LICENSE for terms of use.
7    *
8    */
9   
10  package com.aendvari.tethys.tag.logic;
11  
12  import javax.servlet.jsp.tagext.*;
13  
14  import com.aendvari.common.model.*;
15  
16  import com.aendvari.tethys.*;
17  
18  
19  /**
20   * <p>Implementation class for the "iterate" TEI tag.</p>
21   *
22   * @author  Scott Milne
23   *
24   */
25  
26  public class IterateTEI extends TagExtraInfo
27  {
28    public IterateTEI()
29    {
30      super();
31    }
32  
33      /**
34       * Return information about the scripting variables to be created.
35       */
36  
37    public VariableInfo[] getVariableInfo(TagData data)
38    {
39      String indexName = data.getAttributeString("indexName");
40  
41      // if the indexName is empty, don't set one
42      if( indexName == null )
43      {
44        //indexName = IterateTag.DefaultIndexName;
45        return null;
46      }
47  
48      return new VariableInfo[]
49      {
50        new VariableInfo(
51          indexName,
52          "java.lang.Integer",
53          true,
54          VariableInfo.NESTED
55        )
56      };
57    }
58  }
59