Package org.apache.tools.ant.taskdefs
Class MacroDef.Attribute
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.MacroDef.Attribute
 
- 
- Enclosing class:
- MacroDef
 
 public static class MacroDef.Attribute extends java.lang.ObjectAn attribute for the MacroDef task.
- 
- 
Constructor SummaryConstructors Constructor Description Attribute()
 - 
Method SummaryModifier and Type Method Description booleanequals(java.lang.Object obj)equality methodjava.lang.StringgetDefault()java.lang.StringgetDescription()java.lang.StringgetName()inthashCode()booleanisDoubleExpanding()Determines whetherRuntimeConfigurable.maybeConfigure(Project, boolean)will reevaluate this property.voidsetDefault(java.lang.String defaultValue)The default value to use if the parameter is not used in the templated instance.voidsetDescription(java.lang.String desc)voidsetDoubleExpanding(boolean doubleExpanding)SeeisDoubleExpanding()for explanation.voidsetName(java.lang.String name)The name of the attribute.
 
- 
- 
- 
Method Detail- 
setNamepublic void setName(java.lang.String name) The name of the attribute.- Parameters:
- name- the name of the attribute
 
 - 
getNamepublic java.lang.String getName() - Returns:
- the name of the attribute
 
 - 
setDefaultpublic void setDefault(java.lang.String defaultValue) The default value to use if the parameter is not used in the templated instance.- Parameters:
- defaultValue- the default value
 
 - 
getDefaultpublic java.lang.String getDefault() - Returns:
- the default value, null if not set
 
 - 
setDescriptionpublic void setDescription(java.lang.String desc) - Parameters:
- desc- Description of the element.
- Since:
- ant 1.6.1
 
 - 
getDescriptionpublic java.lang.String getDescription() - Returns:
- the description of the element, or nullif no description is available.
- Since:
- ant 1.6.1
 
 - 
setDoubleExpandingpublic void setDoubleExpanding(boolean doubleExpanding) SeeisDoubleExpanding()for explanation.- Parameters:
- doubleExpanding- true to expand twice, false for just once
- Since:
- Ant 1.8.3
 
 - 
isDoubleExpandingpublic boolean isDoubleExpanding() Determines whetherRuntimeConfigurable.maybeConfigure(Project, boolean)will reevaluate this property. For compatibility reasons (#52621) it will, though for most applications (#42046) it should not.- Returns:
- true if expanding twice (the default), false for just once
- Since:
- Ant 1.8.3
 
 - 
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.
 
 
- 
 
-