[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/utilTests NodeListTest.java,1.25,1.26
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-05-24 00:38:29
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/utilTests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31556/tests/utilTests Modified Files: NodeListTest.java Log Message: Part two of a multiphase refactoring. Part one added the Tag interface. This submission eliminates some of the duplication between the lexer.nodes package and the htmlparser package by removing the tag specific signatures, visitTitleTag, visitLinkTag and visitImageTag, from the NodeVisitor class. This allows the lexer to return htmlparser level classes for StringNode and RemarkNode. The TagNode is still present in the lexer.nodes package, but will move next. This means that classes derived from NodeVisitor *will not* work using the above signatures; instead a check for tag class (or name) should be performed in visitTag. A document will be added to the visitors package with comprehensive porting instructions. Index: NodeListTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/utilTests/NodeListTest.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** NodeListTest.java 2 Jan 2004 16:24:57 -0000 1.25 --- NodeListTest.java 24 May 2004 00:38:19 -0000 1.26 *************** *** 32,35 **** --- 32,36 ---- import org.htmlparser.util.NodeList; import org.htmlparser.util.SimpleNodeIterator; + import org.htmlparser.visitors.NodeVisitor; public class NodeListTest extends ParserTestCase { *************** *** 121,125 **** private Node createHTMLNodeObject() { Node node = new AbstractNode(null,10,20) { ! public void accept(Object visitor) { } --- 122,126 ---- private Node createHTMLNodeObject() { Node node = new AbstractNode(null,10,20) { ! public void accept(NodeVisitor visitor) { } |