Package org.apache.tools.ant.taskdefs
Class MacroDef.Text
java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.Text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequality methodgetName()booleanbooleangetTrim()inthashCode()voidsetDefault(String defaultString) voidsetDescription(String desc) voidThe name of the attribute.voidsetOptional(boolean optional) The optional attribute of the text element.voidsetTrim(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
nullif no description is available.
-
setDefault
- Parameters:
defaultString- default text for the string.
-
getDefault
- Returns:
- the default text if set, null otherwise.
-
equals
-
hashCode
-