*/
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())))
*/
public static String uniqueAppDataReference(VamsasDocument dest,String base) {
String urn = new String(base);
+
for (int i=0, j=dest.getApplicationDataCount(); i<j; i++) {
ApplicationData o = dest.getApplicationData()[i];
// ensure new urn is really unique
int v = 1;
- while (o.getUrn().equals(urn)) {
+ // TODO: while (o.getUrn().equals(urn)) {
urn = base+"/"+v++;
- }
+ //}
}
return urn;
}