SCOUT-116 in addition to that the uddi keys contains multiple ':' characters in them, it is a better choice to use the '|' character as a separation character
git-svn-id: https://svn.apache.org/repos/asf/juddi/scout/trunk@1140771 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/ws/scout/registry/infomodel/AssociationImpl.java b/src/main/java/org/apache/ws/scout/registry/infomodel/AssociationImpl.java
index 0ab4c16..10e1e49 100644
--- a/src/main/java/org/apache/ws/scout/registry/infomodel/AssociationImpl.java
+++ b/src/main/java/org/apache/ws/scout/registry/infomodel/AssociationImpl.java
@@ -111,16 +111,16 @@
try
{
id = source.getKey().getId();
- id += ":" + target.getKey().getId();
+ id += "|" + target.getKey().getId();
Key k = null;
if(type != null ) k = type.getKey();
- if(k == null || k.getId() == "" ) id +=":NULL";
+ if(k == null || k.getId() == "" ) id +="|NULL";
else
- id+=":"+k.getId();
- id += ":" + "Concept"; //UDDI: KeyedReference->Key Name
+ id+="|"+k.getId();
+ id += "|" + "Concept"; //UDDI: KeyedReference->Key Name
//String val = "NULL"; KS unused
- if(type!= null) id += ":" + type.getValue();
- else id +=":NULL";
+ if(type!= null) id += "|" + type.getValue();
+ else id +="|NULL";
}
catch (JAXRException e)