01 /*
02 * $Id: Text.java,v 1.2 2004/04/02 01:24:19 ofung Exp $
03 * $Revision: 1.2 $
04 * $Date: 2004/04/02 01:24:19 $
05 */
06
07 /*
08 * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
09 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
10 *
11 * This code is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License version 2 only, as
13 * published by the Free Software Foundation. Sun designates this
14 * particular file as subject to the "Classpath" exception as provided
15 * by Sun in the LICENSE file that accompanied this code.
16 *
17 * This code is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * version 2 for more details (a copy is included in the LICENSE file that
21 * accompanied this code).
22 *
23 * You should have received a copy of the GNU General Public License version
24 * 2 along with this work; if not, write to the Free Software Foundation,
25 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 *
27 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
28 * CA 95054 USA or visit www.sun.com if you need additional information or
29 * have any questions.
30 */
31 package javax.xml.soap;
32
33 /**
34 * A representation of a node whose value is text. A <code>Text</code> object
35 * may represent text that is content or text that is a comment.
36 *
37 */
38 public interface Text extends Node, org.w3c.dom.Text {
39
40 /**
41 * Retrieves whether this <code>Text</code> object represents a comment.
42 *
43 * @return <code>true</code> if this <code>Text</code> object is a
44 * comment; <code>false</code> otherwise
45 */
46 public boolean isComment();
47 }
|