1 // HTMLParser Library $Name: v1_5_20050313 $ - A java-based parser for HTML 2 // http://sourceforge.org/projects/htmlparser 3 // Copyright (C) 2004 Derrick Oswald 4 // 5 // Revision Control Information 6 // 7 // $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/Text.java,v $ 8 // $Author: derrickoswald $ 9 // $Date: 2004/05/24 16:18:12 $ 10 // $Revision: 1.1 $ 11 // 12 // This library is free software; you can redistribute it and/or 13 // modify it under the terms of the GNU Lesser General Public 14 // License as published by the Free Software Foundation; either 15 // version 2.1 of the License, or (at your option) any later version. 16 // 17 // This library is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 // Lesser General Public License for more details. 21 // 22 // You should have received a copy of the GNU Lesser General Public 23 // License along with this library; if not, write to the Free Software 24 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 // 26 27 package org.htmlparser; 28 29 import org.htmlparser.Node; 30 31 /** 32 * This interface represents a piece of the content of the HTML document. 33 */ 34 public interface Text 35 extends 36 Node 37 { 38 /** 39 * Accesses the textual contents of the node. 40 * Returns the text of the node. 41 */ 42 public String getText (); 43 44 /** 45 * Sets the contents of the node. 46 * @param text The new text for the node. 47 */ 48 public void setText (String text); 49 50 // 51 // Node interface 52 // 53 54 // public void accept (org.htmlparser.visitors.NodeVisitor visitor) 55 // { 56 // } 57 // 58 // public void collectInto (org.htmlparser.util.NodeList collectionList, NodeFilter filter) 59 // { 60 // } 61 // 62 // public void doSemanticAction () throws org.htmlparser.util.ParserException 63 // { 64 // } 65 // 66 // public int elementBegin () 67 // { 68 // } 69 // 70 // public int elementEnd () 71 // { 72 // } 73 // 74 // public org.htmlparser.util.NodeList getChildren () 75 // { 76 // } 77 // 78 // public int getEndPosition () 79 // { 80 // } 81 // 82 // public Node getParent () 83 // { 84 // } 85 // 86 // public int getStartPosition () 87 // { 88 // } 89 // 90 // public String getText () 91 // { 92 // } 93 // 94 // public void setChildren (org.htmlparser.util.NodeList children) 95 // { 96 // } 97 // 98 // public void setEndPosition (int position) 99 // { 100 // } 101 // 102 // public void setParent (Node node) 103 // { 104 // } 105 // 106 // public void setStartPosition (int position) 107 // { 108 // } 109 // 110 // public void setText (String text) 111 // { 112 // } 113 // 114 // public String toHtml () 115 // { 116 // } 117 // 118 // public String toPlainTextString () 119 // { 120 // } 121 } 122