org.apache.tools.ant.taskdefs

Class MacroDef.TemplateElement

public static class MacroDef.TemplateElement extends Object

A nested element for the MacroDef task.
Method Summary
booleanequals(Object obj)
equality method
StringgetDescription()
StringgetName()
inthashCode()
booleanisImplicit()
booleanisOptional()
voidsetDescription(String desc)
voidsetImplicit(boolean implicit)
is this element implicit ?
voidsetName(String name)
The name of the element.
voidsetOptional(boolean optional)
is this element optional ?

Method Detail

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.