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