Browse Source

Add accessor for the text content.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273666 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 22 years ago
parent
commit
b345410bb2
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/main/org/apache/tools/ant/RuntimeConfigurable.java

+ 10
- 0
src/main/org/apache/tools/ant/RuntimeConfigurable.java View File

@@ -199,6 +199,16 @@ public class RuntimeConfigurable {
addText(new String(buf, start, count));
}

/** Get the text content of this element. Various text chunks are
* concatenated, there is no way ( currently ) of keeping track of
* multiple fragments.
*
* @return the text content of this element.
*/
public StringBuffer getText() {
return characters;
}

/**
* Returns the tag name of the wrapped element.
*


Loading…
Cancel
Save