org.apache.commons.jelly.tags.define
Class Attribute
java.lang.Object
|
+--org.apache.commons.jelly.tags.define.Attribute
- public class Attribute
- extends java.lang.Object
Represents the attribute definition used by dynamic tags, such as whether the attribute is required
or any default values etc.
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Attribute
public Attribute()
isRequired
public boolean isRequired()
- Returns whether this attribute is required.
- Returns:
- boolean
setRequired
public void setRequired(boolean required)
- Sets whether this attribute is required.
- Parameters:
required
- is true if this attribute is a mandatory attribute
getName
public java.lang.String getName()
- Returns the name.
- Returns:
- String
setName
public void setName(java.lang.String name)
- Sets the name.
- Parameters:
name
- The name to set
getDefaultValue
public Expression getDefaultValue()
- Returns the defaultValue.
- Returns:
- Expression
setDefaultValue
public void setDefaultValue(Expression defaultValue)
- Sets the defaultValue.
- Parameters:
defaultValue
- The defaultValue to set
Copyright © 2002-2002 Apache Software Foundation. All Rights Reserved.