001/*
002 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
003 * 
004 * This software is open source. 
005 * See the bottom of this file for the licence.
006 * 
007 * $Id: CharacterData.java,v 1.4 2001/06/20 18:59:23 jstrachan Exp $
008 */
009
010package org.dom4j;
011
012/**<p><code>CharacterData</code> is a marker interface for
013  * character based nodes such as the <code>CDATA</code>, <code>Comment</code> 
014  * and <code>Text</code> nodes.</p>
015  *
016  * @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
017  * @version $Revision: 1.4 $
018  */
019public interface CharacterData extends Node {
020
021    /** Appends the given text to this nodes text value. Calling this
022      * method is equivalent of the code <code>node.setText( node.getText() + text )</code>
023      * but allows for possible implementation optimisations (such as a text based node
024      * storing a StringBuffer internally
025      */
026    public void appendText(String text);
027}
028
029
030
031
032/*
033 * Redistribution and use of this software and associated documentation
034 * ("Software"), with or without modification, are permitted provided
035 * that the following conditions are met:
036 *
037 * 1. Redistributions of source code must retain copyright
038 *    statements and notices.  Redistributions must also contain a
039 *    copy of this document.
040 *
041 * 2. Redistributions in binary form must reproduce the
042 *    above copyright notice, this list of conditions and the
043 *    following disclaimer in the documentation and/or other
044 *    materials provided with the distribution.
045 *
046 * 3. The name "DOM4J" must not be used to endorse or promote
047 *    products derived from this Software without prior written
048 *    permission of MetaStuff, Ltd.  For written permission,
049 *    please contact dom4j-info@metastuff.com.
050 *
051 * 4. Products derived from this Software may not be called "DOM4J"
052 *    nor may "DOM4J" appear in their names without prior written
053 *    permission of MetaStuff, Ltd. DOM4J is a registered
054 *    trademark of MetaStuff, Ltd.
055 *
056 * 5. Due credit should be given to the DOM4J Project
057 *    (http://dom4j.org/).
058 *
059 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
060 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
061 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
062 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
063 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
064 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
065 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
066 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
067 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
068 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
069 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
070 * OF THE POSSIBILITY OF SUCH DAMAGE.
071 *
072 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
073 *
074 * $Id: CharacterData.java,v 1.4 2001/06/20 18:59:23 jstrachan Exp $
075 */