From 88cc24757f35ebfea5cd8ab8a5c49d05b835ede3 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 24 May 2006 13:30:25 +0000 Subject: [PATCH] changes propagated from Provenance.App entry. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@228 be28352e-c001-0410-b1a7-c7978e42abec --- src/org/vamsas/objects/utils/AppDataReference.java | 9 +++++---- src/org/vamsas/objects/utils/ProvenanceStuff.java | 9 +++++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/org/vamsas/objects/utils/AppDataReference.java b/src/org/vamsas/objects/utils/AppDataReference.java index 50dc96b..414c8da 100644 --- a/src/org/vamsas/objects/utils/AppDataReference.java +++ b/src/org/vamsas/objects/utils/AppDataReference.java @@ -98,8 +98,8 @@ public class AppDataReference { */ static public boolean equals(ApplicationData p, ClientHandle c) { if ( - ((c.getClientUrn()==null) || p.getUrn().equals(c.getClientUrn())) - && + //((c.getClientUrn()==null) || p.getUrn().equals(c.getClientUrn())) + //&& (p.getName().equals(c.getClientName())) && ((c.getVersion()==null) || (p.getVersion().equals(c.getVersion()))) @@ -146,13 +146,14 @@ public class AppDataReference { */ public static String uniqueAppDataReference(VamsasDocument dest,String base) { String urn = new String(base); + for (int i=0, j=dest.getApplicationDataCount(); i