append bug fix.
This commit is contained in:
parent
5fe91bd7dc
commit
d1d23079b8
3 changed files with 28 additions and 9 deletions
|
@ -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 ());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -85,6 +85,15 @@ public class IdData implements Serializable, IdDataCore
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
public void appendContent (String text)
|
||||
{
|
||||
this.content += text;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -72,7 +72,6 @@ class Test
|
|||
IdData tag;
|
||||
|
||||
|
||||
|
||||
String htmlSource;
|
||||
StringBuffer html;
|
||||
StringBuffer errorMessage;
|
||||
|
|
Loading…
Reference in a new issue