org.apache.tools.ant.taskdefs

Class MacroDef.Attribute

public static class MacroDef.Attribute extends Object

An attribute for the MacroDef task.
Method Summary
booleanequals(Object obj)
equality method
StringgetDefault()
StringgetDescription()
StringgetName()
inthashCode()
voidsetDefault(String defaultValue)
The default value to use if the parameter is not used in the templated instance.
voidsetDescription(String desc)
voidsetName(String name)
The name of the attribute.

Method Detail

equals

public boolean equals(Object obj)
equality method

Parameters: obj an Object value

Returns: a boolean value

getDefault

public String getDefault()

Returns: the default value, null if not set

getDescription

public String getDescription()

Returns: the description of the element, or null if no description is available.

Since: ant 1.6.1

getName

public String getName()

Returns: the name of the attribute

hashCode

public int hashCode()

Returns: a hash code value for this object.

setDefault

public void setDefault(String defaultValue)
The default value to use if the parameter is not used in the templated instance.

Parameters: defaultValue the default value

setDescription

public void setDescription(String desc)

Parameters: desc Description of the element.

Since: ant 1.6.1

setName

public void setName(String name)
The name of the attribute.

Parameters: name the name of the attribute