Author Topic: Stereotype Properties _AttPri, _AttPro, etc  (Read 571 times)

Jayson

  • EA User
  • **
  • Posts: 352
  • Karma: +1/-0
    • View Profile
Stereotype Properties _AttPri, _AttPro, etc
« on: May 07, 2022, 08:20:23 am »
Hey there

I am attempting to create a stereotype (pls see XML below) that sets the visibility for Public, Private, Package and Protected Attributes & Operations.
The other check boxes seem to get checked, but not those mentioned above.

Any help, as always, is greatly appreciated.

Cheers

Jays :-)



<Stereotype name="Stereotype 4" cx="0" cy="0" instanceMode="Instance" bordercolor="-1" bgcolor="-1" fontcolor="-1" borderwidth="-1">
<Image/>
<Icon/>
<AppliesTo>
<Apply type="Class">
<Property name="_AttInh" value="1"/>
<Property name="_AttPkg" value="1"/>
<Property name="_AttPri" value="1"/>
<Property name="_AttPro" value="1"/>
<Property name="_AttPub" value="1"/>
<Property name="_OpInh" value="1"/>
<Property name="_OpPkg" value="1"/>
<Property name="_OpPri" value="1"/>
<Property name="_OpPro" value="1"/>
<Property name="_OpPub" value="1"/>
<Property name="_ConInh" value="1"/>
<Property name="_Constraint" value="1"/>
<Property name="_ResInh" value="1"/>
<Property name="_Responsibility" value="1"/>
<Property name="_Tag" value="1"/>
<Property name="_TagInh" value="1"/>
<Property name="isActive" value="True"/>
</Apply>
</AppliesTo>
<TaggedValues/>
<DiagramProperties/>
<metaconstraints/>
</Stereotype>

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8157
  • Karma: +231/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Stereotype Properties _AttPri, _AttPro, etc
« Reply #1 on: May 07, 2022, 09:52:46 am »
Hi Jays,
Is this the exported XML from the MDG generation or a handcrafted one?
If the latter, try generating from an MDG model to see what EA creates. What you've done looks OK, but occasionally, as we know, EA has surprises "up its sleeve".

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1191
  • Karma: +105/-10
  • Its the results that count
    • View Profile
Re: Stereotype Properties _AttPri, _AttPro, etc
« Reply #2 on: May 07, 2022, 04:09:22 pm »
Hi Jays,
Is this the exported XML from the MDG generation or a handcrafted one?
If the latter, try generating from an MDG model to see what EA creates. What you've done looks OK, but occasionally, as we know, EA has surprises "up its sleeve".

Paolo
I'm with Paolo, create the MDG  via generation.
Happy to help
:)

wivel

  • EA User
  • **
  • Posts: 129
  • Karma: +9/-1
  • Driven by Models
    • View Profile
Re: Stereotype Properties _AttPri, _AttPro, etc
« Reply #3 on: May 07, 2022, 09:43:49 pm »
Hi Jays,
Is this the exported XML from the MDG generation or a handcrafted one?
If the latter, try generating from an MDG model to see what EA creates. What you've done looks OK, but occasionally, as we know, EA has surprises "up its sleeve".

Paolo
I'm with Paolo, create the MDG  via generation.

+1 to that. I have messed things up for myself working directly in the XML files.

Henrik

Jayson

  • EA User
  • **
  • Posts: 352
  • Karma: +1/-0
    • View Profile
Re: Stereotype Properties _AttPri, _AttPro, etc
« Reply #4 on: May 08, 2022, 04:44:24 pm »
LOL! Guilty as charged.
I'm ironing out the last of the bugs with my generation tool.
Just can't figure out what my code is doing wrong ;-)

Jayson

  • EA User
  • **
  • Posts: 352
  • Karma: +1/-0
    • View Profile
Re: Stereotype Properties _AttPri, _AttPro, etc
« Reply #5 on: May 08, 2022, 06:01:56 pm »
AH, its amazing what a good rant will do for you.
About 10 minutes after I finished the last post I realised what I had done wrong.
The _AttPkg, etc attributes are inverse from the others (i.e. 1 = hide).

All working nicely, now onto the next bugs :-)

Thanks guys :-)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8157
  • Karma: +231/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Stereotype Properties _AttPri, _AttPro, etc
« Reply #6 on: May 08, 2022, 06:40:45 pm »
AH, its amazing what a good rant will do for you.
About 10 minutes after I finished the last post I realised what I had done wrong.
The _AttPkg, etc attributes are inverse from the others (i.e. 1 = hide).

All working nicely, now onto the next bugs :-)

Thanks guys :-)
Concistency, konsistency, consistensy! TMUffe - after Paolo
and...
Manage Complexity,
   .   .   Reduce Ambiguity,
   .   .   .   .   Eliminate Inconsistency!
TM


Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!