Package org.apache.tools.ant.taskdefs
Class MacroDef.TemplateElement
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.MacroDef.TemplateElement
 
- 
- Enclosing class:
- MacroDef
 
 public static class MacroDef.TemplateElement extends java.lang.ObjectA nested element for the MacroDef task.
- 
- 
Constructor SummaryConstructors Constructor Description TemplateElement()
 - 
Method SummaryModifier and Type Method Description booleanequals(java.lang.Object obj)equality method.java.lang.StringgetDescription()Gets the description of this element.java.lang.StringgetName()Gets the name of this element.inthashCode()booleanisImplicit()Gets whether this element is implicit.booleanisOptional()Gets whether this element is optional.voidsetDescription(java.lang.String desc)Sets a textual description of this element, for build documentation purposes only.voidsetImplicit(boolean implicit)Sets whether this element is implicit.voidsetName(java.lang.String name)Sets the name of this element.voidsetOptional(boolean optional)Sets whether this element is optional.
 
- 
- 
- 
Method Detail- 
setNamepublic void setName(java.lang.String name) Sets the name of this element.- Parameters:
- name- the name of the element
 
 - 
getNamepublic java.lang.String getName() Gets the name of this element.- Returns:
- the name of the element.
 
 - 
setDescriptionpublic void setDescription(java.lang.String desc) Sets a textual description of this element, for build documentation purposes only.- Parameters:
- desc- Description of the element.
- Since:
- ant 1.6.1
 
 - 
getDescriptionpublic java.lang.String getDescription() Gets the description of this element.- Returns:
- the description of the element, or nullif no description is available.
- Since:
- ant 1.6.1
 
 - 
setOptionalpublic void setOptional(boolean optional) Sets whether this element is optional.- Parameters:
- optional- if true this element may be left out, default is false.
 
 - 
isOptionalpublic boolean isOptional() Gets whether this element is optional.- Returns:
- the optional attribute
 
 - 
setImplicitpublic void setImplicit(boolean implicit) Sets whether this element is implicit.- Parameters:
- implicit- if true this element may be left out, default is false.
 
 - 
isImplicitpublic boolean isImplicit() Gets whether this element is implicit.- Returns:
- the implicit attribute
 
 - 
equalspublic boolean equals(java.lang.Object obj) equality method.- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- obj- an- Objectvalue
- Returns:
- a booleanvalue
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
- Returns:
- a hash code value for this object.
 
 
- 
 
-