ScriptDef.Attribute (Apache Ant API)
Description: declaration: package: org.apache.tools.ant.taskdefs.optional.script, class: ScriptDef, class: Attribute

# Class ScriptDef.Attribute

java.lang.Object
org.apache.tools.ant.taskdefs.optional.script.ScriptDef.Attribute

Enclosing class:
  `ScriptDef`

public static class ScriptDef.Attribute extends Object
Class representing an attribute definition

Since:
  Ant 1.6

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Attribute()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setDefault(String defaultValue)`
  Set the default value of this `ScriptDef.Attribute`.
  `void`
  `setName(String name)`
  Sets the attribute name.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### Attribute

    public Attribute()

- ## Method Details

  - ### setName

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

  - ### setDefault

    public void setDefault(String defaultValue)
    Set the default value of this `ScriptDef.Attribute`.
    Parameters:
      `defaultValue` - `String`
    Since:
      Ant 1.10.13