org.ejtools.servlet.http.jsp.tagext.tree
Class BeanContextTreeTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.ejtools.servlet.http.jsp.tagext.tree.BeanContextTreeTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class BeanContextTreeTag
extends javax.servlet.jsp.tagext.TagSupport

Description of the Class

Version:
$Revision: 1.1 $
Author:
Laurent Etiemble
See Also:
Serialized Form

Field Summary
protected  java.lang.String id
          Description of the Field
protected  boolean ignore
          Should we ignore missing beans and simply output nothing?
protected  java.lang.String name
          Name of the bean that contains the data we will be rendering.
protected  java.lang.String property
          Description of the Field
protected  java.lang.String scope
          The scope to be searched to retrieve the specified bean.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
BeanContextTreeTag()
           
 
Method Summary
 int doStartTag()
          Description of the Method
 java.lang.String getId()
          Gets the id attribute of the BeanContextTreeTag object
 boolean getIgnore()
          Gets the ignore attribute of the BeanContextTreeTag object
 java.lang.String getName()
          Getter for the name attribute
 java.lang.String getProperty()
          Gets the property attribute of the BeanContextTreeTag object
 java.lang.String getScope()
          Getter for the scope attribute
protected  java.util.Collection populate(java.beans.beancontext.BeanContext context, java.lang.String depth)
          Description of the Method
 void release()
          Description of the Method
 void setId(java.lang.String id)
          Sets the id attribute of the BeanContextTreeTag object
 void setIgnore(boolean ignore)
          Setter for the ignore attribute
 void setName(java.lang.String name)
          Setter for the name attribute
 void setProperty(java.lang.String property)
          Sets the property attribute of the BeanContextTreeTag object
 void setScope(java.lang.String scope)
          Setter for the scope attribute
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id
Description of the Field


ignore

protected boolean ignore
Should we ignore missing beans and simply output nothing?


name

protected java.lang.String name
Name of the bean that contains the data we will be rendering.


property

protected java.lang.String property
Description of the Field


scope

protected java.lang.String scope
The scope to be searched to retrieve the specified bean.

Constructor Detail

BeanContextTreeTag

public BeanContextTreeTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Description of the Method

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
Description of the Return Value
Throws:
javax.servlet.jsp.JspException - Description of the Exception

getId

public java.lang.String getId()
Gets the id attribute of the BeanContextTreeTag object

Overrides:
getId in class javax.servlet.jsp.tagext.TagSupport
Returns:
The id value

getIgnore

public boolean getIgnore()
Gets the ignore attribute of the BeanContextTreeTag object

Returns:
The ignore value

getName

public java.lang.String getName()
Getter for the name attribute

Returns:
The value of name attribute

getProperty

public java.lang.String getProperty()
Gets the property attribute of the BeanContextTreeTag object

Returns:
The property value

getScope

public java.lang.String getScope()
Getter for the scope attribute

Returns:
The value of scope attribute

release

public void release()
Description of the Method

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

setId

public void setId(java.lang.String id)
Sets the id attribute of the BeanContextTreeTag object

Overrides:
setId in class javax.servlet.jsp.tagext.TagSupport
Parameters:
id - The new id value

setIgnore

public void setIgnore(boolean ignore)
Setter for the ignore attribute

Parameters:
ignore - The new value for ignore attribute

setName

public void setName(java.lang.String name)
Setter for the name attribute

Parameters:
name - The new value for name attribute

setProperty

public void setProperty(java.lang.String property)
Sets the property attribute of the BeanContextTreeTag object

Parameters:
property - The new property value

setScope

public void setScope(java.lang.String scope)
Setter for the scope attribute

Parameters:
scope - The new value for scope attribute

populate

protected java.util.Collection populate(java.beans.beancontext.BeanContext context,
                                        java.lang.String depth)
Description of the Method

Parameters:
context - Description of the Parameter
depth - Description of the Parameter
Returns:
Description of the Return Value


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.