[Htmlparser-cvs] htmlparser/src/fit Attributes.java,1.2,1.3
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-09-08 02:27:17
|
Update of /cvsroot/htmlparser/htmlparser/src/fit In directory sc8-pr-cvs1:/tmp/cvs-serv7654/src/fit Modified Files: Attributes.java Log Message: Update version headers to 1.4-20030907 and update changelog. Index: Attributes.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/fit/Attributes.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Attributes.java 24 Aug 2003 18:28:02 -0000 1.2 --- Attributes.java 8 Sep 2003 02:26:28 -0000 1.3 *************** *** 7,37 **** public class Attributes extends ColumnFixture { ! private AttributeParser attParser = new AttributeParser(); ! public String key; ! private Map table; ! public String tagContents; ! public String value() { ! return (String) table.get(key); ! } ! public String name() { ! return (String) table.get(Tag.TAGNAME); ! } ! public int attributeCount() { ! return table.size() - 1; ! } ! public void execute() throws Exception { ! table = attParser.parseAttributes(tagContents); ! } ! public void wrong (Parse cell, String actual) { ! actual = escape(actual); ! wrong(cell); ! cell.addToBody(label("expected") + "<hr>" + actual.replaceAll("\n","<BR>") + label("actual")); ! } } --- 7,37 ---- public class Attributes extends ColumnFixture { ! private AttributeParser attParser = new AttributeParser(); ! public String key; ! private Map table; ! public String tagContents; ! public String value() { ! return (String) table.get(key); ! } ! public String name() { ! return (String) table.get(Tag.TAGNAME); ! } ! public int attributeCount() { ! return table.size() - 1; ! } ! public void execute() throws Exception { ! table = attParser.parseAttributes(tagContents); ! } ! public void wrong (Parse cell, String actual) { ! actual = escape(actual); ! wrong(cell); ! cell.addToBody(label("expected") + "<hr>" + actual.replaceAll("\n","<BR>") + label("actual")); ! } } |