From b345410bb2be9ca58d6482f7dd772f4d1747b77d Mon Sep 17 00:00:00 2001 From: Costin Manolache Date: Fri, 13 Dec 2002 21:55:45 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/RuntimeConfigurable.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/org/apache/tools/ant/RuntimeConfigurable.java b/src/main/org/apache/tools/ant/RuntimeConfigurable.java index 4f4546754..b308535c4 100644 --- a/src/main/org/apache/tools/ant/RuntimeConfigurable.java +++ b/src/main/org/apache/tools/ant/RuntimeConfigurable.java @@ -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. *