///////////////////////////////
//  Makumba, Makumba tag library
//  Copyright (C) 2000-2003  http://www.makumba.org
//
//  This library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2.1 of the License, or (at your option) any later version.
//
//  This library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with this library; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//  -------------
//  $Id: InputTEI.java 1678 2007-09-24 15:36:19Z manuel_gay $
//  $Name$
/////////////////////////////////////

package org.makumba.forms.tags;

import javax.servlet.jsp.tagext.TagData;
import javax.servlet.jsp.tagext.TagExtraInfo;
import javax.servlet.jsp.tagext.VariableInfo;

/**
 * Extra information for input
 * @author Cristian Bogdan
 * @version $Id: InputTEI.java 1678 2007-09-24 15:36:19Z manuel_gay $
 *
 */
public class InputTEI extends TagExtraInfo {
    public VariableInfo[] getVariableInfo(TagData data) {

        String var = data.getAttributeString("nameVar");
        if (var != null) {
            VariableInfo ret[] = new VariableInfo[1];
            ret[0] = new VariableInfo(var, "java.lang.String", true, VariableInfo.AT_BEGIN);
            return ret;
        }

        return null;
    }

}
