1 /*
2 * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
3 *
4 * This software is open source.
5 * See the bottom of this file for the licence.
6 *
7 * $Id: CharacterData.java,v 1.7 2004/06/25 08:03:33 maartenc Exp $
8 */
9
10 package org.dom4j;
11
12 /***<p><code>CharacterData</code> is a marker interface for
13 * character based nodes such as the <code>CDATA</code>, <code>Comment</code>
14 * and <code>Text</code> nodes.</p>
15 *
16 * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
17 * @version $Revision: 1.7 $
18 */
19 public interface CharacterData extends Node {
20
21 /*** Appends the given text to this nodes text value. Calling this
22 * method is equivalent of the code <code>node.setText( node.getText() + text )</code>
23 * but allows for possible implementation optimisations (such as a text based node
24 * storing a StringBuffer internally
25 */
26 public void appendText(String text);
27 }
28
29
30
31
32 /*
33 * Redistribution and use of this software and associated documentation
34 * ("Software"), with or without modification, are permitted provided
35 * that the following conditions are met:
36 *
37 * 1. Redistributions of source code must retain copyright
38 * statements and notices. Redistributions must also contain a
39 * copy of this document.
40 *
41 * 2. Redistributions in binary form must reproduce the
42 * above copyright notice, this list of conditions and the
43 * following disclaimer in the documentation and/or other
44 * materials provided with the distribution.
45 *
46 * 3. The name "DOM4J" must not be used to endorse or promote
47 * products derived from this Software without prior written
48 * permission of MetaStuff, Ltd. For written permission,
49 * please contact dom4j-info@metastuff.com.
50 *
51 * 4. Products derived from this Software may not be called "DOM4J"
52 * nor may "DOM4J" appear in their names without prior written
53 * permission of MetaStuff, Ltd. DOM4J is a registered
54 * trademark of MetaStuff, Ltd.
55 *
56 * 5. Due credit should be given to the DOM4J Project -
57 * http://www.dom4j.org
58 *
59 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
60 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
61 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
62 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
63 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
64 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
65 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
66 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
67 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
68 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
69 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
70 * OF THE POSSIBILITY OF SUCH DAMAGE.
71 *
72 * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved.
73 *
74 * $Id: CharacterData.java,v 1.7 2004/06/25 08:03:33 maartenc Exp $
75 */