vorbaId generator constructs valid ID strings (NCNames)
[vamsas.git] / src / uk / ac / vamsas / client / ClientHandle.java
index a168c4d..b566c8d 100644 (file)
@@ -112,4 +112,11 @@ public class ClientHandle implements Serializable {
         && (this.version == null || this.version.equals(that.version)) 
         && (this.clientUrn == null || this.clientUrn.equals(that.clientUrn)));
   }
+
+  public String getClientNCname() {
+    
+    String ncname = clientName.replace(':', '_');
+    ncname = ncname.replace('@', '.');
+    return ncname;
+  }
 }