Commons

org.topcased.model.management
Class UuidHelper

java.lang.Object
  extended by org.topcased.model.management.UuidHelper

public class UuidHelper
extends java.lang.Object

This Helper class is used to handle the uuid of a model object Created 27 May 2005


Constructor Summary
UuidHelper()
          The Constructor
 
Method Summary
 java.lang.String getUUID(EModelElement elt)
          Returns the UUID of a EModelElement
 void initUUID(EModelElement elt)
          Assign an uuid to the EModelElement.
 void initUUID(EModelElement elt, java.lang.String uuid)
          Set the uuid to the EModelElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UuidHelper

public UuidHelper()
The Constructor

Method Detail

initUUID

public void initUUID(EModelElement elt)
Assign an uuid to the EModelElement.

Parameters:
elt - the EModelElement

initUUID

public void initUUID(EModelElement elt,
                     java.lang.String uuid)
Set the uuid to the EModelElement. The uuid must be unique.

Parameters:
elt - the EModelElement
uuid - the String of the uuid

getUUID

public java.lang.String getUUID(EModelElement elt)
Returns the UUID of a EModelElement

Parameters:
elt - the EModelElement
Returns:
the uuid or null if no uuid is present

Commons

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.