01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */
13:
14: package com.sun.portal.portlet.taglib;
15:
16: import javax.servlet.jsp.tagext.TagData;
17: import javax.servlet.jsp.tagext.TagExtraInfo;
18: import javax.servlet.jsp.tagext.VariableInfo;
19:
20: public class PortletURLTagExtraInfo extends TagExtraInfo {
21:
22: public VariableInfo[] getVariableInfo(TagData data) {
23:
24: VariableInfo[] vInfos = null;
25:
26: String varName = data.getAttributeString("var");
27:
28: if (varName != null) {
29: vInfos = new VariableInfo[1];
30: vInfos[0] = new VariableInfo(varName, "java.lang.String",
31: true, VariableInfo.AT_END);
32: }
33: return vInfos;
34: }
35: }
|