org.apache.struts.taglib
Class BaseAttributeTag

org.apache.struts.taglib.BaseAttributeTag
Direct Known Subclasses:
IfAttributeExistsTag, IfAttributeMissingTag, IfPropertyEqualsTag, IfPropertyNotEqualsTag

public abstract class BaseAttributeTag

Base class for conditionals based on the presence or absence of attributes in some appropriate scope (default=session). This class cannot be directly instantiated; it must be subclassed.

Version:
$Revision: 1.2 $ $Date: 2000/07/17 16:37:44 $
Author:
Arun M. Thomas

Field Summary
protected  java.lang.String name
          The name of the attribute being tested.
protected  java.lang.String scope
          The scope of the attribute being tested.
 
Constructor Summary
BaseAttributeTag()
           
 
Method Summary
 java.lang.String getName()
          Return the attribute name.
 java.lang.String getScope()
          Return the attribute scope.
protected  int getScopeId()
          Return the scope identifier of the scope we are requesting.
 void release()
          Release any acquired resources.
 void setName(java.lang.String name)
          Set the attribute name.
 void setScope(java.lang.String scope)
          Set the attribute scope.
 

Field Detail

name

protected java.lang.String name
The name of the attribute being tested.

scope

protected java.lang.String scope
The scope of the attribute being tested.
Constructor Detail

BaseAttributeTag

public BaseAttributeTag()
Method Detail

getName

public java.lang.String getName()
Return the attribute name.

setName

public void setName(java.lang.String name)
Set the attribute name.
Parameters:
name - The new attribute name

getScope

public java.lang.String getScope()
Return the attribute scope.

setScope

public void setScope(java.lang.String scope)
Set the attribute scope.
Parameters:
scope - The new attribute scope

release

public void release()
Release any acquired resources.

getScopeId

protected int getScopeId()
Return the scope identifier of the scope we are requesting.


Copyright © 2000-2002 - Apache Software Foundation