MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - MetaEdit+ and UUID
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MetaEdit+ and UUID

 Post Reply Post Reply
Author
Message
janne View Drop Down
MetaCase
MetaCase
Avatar

Joined: 25.Mar.2008
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote janne Quote  Post ReplyReply Direct Link To This Post Topic: MetaEdit+ and UUID
    Posted: 24.Oct.2014 at 13:14
An earlier topic (714) discussed how to make UUIDs in MetaEdit+ with generators.

MetaEdit+ 5.1 adds a new way to handle UUIDs: rather than generating them you can define them directly in your metamodel, and in this way make them part of your language definition. This is done by creating a string property type with widget UUID Base64.

 

Such a UUID property can be added to any language element. For example, if such a property is added to the 'Entity' object type as shown below then all entities will get a unique UUID – including already existing entity instances.

By prefixing the local name in Object Tool with '_', the property becomes read-only as shown below in the picture, ensuring the value remains permanent. If you only need the UUID for generator purposes and would like to hide if from modelers, you can use a double underscore prefix ('__Unique ID'). These hidden properties do not appear in the property dialog or property sheet, but can be read in generators and via the API, and are included in exports.

 

 



Edited by stevek - 24.Oct.2014 at 13:53
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.023 seconds.