Package org.apache.commons.jelly.impl
Class Attribute
java.lang.Object
org.apache.commons.jelly.impl.Attribute
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the defaultValue.getName()Returns the name.booleanReturns whether this attribute is required.voidsetDefaultValue(Expression defaultValue) Sets the defaultValue.voidSets the name.voidsetRequired(boolean required) Sets whether this attribute is required.
-
Constructor Details
-
Attribute
public Attribute()
-
-
Method Details
-
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
Returns the name.- Returns:
- String
-
setName
Sets the name.- Parameters:
name- The name to set
-
getDefaultValue
Returns the defaultValue.- Returns:
- Expression
-
setDefaultValue
Sets the defaultValue.- Parameters:
defaultValue- The defaultValue to set
-