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;
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;
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(); i<j; i++) {
+ outstr.println("Data for App Instance URN: '"+inst[i].getUrn());
+ appDataEntryReport(inst[i],archive,cascade,outstr);
+ }
+ }
if (appD.getUserCount()>0) {
User users[] = appD.getUser();
for (int i=0,j=users.length; i<j; i++) {
outstr.print("There are "+document.getApplicationDataCount()+" ApplicationData references.\n");
ApplicationData appd[] = document.getApplicationData();
for (int i=0,j=appd.length; i<j; i++) {
- outstr.print("Application "+i+": '"+appd[i].getName()+"'\nVersion '"+appd[i].getVersion()+"'\nURN: '"+appd[i].getUrn()+"'\n");
+ outstr.print("Application "+i+": '"+appd[i].getName()+"'\nVersion '"+appd[i].getVersion()+"'\n");
outstr.print("AppData is :");
appDataReport(appd[i], archive, cascade, outstr);
}
if (cascade)
reportProvenance(al[i].getProvenance(), outstr);
outstr.println("Involves "+al[i].getAlignmentSequenceCount()+" sequences, has "
- +al[i].getAlignmentAnnotationsCount()+" annotations and "+al[i].getTreeCount()+" trees.");
+ +al[i].getAlignmentAnnotationCount()+" annotations and "+al[i].getTreeCount()+" trees.");
if (cascade) {
for (int t=0; t<al[i].getTreeCount(); t++)
treeReport(al[i].getTree(t), true, outstr);