Book a Demo

Author Topic: Where is the EA.Attribute property setting?  (Read 7088 times)

Rogier van Stapele

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Where is the EA.Attribute property setting?
« on: August 02, 2016, 10:56:37 pm »
Where can I find the EA.Attribute "property" setting?

In the attribute's "Modify property implementation" dialog an attribute can be set as property and creating 2 methods at the same time. After this i can't find any change in the attribute. Where is it stored?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where is the EA.Attribute property setting?
« Reply #1 on: August 02, 2016, 11:58:56 pm »
the only thing I could find is the GenOption.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Where is the EA.Attribute property setting?
« Reply #2 on: August 03, 2016, 12:07:10 am »
They are stored in t_xref once you set a value. E.g. for an Action the kind property results in an entry

name=CustomProperties
type=element property
description=@PROP=@NAME=kind@ENDNAME;@TYPE=ActionKind@ENDTYPE;@VALU=AcceptCall@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP

q.

Rogier van Stapele

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Where is the EA.Attribute property setting?
« Reply #3 on: August 03, 2016, 12:47:45 am »
Thanks qwerty,

I believe you use direct sql access on t_xref.
Do you know how to access this field through the automation COM interface?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Where is the EA.Attribute property setting?
« Reply #4 on: August 03, 2016, 01:09:43 am »
IIRC it's Element.CustomProperties and (also IIRC) I had issues to use them from the API (I'm anyway using the DB more often directly in such cases). You might give it a first try though before tinkering with t_xref.

q.

Rogier van Stapele

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Where is the EA.Attribute property setting?
« Reply #5 on: August 03, 2016, 09:59:41 pm »
I tried it but it is not in the custom properties.

Any suggestions? As far as I can see the class "property" storage is totally undocumented. Strange though because properties, setters and getters are an important part of OO design.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Where is the EA.Attribute property setting?
« Reply #6 on: August 04, 2016, 08:17:08 am »
Ah. You mean <<property>> attributes? The are just stereotyped attributes. Thought you were talking about the Advanced/Properties.

q.