From d5ba16e54c57c57b00cef58a92485844326ebbd6 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 22 May 2006 16:27:33 +0000 Subject: [PATCH] fixed loss of plural alignmentannotation in new schema version git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@225 be28352e-c001-0410-b1a7-c7978e42abec --- src/org/vamsas/test/simpleclient/ArchiveReports.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/org/vamsas/test/simpleclient/ArchiveReports.java b/src/org/vamsas/test/simpleclient/ArchiveReports.java index 4d7ac5b..771b620 100644 --- a/src/org/vamsas/test/simpleclient/ArchiveReports.java +++ b/src/org/vamsas/test/simpleclient/ArchiveReports.java @@ -4,6 +4,7 @@ import java.io.InputStream; import java.io.PrintStream; import java.io.PrintWriter; +import org.vamsas.client.ClientDocument; import org.vamsas.client.Vobject; import org.vamsas.client.simpleclient.VamsasArchiveReader; import org.vamsas.objects.core.Alignment; @@ -11,6 +12,7 @@ import org.vamsas.objects.core.AppData; import org.vamsas.objects.core.ApplicationData; import org.vamsas.objects.core.DataSet; import org.vamsas.objects.core.Entry; +import org.vamsas.objects.core.Instance; import org.vamsas.objects.core.Provenance; import org.vamsas.objects.core.Tree; import org.vamsas.objects.core.User; @@ -77,6 +79,13 @@ public class ArchiveReports { if (appD!=null) { // Report on root appData appDataEntryReport(appD, archive, cascade, outstr); + if (appD.getInstanceCount()>0) { + Instance inst[] = appD.getInstance(); + for (int i=0,j=inst.hashCode(); i0) { User users[] = appD.getUser(); for (int i=0,j=users.length; i