Book a Demo

Author Topic: v15.2 – How long can the XML Attribute list in the MDG for a stereotype be?  (Read 3696 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
We are making extensive use of the Generalization relationship between stereotypes in our model-based MDG definition.  Apart from previously reported defects (which, hopefully, are being rectified by the next release), it works extremely well!  Because of one of the existing defects, we are forced to have more Generalization relationships than would normally be necessary (multi-level inheritance doesn't always work and so we've had to make a work-around).  This yields quite long baseStereotypes attribute lengths[1]. Now this problem may occur even after the inheritance defects are rectified - merely by virtue of the specific metamodel definition.

So before what we do falls over in a "screaming heap", does anybody know how long the baseStereotypes attribute value can be?  I realise there may be two components to this:
1) How long a generic XML attribute string can be?
2) How long the baseStereotype attribute can be as far as EA is concerned?

TIA,
Paolo

[1] For example, one of our metatypes (concrete stereotype) currently inherits from 15 components.  While on the high side, this is not uncommon and we expect that once the defects are rectified, there will still be about 10 such components per metatype.
Code: [Select]
baseStereotypes="ClssVrtx¯R Cmpsd¯I CnFlw¯I CnSrv¯I DBCmpnnt¯I ExtnddNmng¯I ExtnddShpng¯I Flwbl¯I LfcyclStts¯S NmspcdNmng¯I NnSpcdNmng¯I Srvbl¯I StndrdClss¯D SttsSW¯D WrkPckgVw¯I"
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
1) How long a generic XML attribute string can be?
2) How long the baseStereotype attribute can be as far as EA is concerned?

1. XML doesn't impose a limit. You are limited by the language used to read the XML.
2. The value isn't serialized to a database field, so I believe the answer is: available memory or MAX_INT-1, whichever is smaller.
The Sparx Team
[email protected]

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
1) How long a generic XML attribute string can be?
2) How long the baseStereotype attribute can be as far as EA is concerned?

1. XML doesn't impose a limit. You are limited by the language used to read the XML.
2. The value isn't serialized to a database field, so I believe the answer is: available memory or MAX_INT-1, whichever is smaller.
Thanks, Neil,

I can rest easy...  ;D

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