diff --git a/src/xid/Data.java b/src/xid/Data.java index 98a30ce..669e412 100644 --- a/src/xid/Data.java +++ b/src/xid/Data.java @@ -308,6 +308,17 @@ public class Data } + /** + * + */ + public void appendAttribute (String id, int line, String column, String label, String value) + { + IdData tag = this.getIdData (id, line, column); + + tag.getAttributes ().appendAttribute (label, value); + } + + /** * */ @@ -331,39 +342,39 @@ public class Data /** * */ - public void appendContent (String id, int line, String label, String value) + public void appendContent (String id, int line, String value) { IdData tag = this.getIdData (id, line); - tag.getAttributes ().appendAttribute (label, value); + tag.appendContent (value); } /** * */ - public void appendContent (String id, int line, String label, int value) + public void appendContent (String id, int line, int value) { - appendContent (id, line, label, (new Integer (value)).toString ()); + appendContent (id, line, (new Integer (value)).toString ()); } /** * */ - public void appendContent (String id, int line, String column, String label, String value) + public void appendContent (String id, int line, String column, String value) { IdData tag = this.getIdData (id, line, column); - tag.getAttributes ().appendAttribute (label, value); + tag.appendContent (value); } /** * */ - public void appendContent (String id, int line, String column, String label, int value) + public void appendContent (String id, int line, String column, int value) { - appendContent (id, line, column, label, (new Integer (value)).toString ()); + appendContent (id, line, column, (new Integer (value)).toString ()); } } diff --git a/src/xid/IdData.java b/src/xid/IdData.java index a350dbd..60c2eb0 100644 --- a/src/xid/IdData.java +++ b/src/xid/IdData.java @@ -85,6 +85,15 @@ public class IdData implements Serializable, IdDataCore } + /* + * + */ + public void appendContent (String text) + { + this.content += text; + } + + /* * */ diff --git a/test/xid/test/Test.java b/test/xid/test/Test.java index ceed3c6..8bc4307 100644 --- a/test/xid/test/Test.java +++ b/test/xid/test/Test.java @@ -72,7 +72,6 @@ class Test IdData tag; - String htmlSource; StringBuffer html; StringBuffer errorMessage;