KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > jsp > taglib > CloudTEI


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.bridge.jsp.taglib;
11
12 import javax.servlet.jsp.tagext.TagExtraInfo JavaDoc;
13 import javax.servlet.jsp.tagext.VariableInfo JavaDoc;
14 import javax.servlet.jsp.tagext.TagData JavaDoc;
15
16 /**
17  * The TEI class belonging to the CloudTag and descendents
18  *
19  * @author Michiel Meeuwissen
20  * @version $Id: CloudTEI.java,v 1.9 2006/07/04 12:14:57 michiel Exp $
21  */

22
23 public class CloudTEI extends TagExtraInfo JavaDoc {
24
25     protected String JavaDoc cloudType() {
26         return org.mmbase.bridge.Cloud.class.getName();
27     }
28
29     /**
30      * Implementation of TagExtraInfo return values declared here
31      * should be filled at one point, in this case with the CloudTag.
32      **/

33     public VariableInfo JavaDoc[] getVariableInfo(TagData JavaDoc data){
34         VariableInfo JavaDoc[] variableInfo = null;
35
36         String JavaDoc jspvar = (String JavaDoc) data.getAttribute("jspvar");
37
38         if (jspvar != null) {
39             variableInfo = new VariableInfo JavaDoc[1];
40             variableInfo[0] = new VariableInfo JavaDoc(jspvar, cloudType(), true, VariableInfo.NESTED);
41         }
42         return variableInfo;
43     }
44
45 }
46
Popular Tags