Package com.nomagic.magicdraw.uml
Class UUIDRegistry
java.lang.Object
com.nomagic.magicdraw.uml.UUIDRegistry
Creates and stores elements UUID.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get UUID of the given element.static boolean
hasUUIDInProject
(Project project, com.nomagic.ci.persistence.IAttachedProject attachedProject) Checks if provided project has at least one element read with uuid.static void
Assign new UUID.
-
Constructor Details
-
UUIDRegistry
public UUIDRegistry()
-
-
Method Details
-
getUUID
Get UUID of the given element. Generates UUID if element has no assigned UUID.- Parameters:
element
- element to get UUID for.- Returns:
- assigned or generated UUID.
-
setUUID
Assign new UUID.- Parameters:
element
- element assign UUID to.uuid
- new uuid for element.
-
hasUUIDInProject
public static boolean hasUUIDInProject(Project project, @CheckForNull com.nomagic.ci.persistence.IAttachedProject attachedProject) Checks if provided project has at least one element read with uuid.- Parameters:
project
- MD projectattachedProject
- attached project.- Returns:
- true if at least one UUID is registered in the project.
-