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