org.apache.tools.ant.taskdefs

Class MacroDef.Attribute

Enclosing Class:
MacroDef

public static class MacroDef.Attribute
extends java.lang.Object

A nested element for the MacroDef task.

Method Summary

boolean
equals(Object obj)
equality method
String
getDefault()
String
getDescription()
String
getName()
int
hashCode()
void
setDefault(String defaultValue)
The default value to use if the parameter is not used in the templated instance.
void
setDescription(String desc)
void
setName(String name)
The name of the attribute.

Method Details

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


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.