Package org.apache.tools.ant.taskdefs.modules

## Class Link.ModuleSpec

- java.lang.Object
- - org.apache.tools.ant.taskdefs.modules.Link.ModuleSpec

- Enclosing class:
    Link

      public class Link.ModuleSpec
      extends java.lang.Object

  Child element that explicitly names a Java module.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ModuleSpec()` | Creates an unconfigured element.
    `ModuleSpec​(java.lang.String name)` | Creates an element with the given module name.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getName()` | Attribute containing name of module this element represents.
    `void` | `setName​(java.lang.String name)` | Sets attribute representing the name of this module this element represents.
    `void` | `validate()` | Verifies this element's state.

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

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

- - ### Constructor Detail

    - #### ModuleSpec

          public ModuleSpec()

      Creates an unconfigured element.

    - #### ModuleSpec

          public ModuleSpec​(java.lang.String name)

      Creates an element with the given module name.
      Parameters:
        `name` - module's name

  - ### Method Detail

    - #### getName

          public java.lang.String getName()

      Attribute containing name of module this element represents.
      Returns:
        name of module

    - #### setName

          public void setName​(java.lang.String name)

      Sets attribute representing the name of this module this element represents.
      Parameters:
        `name` - module's name

    - #### validate

          public void validate()

      Verifies this element's state.
      Throws:
        `BuildException` - if name is not set