org.apache.commons.jelly
Class DynaBeanTagSupport
java.lang.Object
|
+--org.apache.commons.jelly.TagSupport
|
+--org.apache.commons.jelly.DynaTagSupport
|
+--org.apache.commons.jelly.DynaBeanTagSupport
- All Implemented Interfaces:
- DynaTag, Tag
- Direct Known Subclasses:
- DynamicBeanTag, DynamicDynaBeanTag
- public abstract class DynaBeanTagSupport
- extends DynaTagSupport
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
Method Summary |
void |
beforeSetAttributes()
Callback to allow processing to occur before the attributes are about to be set |
java.lang.Class |
getAttributeType(java.lang.String name)
|
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, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynaBeanTagSupport
public DynaBeanTagSupport()
DynaBeanTagSupport
public DynaBeanTagSupport(org.apache.commons.beanutils.DynaBean dynaBean)
setContext
public void setContext(JellyContext context)
throws JellyTagException
- Sets the context in which the tag will be run.
- Overrides:
setContext
in class TagSupport
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws JellyTagException
- Sets an attribute value of this tag before the tag is invoked
getAttributeType
public java.lang.Class getAttributeType(java.lang.String name)
throws JellyTagException
- Overrides:
getAttributeType
in class DynaTagSupport
- Returns:
- the type of the given attribute. By default just return
Object.class if this is not known.
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 JellyTagException
- Callback to allow processing to occur before the attributes are about to be set
Copyright © 2002-2004 Apache Software Foundation. All Rights Reserved.