Package org.apache.tools.ant.taskdefs
Class MacroDef.Text
java.lang.Object
org.apache.tools.ant.taskdefs.MacroDef.Text
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
Textpublic Text()
 
- 
- 
Method Details- 
setNameThe name of the attribute.- Parameters:
- name- the name of the attribute
 
- 
getName- Returns:
- the name of the attribute
 
- 
setOptionalpublic void setOptional(boolean optional) The optional attribute of the text element.- Parameters:
- optional- if true this is optional
 
- 
getOptionalpublic boolean getOptional()- Returns:
- true if the text is optional
 
- 
setTrimpublic 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.
 
- 
getTrimpublic 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
 
-