org.apache.commons.jelly.tags.define
Class AttributeTag

java.lang.Object
  |
  +--org.apache.commons.jelly.TagSupport
        |
        +--org.apache.commons.jelly.tags.define.AttributeTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class AttributeTag
extends org.apache.commons.jelly.TagSupport

This tag is bound onto a Java Bean class. When the tag is invoked a bean will be created using the tags attributes. The bean may also have an invoke method called invoke(), run(), execute() or some such method which will be invoked after the bean has been configured.

Version:
$Revision: 1.5 $
Author:
James Strachan, Jason van Zyl

Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
AttributeTag()
           
AttributeTag(org.apache.commons.jelly.impl.Attribute attribute)
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 void setDefaultValue(org.apache.commons.jelly.expression.Expression defaultValue)
          Sets the default value of this attribute
 void setName(java.lang.String name)
          Sets the name of the attribute
 void setRequired(boolean required)
          Sets whether this attribute is mandatory or not
 
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
 

Constructor Detail

AttributeTag

public AttributeTag()

AttributeTag

public AttributeTag(org.apache.commons.jelly.impl.Attribute attribute)
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Overrides:
doTag in class org.apache.commons.jelly.TagSupport

setName

public void setName(java.lang.String name)
Sets the name of the attribute

setRequired

public void setRequired(boolean required)
Sets whether this attribute is mandatory or not

setDefaultValue

public void setDefaultValue(org.apache.commons.jelly.expression.Expression defaultValue)
Sets the default value of this attribute


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