object registration functions return an Id for the object.
[vamsas.git] / src / org / vamsas / client / VorbaId.java
1 /*
2  * Created on 12-Sep-2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */
7 package org.vamsas.client;
8
9 /**
10  * The unique reference id for a Vamsas document object,
11  * used by applications to refer to the vamsas object
12  * within their own data space in the vamsas document.
13  * @author jimp
14  */
15 public class VorbaId {
16   protected String id;
17   public static VorbaId newId(VorbaIdFactory vorbaObject) {
18     // Make unique id from appSpace info in vorbaObject
19     synchronized (vorbaObject) {
20       return vorbaObject.makeVorbaId();
21     }
22   }
23   /**
24    * @return Returns the id.
25    */
26   public String getId() {
27     return id;
28   }
29 }