KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > util > xml > CData


1 package org.sapia.util.xml;
2
3
4 // Import of Sun's JDK classes
5
// ---------------------------
6
import java.io.Serializable JavaDoc;
7
8
9 /**
10  * The <CODE>CData</CODE> class is an object representation of a XML CDATA section and
11  * it has only one attribute which is the content of the CDATA section.
12  *
13  * @author Jean-Cedric Desrochers
14  * <dl>
15  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
16  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
17  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
18  * </dl>
19  */

20 public class CData implements Serializable JavaDoc {
21   /** The string content of this cdata. */
22   private String JavaDoc _theContent;
23
24   /**
25    * Creates a new CData instance with the string content passed in.
26    */

27   public CData(String JavaDoc aContent) {
28     _theContent = aContent;
29   }
30
31   /**
32    * Returns the string content of this string buffer.
33    *
34    * @return The string content of this string buffer.
35    */

36   public String JavaDoc toString() {
37     return _theContent;
38   }
39 }
40
Popular Tags