org.apache.commons.jelly
Class DynaBeanTagSupport

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.DynaBeanTagSupport
All Implemented Interfaces:
DynaTag, Tag
Direct Known Subclasses:
ComponentTag, DynamicBeanTag, DynamicDynaBeanTag

public abstract class DynaBeanTagSupport
extends TagSupport
implements DynaTag

DynaBeanTag is a DynaTag implementation which uses a DynaBean to store its attribute values in. Derived tags can then process this DynaBean in any way it wishes.

Version:
$Revision: 1.3 $
Author:
James Strachan

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
DynaBeanTagSupport()
           
DynaBeanTagSupport(org.apache.commons.beanutils.DynaBean dynaBean)
           
 
Method Summary
 void beforeSetAttributes()
          Callback to allow processing to occur before the attributes are about to be set
 org.apache.commons.beanutils.DynaBean getDynaBean()
           
 void setAttribute(java.lang.String name, java.lang.Object value)
          Sets an attribute value of this tag before the tag is invoked
 void setContext(JellyContext context)
          Sets the context in which the tag will be run
 void setDynaBean(org.apache.commons.beanutils.DynaBean dynaBean)
          Sets the DynaBean which is used to store the attributes of this tag
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.jelly.Tag
doTag, getBody, getContext, getParent, invokeBody, setBody, setParent
 

Constructor Detail

DynaBeanTagSupport

public DynaBeanTagSupport()

DynaBeanTagSupport

public DynaBeanTagSupport(org.apache.commons.beanutils.DynaBean dynaBean)
Method Detail

setContext

public void setContext(JellyContext context)
                throws java.lang.Exception
Sets the context in which the tag will be run
Specified by:
setContext in interface Tag
Overrides:
setContext in class TagSupport

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
                  throws java.lang.Exception
Sets an attribute value of this tag before the tag is invoked
Specified by:
setAttribute in interface DynaTag

getDynaBean

public org.apache.commons.beanutils.DynaBean getDynaBean()
Returns:
the DynaBean which is used to store the attributes of this tag

setDynaBean

public void setDynaBean(org.apache.commons.beanutils.DynaBean dynaBean)
Sets the DynaBean which is used to store the attributes of this tag

beforeSetAttributes

public void beforeSetAttributes()
                         throws java.lang.Exception
Callback to allow processing to occur before the attributes are about to be set


Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.