Package org.apache.tools.ant.taskdefs
Class MacroDef.Text
java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.Text
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
equality methodgetName()
boolean
boolean
getTrim()
int
hashCode()
void
setDefault
(String defaultString) void
setDescription
(String desc) void
The name of the attribute.void
setOptional
(boolean optional) The optional attribute of the text element.void
setTrim
(boolean trim) The trim attribute of the text element.
-
Constructor Details
-
Text
public Text()
-
-
Method Details
-
setName
The name of the attribute.- Parameters:
name
- the name of the attribute
-
getName
- Returns:
- 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
-
getOptional
public boolean getOptional()- Returns:
- true if the text 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.
-
getTrim
public boolean getTrim()- Returns:
- true if the text is trim
-
setDescription
- Parameters:
desc
- Description of the text.
-
getDescription
- Returns:
- the description of the text, or
null
if no description is available.
-
setDefault
- Parameters:
defaultString
- default text for the string.
-
getDefault
- Returns:
- the default text if set, null otherwise.
-
equals
-
hashCode
-