org.apache.tools.ant.taskdefs

Class MacroDef.Text

public static class MacroDef.Text extends Object

A nested text element for the MacroDef task.

Since: ant 1.6.1

Method Summary
booleanequals(Object obj)
equality method
StringgetDescription()
StringgetName()
booleangetOptional()
booleangetTrim()
inthashCode()
voidsetDescription(String desc)
voidsetName(String name)
The name of the attribute.
voidsetOptional(boolean optional)
The optional attribute of the text element.
voidsetTrim(boolean trim)
The trim attribute of the text element.

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 text, or null if no description is available.

getName

public String getName()

Returns: the name of the attribute

getOptional

public boolean getOptional()

Returns: true if the text is optional

getTrim

public boolean getTrim()

Returns: true if the text is trim

hashCode

public int hashCode()

Returns: a hash code value for this object.

setDescription

public void setDescription(String desc)

Parameters: desc Description of the text.

setName

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

Parameters: name the name of the attribute

setOptional

public void setOptional(boolean optional)
The optional attribute of the text element.

Parameters: optional if true this is optional

setTrim

public void setTrim(boolean trim)
The trim attribute of the text element.

Parameters: trim if true this String.trim() is called on the contents of the text element.

Copyright