Package org.apache.tools.ant.taskdefs
Class Concat.TextElement
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.taskdefs.Concat.TextElement
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable
 - Enclosing class:
- Concat
 
 public static class Concat.TextElement extends ProjectComponent sub element points to a file or contains text
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description TextElement()
 - 
Method SummaryModifier and Type Method Description voidaddText(java.lang.String value)set the text using inlinejava.lang.StringgetValue()voidsetEncoding(java.lang.String encoding)The encoding of the text elementvoidsetFile(java.io.File file)set the text using a filevoidsetFiltering(boolean filtering)whether to filter the text in this element or not.voidsetTrim(boolean trim)whether to call text.trim()voidsetTrimLeading(boolean strip)s:^\s*:: on each line of input- 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setFilteringpublic void setFiltering(boolean filtering) whether to filter the text in this element or not.- Parameters:
- filtering- true if the text should be filtered. the default value is true.
 
 - 
setEncodingpublic void setEncoding(java.lang.String encoding) The encoding of the text element- Parameters:
- encoding- the name of the charset used to encode
 
 - 
setFilepublic void setFile(java.io.File file) throws BuildExceptionset the text using a file- Parameters:
- file- the file to use
- Throws:
- BuildException- if the file does not exist, or cannot be read
 
 - 
addTextpublic void addText(java.lang.String value) set the text using inline- Parameters:
- value- the text to place inline
 
 - 
setTrimLeadingpublic void setTrimLeading(boolean strip) s:^\s*:: on each line of input- Parameters:
- strip- if true do the trim
 
 - 
setTrimpublic void setTrim(boolean trim) whether to call text.trim()- Parameters:
- trim- if true trim the text
 
 - 
getValuepublic java.lang.String getValue() - Returns:
- the text, after possible trimming
 
 
- 
 
-