package.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3 <HTML> 4 <HEAD> 5 <!-- 6 HTMLParser Library $Name: v1_6_20060319 $ - A java-based parser for HTML 7 http://sourceforge.org/projects/htmlparser 8 Copyright (C) 2004 Derrick Oswald 9 10 Revision Control Information 11 12 $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/nodes/package.html,v $ 13 $Author: derrickoswald $ 14 $Date: 2005/04/10 23:20:44 $ 15 $Revision: 1.2 $ 16 17 This library is free software; you can redistribute it and/or 18 modify it under the terms of the GNU Lesser General Public 19 License as published by the Free Software Foundation; either 20 version 2.1 of the License, or (at your option) any later version. 21 22 This library is distributed in the hope that it will be useful, 23 but WITHOUT ANY WARRANTY; without even the implied warranty of 24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25 Lesser General Public License for more details. 26 27 You should have received a copy of the GNU Lesser General Public 28 License along with this library; if not, write to the Free Software 29 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 30 --> 31 <TITLE>Nodes Package</TITLE> 32 </HEAD> 33 <BODY> 34 The nodes package has the concrete node implementations. 35 <p> 36 The classes in this package all implement the {@link org.htmlparser.Node Node} 37 interface. They individually implement the more specific interfaces for text, 38 remarks and tags. The three node types are mapped as follows: 39 <table border="1" cellpadding="3" cellspacing="0"> 40 <thead CLASS="TableHeadingColor"> 41 <tr> 42 <td>Interface</td><td>Concrete Implementation</td> 43 </tr> 44 </thead> 45 <tr> 46 <td>{@link org.htmlparser.Text Text}</td><td>{@link org.htmlparser.nodes.TextNode TextNode}</td> 47 </tr> 48 <tr> 49 <td>{@link org.htmlparser.Remark Remark}</td><td>{@link org.htmlparser.nodes.RemarkNode RemarkNode}</td> 50 </tr> 51 <tr> 52 <td>{@link org.htmlparser.Tag Tag}</td><td>{@link org.htmlparser.nodes.TagNode TagNode}</td> 53 </tr> 54 </table> 55 These classes are derived from the 56 {@link org.htmlparser.nodes.AbstractNode AbstractNode} class, which provides 57 basic functionality common to all nodes, such as maintaining start and end positions 58 and child and parent references. Only the {@link org.htmlparser.nodes.TagNode TagNode} objects 59 contain a list of {@link org.htmlparser.Attribute Attribute} objects. 60 <p>The {@link org.htmlparser.lexer.Lexer Lexer} parses an HTML stream into a 61 contiguous stream of these nodes.</p> 62 <p>The {@link org.htmlparser.Parser Parser} returns either these nodes or specific 63 {@link org.htmlparser.tags Tag} objects (which are subclasses of TagNode) 64 for tags with names that have been registered via 65 {@link org.htmlparser.PrototypicalNodeFactory#registerTag registerTag()}. 66 <p> 67 </BODY> 68 </HTML>