Package org.apache.tools.ant.taskdefs
Class MacroDef.Text
- java.lang.Object
- 
- org.apache.tools.ant.taskdefs.MacroDef.Text
 
- 
- Enclosing class:
- MacroDef
 
 public static class MacroDef.Text extends java.lang.ObjectA nested text element for the MacroDef task.- Since:
- ant 1.6.1
 
- 
- 
Constructor SummaryConstructors Constructor Description Text()
 - 
Method SummaryModifier and Type Method Description booleanequals(java.lang.Object obj)equality methodjava.lang.StringgetDefault()java.lang.StringgetDescription()java.lang.StringgetName()booleangetOptional()booleangetTrim()inthashCode()voidsetDefault(java.lang.String defaultString)voidsetDescription(java.lang.String desc)voidsetName(java.lang.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- 
setNamepublic void setName(java.lang.String name) The name of the attribute.- Parameters:
- name- the name of the attribute
 
 - 
getNamepublic java.lang.String 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
 
 - 
setDescriptionpublic void setDescription(java.lang.String desc) - Parameters:
- desc- Description of the text.
 
 - 
getDescriptionpublic java.lang.String getDescription() - Returns:
- the description of the text, or nullif no description is available.
 
 - 
setDefaultpublic void setDefault(java.lang.String defaultString) - Parameters:
- defaultString- default text for the string.
 
 - 
getDefaultpublic java.lang.String getDefault() - Returns:
- the default text if set, null otherwise.
 
 - 
equalspublic boolean equals(java.lang.Object obj) equality method- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- obj- an- Objectvalue
- Returns:
- a booleanvalue
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
- Returns:
- a hash code value for this object.
 
 
- 
 
-