Package org.apache.tools.ant.taskdefs
Class MacroDef.TemplateElement
java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.TemplateElement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
equality method.Gets the description of this element.getName()
Gets the name of this element.int
hashCode()
boolean
Gets whether this element is implicit.boolean
Gets whether this element is optional.void
setDescription
(String desc) Sets a textual description of this element, for build documentation purposes only.void
setImplicit
(boolean implicit) Sets whether this element is implicit.void
Sets the name of this element.void
setOptional
(boolean optional) Sets whether this element is optional.
-
Constructor Details
-
TemplateElement
public TemplateElement()
-
-
Method Details
-
setName
Sets the name of this element.- Parameters:
name
- the name of the element
-
getName
-
setDescription
Sets a textual description of this element, for build documentation purposes only.- Parameters:
desc
- Description of the element.- Since:
- ant 1.6.1
-
getDescription
Gets the description of this element.- Returns:
- the description of the element, or
null
if no description is available. - Since:
- ant 1.6.1
-
setOptional
public void setOptional(boolean optional) Sets whether this element is optional.- Parameters:
optional
- if true this element may be left out, default is false.
-
isOptional
public boolean isOptional()Gets whether this element is optional.- Returns:
- the optional attribute
-
setImplicit
public void setImplicit(boolean implicit) Sets whether this element is implicit.- Parameters:
implicit
- if true this element may be left out, default is false.
-
isImplicit
public boolean isImplicit()Gets whether this element is implicit.- Returns:
- the implicit attribute
-
equals
-
hashCode
-