Package org.apache.tools.ant.taskdefs

# Class MacroDef.Attribute

java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.Attribute

Enclosing class:
  `MacroDef`

public static class MacroDef.Attribute extends Object
An attribute for the MacroDef task.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Attribute()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  equality method
  `String`
  `getDefault()`
  `String`
  `getDescription()`
  `String`
  `getName()`
  `int`
  `hashCode()`
  `boolean`
  `isDoubleExpanding()`
  Determines whether `RuntimeConfigurable.maybeConfigure(Project, boolean)` will reevaluate this property.
  `void`
  `setDefault(String defaultValue)`
  The default value to use if the parameter is not used in the templated instance.
  `void`
  `setDescription(String desc)`
  `void`
  `setDoubleExpanding(boolean doubleExpanding)`
  See `isDoubleExpanding()` for explanation.
  `void`
  `setName(String name)`
  The name of the attribute.

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Attribute

    public Attribute()

- ## Method Details

  - ### setName

    public void setName(String name)
    The name of the attribute.
    Parameters:
      `name` - the name of the attribute

  - ### getName

    public String getName()
    Returns:
      the name of the attribute

  - ### setDefault

    public void setDefault(String defaultValue)
    The default value to use if the parameter is not used in the templated instance.
    Parameters:
      `defaultValue` - the default value

  - ### getDefault

    public String getDefault()
    Returns:
      the default value, null if not set

  - ### setDescription

    public void setDescription(String desc)
    Parameters:
      `desc` - Description of the element.
    Since:
      ant 1.6.1

  - ### getDescription

    public String getDescription()
    Returns:
      the description of the element, or `null` if no description is available.
    Since:
      ant 1.6.1

  - ### setDoubleExpanding

    public void setDoubleExpanding(boolean doubleExpanding)
    See `isDoubleExpanding()` for explanation.
    Parameters:
      `doubleExpanding` - true to expand twice, false for just once
    Since:
      Ant 1.8.3

  - ### isDoubleExpanding

    public boolean isDoubleExpanding()
    Determines whether `RuntimeConfigurable.maybeConfigure(Project, boolean)` will reevaluate this property. For compatibility reasons (#52621) it will, though for most applications (#42046) it should not.
    Returns:
      true if expanding twice (the default), false for just once
    Since:
      Ant 1.8.3

  - ### equals

    public boolean equals(Object obj)
    equality method
    Overrides:
      `equals` in class `Object`
    Parameters:
      `obj` - an `Object` value
    Returns:
      a `boolean` value

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`
    Returns:
      a hash code value for this object.