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 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

      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