public void getAddedDescription(ChangeText txt) { htmlLayoutChange = new HtmlLayoutChange(); htmlLayoutChange.setEndingTag(node.getEndTag()); htmlLayoutChange.setOpeningTag(node.getOpeningTag()); htmlLayoutChange.setType(Type.TAG_ADDED); if (sem == TagChangeSematic.MOVED) { txt.addText(getMovedTo() + " " + getArticle().toLowerCase() + " "); txt.addHtml("<b>"); txt.addText(getDescription().toLowerCase()); txt.addHtml("</b>"); } else if (sem == TagChangeSematic.STYLE) { txt.addHtml("<b>"); txt.addText(getDescription()); txt.addHtml("</b>"); txt.addText(" " + getStyleAdded().toLowerCase()); } else { txt.addHtml("<b>"); txt.addText(getDescription()); txt.addHtml("</b>"); txt.addText(" " + getAdded().toLowerCase()); } addAttributes(txt, node.getAttributes()); txt.addText("."); }
public String getDescription() { return getString("diff-" + node.getQName()); }
protected String getArticle() { return getString("diff-" + node.getQName() + "-article"); }