html.append("<tr>");
html.append("<td>ARTICLEID</td>");
html.append("<td>Signature</td>");
html.append("<td>Vocabulary</td>");
html.append("</tr>");
Article article = ArticleFactory.getInstance().getArticle(articleID);
StringBuilder stringBuilder;
if (article.hasNotations()) {
html.append("<tr>");
html.append("<td>");
html.append("<font face=\"monospace\"><b>");
html.append(article.getAid());
html.append("</b></font");
html.append("</td>");
stringBuilder = new StringBuilder();
for (ArticleID articleID : article.getNotations().getSignature().getArticleIDList()){
if (stringBuilder.length()>0) stringBuilder.append(", ");
stringBuilder.append(articleID.getName());
}
html.append("<td>" + stringBuilder.toString() + "</td>");
stringBuilder = new StringBuilder();
for (Vocabulary vocabulary : article.getNotations().getVocabularies().getVocabularyList()){
if (stringBuilder.length()>0) stringBuilder.append(", ");
stringBuilder.append(vocabulary.getArticleID().getName());
}
html.append("<td>" + stringBuilder.toString() + "</td>");
html.append("</tr>");
}
html.append("</table>");
LinkedList<Pattern> patternList = article.getNotations().getPatternList();
progressBar.setMaximum(patternList.size()+1);
progressBar.setValue(0);
progressBar.setIndeterminate(false);
html.append("<h2>List of patterns</h2>");
html.append("<table width=100% border=1>");
html.append("<tr>");
html.append("<td>UniqueIdentifier</td>");
html.append("<td>Kind</td>");
html.append("<td>Nr</td>");
html.append("<td>Relnr</td>");
html.append("<td>Redefnr</td>");
html.append("<td>Formatnr</td>");
html.append("<td>Constrkind</td>");
html.append("<td>Constrnr</td>");
html.append("<td>Antonymic</td>");
html.append("<td>Format</td>");
html.append("<td>ArgTypes</td>");
html.append("<td>Visible</td>");
html.append("<td>Expansion</td>");
html.append("</tr>");
NotationsSignature notationsSignature = article.getNotationsSignature();
int i = 0;
for (Pattern pattern : patternList ){
progressBar.setValue(i++);
progressBar.repaint();
html.append("<tr>");
html.append("<td><b>");
try {
html.append(UniqueIdentifier.getInstance(notationsSignature, article.getAid(), pattern.getKind(), pattern.getNr()).toString());
} catch (UniqueIdentifierException e) {}
html.append("</b></td>");
html.append("<td>");
html.append(pattern.getKind().toString());
html.append("</td>");
html.append("<td>");
html.append(pattern.getNr().toString());
html.append("</td>");
html.append("<td>");
if (pattern.getRelnr() != null)
html.append(pattern.getRelnr().toString());
html.append("</td>");
html.append("<td>");
if (pattern.getRedefnr() != null)
html.append(pattern.getRedefnr().toString());
html.append("</td>");
html.append("<td>");
if (pattern.getFormatnr() != null)
html.append(pattern.getFormatnr().toString());
html.append("</td>");
html.append("<td>");
if (pattern.getConstrkind() != null)
html.append(pattern.getConstrkind().toString());
html.append("</td>");
html.append("<td>");
if (pattern.getConstrnr() != null)
html.append(pattern.getConstrnr().toString());
html.append("</td>");
html.append("<td>");
if (pattern.getAntonymic() != null)
html.append(Html.changeChars(pattern.getAntonymic().toString()));
html.append("</td>");
html.append("<td>");
if (pattern.getFormat() != null)
html.append(Html.changeChars(pattern.getFormat().getXMLElementList().toString()));
html.append("</td>");
html.append("<td>");
if (pattern.getArgTypes() != null)
html.append(Html.changeChars(pattern.getArgTypes().getXMLElementList().toString()));
html.append("</td>");
html.append("<td>");
if (pattern.getVisible() != null)
html.append(Html.changeChars(pattern.getVisible().getXMLElementList().toString()));
html.append("</td>");
html.append("<td>");
if (pattern.getExpansion() != null)
html.append(Html.changeChars(pattern.getExpansion().getXMLElementList().toString()));
html.append("</td>");
html.append("</tr>");
}
html.append("</table>");
html.append("<h2>List of patterns dli format</h2>");
html.append("<table width=100% border=1>");
html.append("<tr>");
html.append("<td>UniqueIdentifier</td>");
html.append("<td>UniqueId</td>");
html.append("<td>Dli</td>");
html.append("</tr>");
i = 0;
for (Pattern pattern : patternList ){
progressBar.setValue(i++);
progressBar.repaint();
html.append("<tr>");
try {
html.append("<td><b>");
html.append(UniqueIdentifier.getInstance(notationsSignature, article.getAid(), pattern.getKind(), pattern.getNr()).toString());
html.append("</b></td>");
html.append("<td>");
html.append(UniqueIdentifier.getInstance(notationsSignature, article.getAid(), pattern.getKind(), pattern.getNr()).id);
html.append("</td>");
} catch (UniqueIdentifierException e) {}
html.append("<td>");
try {
html.append(Html.changeChars(ItemFactory.getItem(notationsSignature, pattern).toString()));