javax.servlet.jsp.tagext
Class TagVariableInfo

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagVariableInfo

public class TagVariableInfo
extends java.lang.Object

TagVariableInfo objects create runtime variables available to the tags.

For example, a NESTED variable could be used like:

 <mytag:loop name='i' min='0' max='10'>
   Iter: <%= i %>
 </mytag:loop>
 

Since:
JSP 1.2

Constructor Summary
TagVariableInfo(java.lang.String nameGiven, java.lang.String nameFromAttribute, java.lang.String className, boolean declare, int scope)
          Creates information for a variable.
 
Method Summary
 java.lang.String getClassName()
          Returns the variable's Java class.
 boolean getDeclare()
          True if the variable should be declared.
 java.lang.String getNameFromAttribute()
          Returns the attribute name that will contain the variable name
 java.lang.String getNameGiven()
          Returns the variable name, if it's static.
 int getScope()
          Returns the variable's scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagVariableInfo

public TagVariableInfo(java.lang.String nameGiven,
                       java.lang.String nameFromAttribute,
                       java.lang.String className,
                       boolean declare,
                       int scope)
Creates information for a variable.

Parameters:
nameGiven - name of the variable
nameFromAttribute - name of the variable
className - the java classname of the variable
declare - true if the variable should be declared
scope - the scope of the variable
Method Detail

getNameGiven

public java.lang.String getNameGiven()
Returns the variable name, if it's static.


getNameFromAttribute

public java.lang.String getNameFromAttribute()
Returns the attribute name that will contain the variable name


getClassName

public java.lang.String getClassName()
Returns the variable's Java class.


getDeclare

public boolean getDeclare()
True if the variable should be declared. If false, the JSP engine assumes the variable is already declared and just assigns the value.


getScope

public int getScope()
Returns the variable's scope.