01: /**
02: * $Id: CatalogTagTEI.java,v 1.2 2002/06/01 22:16:17 sorensen Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.wireless.taglibs.util;
14:
15: import javax.servlet.jsp.*;
16: import javax.servlet.jsp.tagext.*;
17:
18: /**
19: * CatalogTagTEI - tag extra info for CatalogTag
20: *
21: *
22: * @author Bryan Hanks
23: * @author Robert O'Brien
24: *
25: * @version 1.0
26: */
27: public class CatalogTagTEI extends TagExtraInfo {
28:
29: private static String TYPE = "com.sun.portal.wireless.taglibs.util.Catalog";
30:
31: /**
32: * Get the scripting info about the catalog
33: *
34: * @param data tag data
35: * @return the scripting info
36: */
37: public VariableInfo[] getVariableInfo(TagData data) {
38: String id = data.getAttributeString("id");
39:
40: if (id == null) {
41: return null;
42: }
43:
44: VariableInfo idinfo = new VariableInfo(id, TYPE, true,
45: VariableInfo.AT_BEGIN);
46: VariableInfo[] info = { idinfo };
47:
48: return info;
49: }
50: }
|