org.apache.commons.jelly.tags.dynabean
Class PropertyTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.tags.dynabean.PropertyTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class PropertyTag
- extends org.apache.commons.jelly.TagSupport
DynaProperty tag defines a property of a DynaClass
It can only exist inside a DynaClass parent context
The properties are added to the properties array
of the parent context, and will be used to
create the DynaClass object
- Version:
- 1.0
- Author:
- Theo Niemeijer
Field Summary |
private java.lang.String |
name
|
private org.apache.commons.beanutils.DynaProperty |
prop
|
private java.lang.Class |
propertyClass
|
private java.lang.String |
type
|
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.Class |
getPropertyClass()
Returns the Class for this property |
void |
setName(java.lang.String name)
Sets the name of this property |
void |
setPropertyClass(java.lang.Class propertyClass)
Sets the Class instance for this property |
void |
setType(java.lang.String type)
Sets the type name of this property |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
type
private java.lang.String type
propertyClass
private java.lang.Class propertyClass
prop
private org.apache.commons.beanutils.DynaProperty prop
PropertyTag
public PropertyTag()
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
setName
public void setName(java.lang.String name)
- Sets the name of this property
setType
public void setType(java.lang.String type)
- Sets the type name of this property
getPropertyClass
public java.lang.Class getPropertyClass()
- Returns the Class for this property
setPropertyClass
public void setPropertyClass(java.lang.Class propertyClass)
- Sets the Class instance for this property