KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > jsp > taglib > containers > QueryTEI


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.containers;
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 QueryContainer tags.
18  *
19  * @author Michiel Meeuwissen
20  * @version $Id: QueryTEI.java,v 1.1 2006/07/04 12:16:09 michiel Exp $
21  */

22
23 public class QueryTEI extends TagExtraInfo JavaDoc {
24
25     /**
26      * Implementation of TagExtraInfo return values declared here
27      * should be filled at one point, in this case with the CloudTag.
28      **/

29     public VariableInfo JavaDoc[] getVariableInfo(TagData JavaDoc data){
30         VariableInfo JavaDoc[] variableInfo = null;
31
32         String JavaDoc jspvar = (String JavaDoc) data.getAttribute("jspvar");
33
34         if (jspvar != null) {
35             variableInfo = new VariableInfo JavaDoc[1];
36             variableInfo[0] = new VariableInfo JavaDoc(jspvar, org.mmbase.bridge.Query.class.getName(), true, VariableInfo.NESTED);
37         }
38         return variableInfo;
39     }
40
41 }
42
Popular Tags