Package org.apache.commons.jelly.impl
Class Attribute
- java.lang.Object
-
- org.apache.commons.jelly.impl.Attribute
-
public class Attribute extends Object
Represents the attribute definition used by dynamic tags, such as whether the attribute is required or any default values etc.- Version:
- $Revision: 155420 $
- Author:
- James Strachan
-
-
Constructor Summary
Constructors Constructor Description Attribute()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
getDefaultValue()
Returns the defaultValue.String
getName()
Returns the name.boolean
isRequired()
Returns whether this attribute is required.void
setDefaultValue(Expression defaultValue)
Sets the defaultValue.void
setName(String name)
Sets the name.void
setRequired(boolean required)
Sets whether this attribute is required.
-
-
-
Method Detail
-
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 String getName()
Returns the name.- Returns:
- String
-
setName
public void setName(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
-
-