KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > view > jsp > repository > RepositoryItemTei


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.view.jsp.repository;
8
9
10 import javax.servlet.jsp.tagext.TagData JavaDoc;
11 import javax.servlet.jsp.tagext.TagExtraInfo JavaDoc;
12 import javax.servlet.jsp.tagext.VariableInfo JavaDoc;
13
14
15 /**
16  * This class contains the extra tag information for the
17  * RepositoryItem tag. This is where the scripting variable
18  * get setup.
19  *
20  * @author Brian Pontarelli
21  */

22 public class RepositoryItemTei extends TagExtraInfo JavaDoc {
23
24     /** The class name that will be used for the variable infos */
25     public static final String JavaDoc OBJECT_CLASS = "java.lang.Object";
26
27
28     /**
29      * Returns the information about the var page variable that will hold the
30      * repository item.
31      */

32     public VariableInfo JavaDoc [] getVariableInfo(TagData JavaDoc data) {
33         return new VariableInfo JavaDoc [] {
34             new VariableInfo JavaDoc(data.getAttributeString("var"),
35                              OBJECT_CLASS,
36                              true,
37                              VariableInfo.AT_BEGIN)};
38     }
39 }
40
41
Popular Tags