java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/ChartImgURLTagEI.java
author František Kučera <franta-hg@frantovo.cz>
Sun, 01 Mar 2009 11:06:49 +0100
changeset 4 249560bcc466
parent 1 639991d0808a
permissions -rw-r--r--
Doplnění serializovatelnosti
     1 /* ================================================================
     2  * Cewolf : Chart enabling Web Objects Framework
     3  * ================================================================
     4  *
     5  * Project Info:  http://cewolf.sourceforge.net
     6  * Project Lead:  Guido Laures (guido@laures.de);
     7  *
     8  * (C) Copyright 2002, by Guido Laures
     9  *
    10  * This library is free software; you can redistribute it and/or modify it under the terms
    11  * of the GNU Lesser General Public License as published by the Free Software Foundation;
    12  * either version 2.1 of
    13  * the License, or (at your option) any later version.
    14  *
    15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
    16  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    17  * See the GNU Lesser General Public License for more details.
    18  *
    19  * You should have received a copy of the GNU Lesser General Public License along with this
    20  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
    21  * Boston, MA 02111-1307, USA.
    22  */
    23 
    24 package de.laures.cewolf.taglib.tags;
    25 
    26 import javax.servlet.jsp.tagext.TagData;
    27 import javax.servlet.jsp.tagext.TagExtraInfo;
    28 import javax.servlet.jsp.tagext.VariableInfo;
    29 
    30 /**
    31  * TagExxtraInfo for the ChartImgURLTag
    32  * @see ChartImgURLTag
    33  * @author glaures
    34  */
    35 public class ChartImgURLTagEI extends TagExtraInfo {
    36 	
    37 	/**
    38 	 * @see javax.servlet.jsp.tagext.TagExtraInfo#getVariableInfo(TagData)
    39 	 */
    40 	public VariableInfo[] getVariableInfo(TagData tagData) {
    41 		String varName = (String)(tagData.getAttribute(ChartImgURLTag.VAR_NAME));
    42 		if(varName == null){
    43 			return new VariableInfo[] {};
    44 		}
    45 		VariableInfo info = new VariableInfo(varName, "java.lang.String", true, VariableInfo.AT_END);
    46 		return new VariableInfo[] {info};
    47 	}
    48 
    49 }