/ org.htmlparser / src / org / htmlparser / Text.java
Text.java
  1  // HTMLParser Library $Name: v1_6_20060319 $ - 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: 2005/11/15 02:09:10 $
 10  // $Revision: 1.4 $
 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  /**
 30   * This interface represents a piece of the content of the HTML document.
 31   */
 32  public interface Text
 33      extends
 34          Node
 35  {
 36      /**
 37       * Accesses the textual contents of the node.
 38       * @return The text of the node.
 39       * @see #setText
 40       */
 41      String getText ();
 42  
 43      /**
 44       * Sets the contents of the node.
 45       * @param text The new text for the node.
 46       * @see #getText
 47       */
 48      void setText (String text);
 49  
 50      //
 51      // Node interface
 52      //
 53  
 54  //    public void accept (NodeVisitor visitor)
 55  //    {
 56  //    }
 57  //
 58  //    public void collectInto (.NodeList collectionList, NodeFilter filter)
 59  //    {
 60  //    }
 61  //
 62  //    public void doSemanticAction () throws ParserException
 63  //    {
 64  //    }
 65  //
 66  //    public NodeList getChildren ()
 67  //    {
 68  //    }
 69  //
 70  //    public int getEndPosition ()
 71  //    {
 72  //    }
 73  //
 74  //    public Node getParent ()
 75  //    {
 76  //    }
 77  //
 78  //    public int getStartPosition ()
 79  //    {
 80  //    }
 81  //
 82  //    public String getText ()
 83  //    {
 84  //    }
 85  //
 86  //    public void setChildren (NodeList children)
 87  //    {
 88  //    }
 89  //
 90  //    public void setEndPosition (int position)
 91  //    {
 92  //    }
 93  //
 94  //    public void setParent (Node node)
 95  //    {
 96  //    }
 97  //
 98  //    public void setStartPosition (int position)
 99  //    {
100  //    }
101  //
102  //    public void setText (String text)
103  //    {
104  //    }
105  //
106  //    public String toHtml ()
107  //    {
108  //    }
109  //
110  //    public String toPlainTextString ()
111  //    {
112  //    }
113  }