org.apache.tools.ant.taskdefs

Class MacroDef.TemplateElement

Enclosing Class:
MacroDef

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

A nested element for the MacroDef task.

Method Summary

boolean
equals(Object obj)
equality method
String
getDescription()
String
getName()
int
hashCode()
boolean
isImplicit()
boolean
isOptional()
void
setDescription(String desc)
void
setImplicit(boolean implicit)
is this element implicit ?
void
setName(String name)
The name of the element.
void
setOptional(boolean optional)
is this element optional ?

Method Details

equals

public boolean equals(Object obj)
equality method
Parameters:
obj - an Object value
Returns:
a boolean value

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 element.

hashCode

public int hashCode()
Returns:
a hash code value for this object.

isImplicit

public boolean isImplicit()
Returns:
the implicit attribute

isOptional

public boolean isOptional()
Returns:
the optional attribute

setDescription

public void setDescription(String desc)
Parameters:
desc - Description of the element.
Since:
ant 1.6.1

setImplicit

public void setImplicit(boolean implicit)
is this element implicit ?
Parameters:
implicit - if true this element may be left out, default is false.

setName

public void setName(String name)
The name of the element.
Parameters:
name - the name of the element.

setOptional

public void setOptional(boolean optional)
is this element optional ?
Parameters:
optional - if true this element may be left out, default is false.

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