Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF generics and Rational Rose
EMF generics and Rational Rose [message #431915] Wed, 29 July 2009 12:59 Go to next message
Maik Wurdel is currently offline Maik WurdelFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I just figured out that EMF offers generics since version 3.4 which is
pretty helpful. However, I can't find a way to specify those generics in
Rational Rose.

I'm aware of the custom ecore properties within Rational Rose. Still I
can't find a way to specify that a certain class has a generic parameter.

So my questions are:
Is there a real comprehensive tutorial or reference which stereotypes
and ecore properties are used of the rose importer? It is not the first
I'm posting a question regarding this topic, so I'd be glad to have a
reference.

Is there a way to specify generics using Rational Rose taken into
account by the rose importer?

Any help would be appreciated!

Thanks
Maik
Re: EMF generics and Rational Rose [message #431925 is a reply to message #431915] Wed, 29 July 2009 16:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080304040502020301060906
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Maik,

Comments below.


Maik Wurdel wrote:
> Hi,
>
> I just figured out that EMF offers generics since version 3.4 which is
> pretty helpful. However, I can't find a way to specify those generics
> in Rational Rose.
>
> I'm aware of the custom ecore properties within Rational Rose. Still I
> can't find a way to specify that a certain class has a generic parameter.
>
> So my questions are:
> Is there a real comprehensive tutorial or reference which stereotypes
> and ecore properties are used of the rose importer? It is not the
> first I'm posting a question regarding this topic, so I'd be glad to
> have a reference.
>
> Is there a way to specify generics using Rational Rose taken into
> account by the rose importer?
There is and I'm pretty sure I've attached a *.mdl file with examples of
all the things that can be specified in some previous newsgroup
posting. But I don't have Rose installed anymore (not being at IBM and
all) so I don't know if the attached file is the right one. Hopefully
it is and it helps.
>
> Any help would be appreciated!
>
> Thanks
> Maik

--------------080304040502020301060906
Content-Type: text/plain;
name="template.mdl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="template.mdl"


(object Petal
version 42
_written "Rose 4.5.8163.3"
charSet 0)

(object Design "Logical View"
is_unit TRUE
is_loaded TRUE
defaults (object defaults
rightMargin 0.250000
leftMargin 0.250000
topMargin 0.250000
bottomMargin 0.500000
pageOverlap 0.250000
clipIconLabels TRUE
autoResize TRUE
snapToGrid TRUE
gridX 16
gridY 16
defaultFont (object Font
size 10
face "Arial"
bold FALSE
italics FALSE
underline FALSE
strike FALSE
color 0
default_color TRUE)
showMessageNum 1
showClassOfObject TRUE
notation "Unified")
root_usecase_package (object Class_Category "Use Case View"
quid "4564386F0028"
exportControl "Public"
global TRUE
logical_models (list unit_reference_list)
logical_presentations (list unit_reference_list
(object UseCaseDiagram "Main"
quid "4564386F002F"
title "Main"
zoom 100
max_height 28350
max_width 21600
origin_x 0
origin_y 0
items (list diagram_item_list))))
root_category (object Class_Category "Logical View"
quid "4564386F0027"
exportControl "Public"
global TRUE
subsystem "Component View"
quidu "4564386F0029"
logical_models (list unit_reference_list
(object Class_Category "template"
attributes (list Attribute_Set
(object Attribute
tool "Ecore"
name "nsPrefix"
value "template")
(object Attribute
tool "Ecore"
name "nsURI"
value "http:///org/example/template")
(object Attribute
tool "Ecore"
name "basePackage"
value "org.example")
(object Attribute
tool "Ecore"
name "prefix"
value "Template"))
quid "45643875016F"
exportControl "Public"
logical_models (list unit_reference_list
(object Class "Container"
quid "45643C900365"
operations (list Operations
(object Operation "<T extends EJavaException> foo"
quid "45716A7E0169"
parameters (list Parameters
(object Parameter "t"
type "T"))
result "T"
exceptions "T"
concurrency "Sequential"
opExportControl "Public"
uid 0))
class_attributes (list class_attribute_list
(object ClassAttribute "E"
quid "45643C98008C"
stereotype "parameter"
exportControl "Public")
(object ClassAttribute "instanceClass"
quid "456846060196"
type "EJavaClass<E>"
exportControl "Public")
(object ClassAttribute "a"
quid "457174A701C6"
type "E"
exportControl "Public")
(object ClassAttribute "r"
quid "45717504037C"
stereotype "reference"
type "E"
exportControl "Public")))
(object Class "DerivedContainer"
quid "45643CAA005F"
superclasses (list inheritance_relationship_list
(object Inheritance_Relationship
quid "45643CBB03AD"
stereotype "<E>"
supplier "Logical View::template::Container"
quidu "45643C900365"))
class_attributes (list class_attribute_list
(object ClassAttribute "E"
quid "45643CB003E3"
stereotype "parameter"
exportControl "Public")))
(object Class "X"
quid "4564539901A2"
operations (list Operations
(object Operation "<E extends EJavaObject & Container<E>, F extends E> foo"
quid "4565B13D0355"
parameters (list Parameters
(object Parameter "e"
type "E")
(object Parameter "list"
type "EJavaList<? super F>")
(object Parameter "x"
type "String"))
result "E"
concurrency "Sequential"
opExportControl "Public"
uid 0)
(object Operation "foo"
quid "4565B9BD038A"
result "EJavaList<EJavaObject>"
concurrency "Sequential"
opExportControl "Public"
uid 0))
class_attributes (list class_attribute_list
(object ClassAttribute "c"
quid "456453AA00CA"
type "Container<EJavaObject>"
exportControl "Public")
(object ClassAttribute "list"
quid "4565899C01A0"
type "EJavaList<Container<EJavaNumber>>"
exportControl "Public")))
(object Class "EStringToStringMap"
quid "45757CDF003E"
stereotype "Interface"
class_attributes (list class_attribute_list
(object ClassAttribute "java.util.Map<java.lang.String, java.lang.String>"
quid "45757CF802CE"
stereotype "javaclass"
exportControl "Public")))
(object Class "ExtendedMap"
quid "45757D65034B"
superclasses (list inheritance_relationship_list
(object Inheritance_Relationship
quid "45757D720128"
supplier "Logical View::template::EStringToStringMap"
quidu "45757CDF003E"))
class_attributes (list class_attribute_list
(object ClassAttribute "d"
quid "45757D7D03D8"
type "ListOfDecimal"
exportControl "Public")
(object ClassAttribute "h"
quid "45757D870109"
type "ListOfHexadecimal"
exportControl "Public"))
abstract TRUE)
(object Class "EJavaList"
quid "456439040052"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "E"
quid "45643944007C"
stereotype "parameter"
exportControl "Public")
(object ClassAttribute "java.util.List"
quid "456439EC010A"
stereotype "javaclass"
exportControl "Public")))
(object Class "EEList"
quid "45643A04006F"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "E"
quid "45643A090134"
stereotype "parameter"
exportControl "Public")
(object ClassAttribute "org.eclipse.emf.common.util.EList"
quid "45643A130020"
stereotype "javaclass"
exportControl "Public")))
(object Class "EJavaObject"
quid "45643B57004E"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "java.lang.Object"
quid "45643B630073"
stereotype "javaclass"
exportControl "Public")))
(object Class "EJavaNumber"
quid "45643B74032B"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "java.lang.Number"
quid "45643B870328"
stereotype "javaclass"
exportControl "Public")))
(object Class "EJavaClass"
quid "456845B80138"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "T"
quid "456845C60399"
stereotype "parameter"
exportControl "Public")
(object ClassAttribute "java.lang.Class"
quid "4568466A006D"
stereotype "javaclass"
exportControl "Public")))
(object Class "EJavaException"
quid "45716AB60040"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "java.lang.Exception"
quid "45716ACC031E"
stereotype "javaclass"
exportControl "Public")))
(object Class "ListOfDecimal"
quid "457301AF0282"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "java.util.List<java.lang.Integer>"
quid "457312CD0011"
stereotype "javaclass"
exportControl "Public")))
(object Class "ListOfHexadecimal"
quid "4573024102B1"
stereotype "datatype"
class_attributes (list class_attribute_list
(object ClassAttribute "java.util.List<java.lang.Integer>"
quid "457312DA032E"
stereotype "javaclass"
exportControl "Public")))
(object Association "$UNNAMED$0"
quid "456589F10094"
roles (list role_list
(object Role "$UNNAMED$1"
quid "456589F201CC"
supplier "Logical View::template::X"
quidu "4564539901A2"
is_navigable TRUE
is_aggregate TRUE)
(object Role "derivedContainer<? extends EJavaNumber>"
quid "456589F201CD"
label "derivedContainer<? extends EJavaNumber>"
supplier "Logical View::template::DerivedContainer"
quidu "45643CAA005F"
client_cardinality (value cardinality "0..n")
is_navigable TRUE))))
logical_presentations (list unit_reference_list
(object ClassDiagram "Main"
quid "456438F6020B"
title "Main"
zoom 100
max_height 28350
max_width 21600
origin_x 0
origin_y 0
items (list diagram_item_list
(object ClassView "Class" "Logical View::template::EJavaList" @1
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (464, 224)
label (object ItemLabel
Parent_View @1
location (192, 140)
fill_color 13434879
nlines 1
max_width 544
justify 0
label "EJavaList")
stereotype (object ItemLabel
Parent_View @1
location (192, 90)
fill_color 13434879
anchor 10
nlines 1
max_width 544
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "456439040052"
compartment (object Compartment
Parent_View @1
location (192, 200)
icon_style "Icon"
fill_color 16777215
anchor 2
nlines 3
max_width 550)
width 562
height 292
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::EEList" @2
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (656, 592)
label (object ItemLabel
Parent_View @2
location (184, 536)
fill_color 13434879
nlines 1
max_width 944
justify 0
label "EEList")
stereotype (object ItemLabel
Parent_View @2
location (184, 486)
fill_color 13434879
anchor 10
nlines 1
max_width 944
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45643A04006F"
compartment (object Compartment
Parent_View @2
location (184, 596)
icon_style "Icon"
fill_color 16777215
anchor 2
nlines 3
max_width 953)
width 962
height 236
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::EJavaObject" @3
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (1600, 240)
label (object ItemLabel
Parent_View @3
location (1291, 181)
fill_color 13434879
nlines 1
max_width 618
justify 0
label "EJavaObject")
stereotype (object ItemLabel
Parent_View @3
location (1291, 131)
fill_color 13434879
anchor 10
nlines 1
max_width 618
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45643B57004E"
compartment (object Compartment
Parent_View @3
location (1291, 241)
icon_style "Icon"
fill_color 16777215
anchor 2
nlines 2
max_width 625)
width 636
height 242
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::EJavaNumber" @4
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (1616, 608)
label (object ItemLabel
Parent_View @4
location (1296, 549)
fill_color 13434879
nlines 1
max_width 640
justify 0
label "EJavaNumber")
stereotype (object ItemLabel
Parent_View @4
location (1296, 499)
fill_color 13434879
anchor 10
nlines 1
max_width 640
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45643B74032B"
compartment (object Compartment
Parent_View @4
location (1296, 609)
icon_style "Icon"
fill_color 16777215
anchor 2
nlines 2
max_width 646)
width 658
height 242
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::Container" @5
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
ShowOperationSignature TRUE
location (528, 1072)
label (object ItemLabel
Parent_View @5
location (126, 891)
fill_color 13434879
nlines 1
max_width 804
justify 0
label "Container")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45643C900365"
compartment (object Compartment
Parent_View @5
location (126, 951)
icon_style "Icon"
fill_color 16777215
anchor 2
nlines 6
max_width 800)
width 822
height 386
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::X" @6
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
ShowOperationSignature TRUE
location (2096, 1088)
label (object ItemLabel
Parent_View @6
location (1087, 932)
fill_color 13434879
nlines 1
max_width 2018
justify 0
label "X")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "4564539901A2"
compartment (object Compartment
Parent_View @6
location (1087, 992)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 5
max_width 2025)
width 2036
height 336
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::DerivedContainer" @7
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (336, 1488)
label (object ItemLabel
Parent_View @7
location (149, 1407)
fill_color 13434879
nlines 1
max_width 374
justify 0
label "DerivedContainer")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45643CAA005F"
compartment (object Compartment
Parent_View @7
location (149, 1467)
icon_style "Icon"
fill_color 16777215
anchor 2
nlines 2
max_width 381)
width 392
height 186
annotation 8
autoResize TRUE)
(object InheritView "" @8
stereotype (object SegLabel @9
Parent_View @8
location (581, 1354)
anchor 10
anchor_loc 1
nlines 1
max_width 450
justify 0
label "<<<E>>>"
pctDist 0.313253
height 134
orientation 1)
line_color 3342489
quidu "45643CBB03AD"
client @7
supplier @5
line_style 3
origin_attachment (447, 1395)
terminal_attachment (447, 1265))
(object AssociationViewNew "$UNNAMED$0" @10
location (1502, 1528)
stereotype TRUE
line_color 3342489
quidu "456589F10094"
roleview_list (list RoleViews
(object RoleView "$UNNAMED$1" @11
Parent_View @10
location (1150, 24)
stereotype TRUE
line_color 3342489
quidu "456589F201CC"
client @10
supplier @6
vertices (list Points
(1502, 1528)
(2200, 1528)
(2200, 1256))
line_style 3
origin_attachment (1502, 1528)
terminal_attachment (2200, 1256))
(object RoleView "derivedContainer<? extends EJavaNumber>" @12
Parent_View @10
location (1150, 24)
label (object SegLabel @13
Parent_View @12
location (1196, 1473)
anchor 1
anchor_loc 1
nlines 1
max_width 816
justify 0
label "+derivedContainer<? extends EJavaNumber>"
pctDist 0.315396
height 56
orientation 1)
stereotype TRUE
line_color 3342489
quidu "456589F201CD"
client @10
supplier @7
line_style 3
origin_attachment (1502, 1528)
terminal_attachment (532, 1528)
label (object SegLabel @14
Parent_View @12
location (630, 1582)
anchor 2
anchor_loc 1
nlines 1
max_width 15
justify 0
label "0..*"
pctDist 0.900000
height 54
orientation 0))))
(object ClassView "Class" "Logical View::template::EJavaClass" @15
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (2368, 272)
label (object ItemLabel
Parent_View @15
location (2067, 188)
fill_color 13434879
nlines 1
max_width 602
justify 0
label "EJavaClass")
stereotype (object ItemLabel
Parent_View @15
location (2067, 138)
fill_color 13434879
anchor 10
nlines 1
max_width 602
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "456845B80138"
compartment (object Compartment
Parent_View @15
location (2067, 248)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 3
max_width 609)
width 620
height 292
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::EJavaException" @16
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (2384, 624)
label (object ItemLabel
Parent_View @16
location (2044, 565)
fill_color 13434879
nlines 1
max_width 680
justify 0
label "EJavaException")
stereotype (object ItemLabel
Parent_View @16
location (2044, 515)
fill_color 13434879
anchor 10
nlines 1
max_width 680
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45716AB60040"
compartment (object Compartment
Parent_View @16
location (2044, 625)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 2
max_width 687)
width 698
height 242
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::ListOfDecimal" @17
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (608, 1760)
label (object ItemLabel
Parent_View @17
location (164, 1701)
fill_color 13434879
nlines 1
max_width 888
justify 0
label "ListOfDecimal")
stereotype (object ItemLabel
Parent_View @17
location (164, 1651)
fill_color 13434879
anchor 10
nlines 1
max_width 888
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "457301AF0282"
compartment (object Compartment
Parent_View @17
location (164, 1761)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 2
max_width 890)
width 906
height 242
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::ListOfHexadecimal" @18
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (1632, 1760)
label (object ItemLabel
Parent_View @18
location (1188, 1701)
fill_color 13434879
nlines 1
max_width 888
justify 0
label "ListOfHexadecimal")
stereotype (object ItemLabel
Parent_View @18
location (1188, 1651)
fill_color 13434879
anchor 10
nlines 1
max_width 888
justify 0
label "<<datatype>>")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "4573024102B1"
compartment (object Compartment
Parent_View @18
location (1188, 1761)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 2
max_width 890)
width 906
height 242
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::EStringToStringMap" @19
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (720, 2096)
label (object ItemLabel
Parent_View @19
location (130, 2037)
fill_color 13434879
nlines 1
max_width 1180
justify 0
label "EStringToStringMap")
stereotype (object ItemLabel
Parent_View @19
location (130, 1987)
fill_color 13434879
anchor 10
nlines 1
max_width 1180
justify 0
label "<<Interface>>")
icon "Interface"
icon_style "Label"
line_color 3342489
fill_color 13434879
quidu "45757CDF003E"
compartment (object Compartment
Parent_View @19
location (130, 2097)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 2
max_width 1187)
width 1198
height 242
annotation 8
autoResize TRUE)
(object ClassView "Class" "Logical View::template::ExtendedMap" @20
ShowCompartmentStereotypes TRUE
IncludeAttribute TRUE
IncludeOperation TRUE
location (352, 2448)
font (object Font
italics TRUE)
label (object ItemLabel
Parent_View @20
location (126, 2342)
fill_color 13434879
nlines 1
max_width 452
justify 0
label "ExtendedMap")
icon_style "Icon"
line_color 3342489
fill_color 13434879
quidu "45757D65034B"
compartment (object Compartment
Parent_View @20
location (126, 2402)
icon_style "Icon"
fill_color 13434879
anchor 2
nlines 3
max_width 0)
width 470
height 236
annotation 8
autoResize TRUE)
(object InheritView "" @21
stereotype TRUE
line_color 3342489
quidu "45757D720128"
client @20
supplier @19
line_style 3
origin_attachment (381, 2330)
terminal_attachment (381, 2217)))))))
logical_presentations (list unit_reference_list
(object ClassDiagram "Main"
quid "4564386F002D"
title "Main"
zoom 100
max_height 28350
max_width 21600
origin_x 0
origin_y 0
items (list diagram_item_list))))
root_subsystem (object SubSystem "Component View"
quid "4564386F0029"
physical_models (list unit_reference_list)
physical_presentations (list unit_reference_list
(object Module_Diagram "Main"
quid "4564386F002E"
title "Main"
zoom 100
max_height 28350
max_width 21600
origin_x 0
origin_y 0
items (list diagram_item_list))))
process_structure (object Processes
quid "4564386F002A"
ProcsNDevs (list
(object Process_Diagram "Deployment View"
quid "4564386F002C"
title "Deployment View"
zoom 100
max_height 28350
max_width 21600
origin_x 0
origin_y 0
items (list diagram_item_list))))
properties (object Properties
attributes (list Attribute_Set
(object Attribute
tool "DDL"
name "propertyId"
value "809135966")
(object Attribute
tool "DDL"
name "default__Project"
value (list Attribute_Set
(object Attribute
tool "DDL"
name "Directory"
value "AUTO GENERATE")
(object Attribute
tool "DDL"
name "DataBase"
value ("DataBaseSet" 800))
(object Attribute
tool "DDL"
name "DataBaseSet"
value (list Attribute_Set
(object Attribute
tool "DDL"
name "ANSI"
value 800)
(object Attribute
tool "DDL"
name "Oracle"
value 801)
(object Attribute
tool "DDL"
name "SQLServer"
value 802)
(object Attribute
tool "DDL"
name "Sybase"
value 803)
(object Attribute
tool "DDL"
name "Watcom"
value 804)))
(object Attribute
tool "DDL"
name "PrimaryKeyColumnName"
value "Id")
(object Attribute
tool "DDL"
name "PrimaryKeyColumnType"
value "NUMBER(5)")
(object Attribute
tool "DDL"
name "ViewName"
value "V_")
(object Attribute
tool "DDL"
name "TableName"
value "T_")
(object Attribute
tool "DDL"
name "InheritSuffix"
value "_V")
(object Attribute
tool "DDL"
name "DropClause"
value FALSE)
(object Attribute
tool "DDL"
name "BaseViews"
value FALSE)
(object Attribute
tool "DDL"
name "DDLScriptFilename"
value "DDL1.SQL")))
(object Attribute
tool "DDL"
name "default__Attribute"
value (list Attribute_Set
(object Attribute
tool "DDL"
name "ColumnType"
value "VARCHAR")
(object Attribute
tool "DDL"
name "Length"
value "")
(object Attribute
tool "DDL"
name "NullsOK"
value TRUE)
(object Attribute
tool "DDL"
name "PrimaryKey"
value FALSE)
(object Attribute
tool "DDL"
name "Unique"
value FALSE)
(object Attribute
tool "DDL"
name "CompositeUnique"
value FALSE)
(object Attribute
tool "DDL"
name "CheckConstraint"
value "")))
(object Attribute
tool "DDL"
name "HiddenTool"
value FALSE)
(object Attribute
tool "IDL"
name "propertyId"
value "809135966")
(object Attribute
tool "IDL"
name "default__Project"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "CreateMissingDirectories"
value TRUE)
(object Attribute
tool "IDL"
name "StopOnError"
value TRUE)
(object Attribute
tool "IDL"
name "Directory"
value "AUTO GENERATE")
(object Attribute
tool "IDL"
name "GeneratePreserveRegions"
value TRUE)))
(object Attribute
tool "IDL"
name "default__Class"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "ImplementationType"
value "")
(object Attribute
tool "IDL"
name "ConstValue"
value "")
(object Attribute
tool "IDL"
name "GenerateDefaultSpecifier"
value FALSE)
(object Attribute
tool "IDL"
name "DefaultSpecifier"
value "")
(object Attribute
tool "IDL"
name "IDLElement"
value TRUE)
(object Attribute
tool "IDL"
name "IDLSpecificationType"
value ("IDLSpecSet" 22))
(object Attribute
tool "IDL"
name "IDLSpecSet"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "Interface"
value 22)
(object Attribute
tool "IDL"
name "Typedef"
value 54)
(object Attribute
tool "IDL"
name "Enumeration"
value 8)
(object Attribute
tool "IDL"
name "Const"
value 71)
(object Attribute
tool "IDL"
name "Exception"
value 61)
(object Attribute
tool "IDL"
name "Struct"
value 51)
(object Attribute
tool "IDL"
name "Union"
value 81)))))
(object Attribute
tool "IDL"
name "default__Module-Spec"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "Generate"
value TRUE)
(object Attribute
tool "IDL"
name "CmIdentification"
value (value Text " %X% %Q% %Z% %W%"))
(object Attribute
tool "IDL"
name "CopyrightNotice"
value (value Text ""))
(object Attribute
tool "IDL"
name "FileName"
value "AUTO GENERATE")
(object Attribute
tool "IDL"
name "GenerateIDLModule"
value FALSE)
(object Attribute
tool "IDL"
name "InclusionProtectionSymbol"
value "AUTO GENERATE")
(object Attribute
tool "IDL"
name "AdditionalIncludes"
value (value Text ""))
(object Attribute
tool "IDL"
name "IncludeBySimpleName"
value FALSE)))
(object Attribute
tool "IDL"
name "default__Module-Body"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "CmIdentification"
value (value Text " %X% %Q% %Z% %W%"))
(object Attribute
tool "IDL"
name "CopyrightNotice"
value (value Text ""))
(object Attribute
tool "IDL"
name "FileName"
value "AUTO GENERATE")
(object Attribute
tool "IDL"
name "AdditionalIncludes"
value (value Text ""))
(object Attribute
tool "IDL"
name "IncludeBySimpleName"
value FALSE)))
(object Attribute
tool "IDL"
name "default__Operation"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "OperationIsOneWay"
value FALSE)
(object Attribute
tool "IDL"
name "Context"
value "")
(object Attribute
tool "IDL"
name "Raises"
value "")))
(object Attribute
tool "IDL"
name "default__Attribute"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "CaseSpecifier"
value "")
(object Attribute
tool "IDL"
name "GenerateDataMember"
value TRUE)
(object Attribute
tool "IDL"
name "DataMemberName"
value "$relationship")
(object Attribute
tool "IDL"
name "IsReadOnly"
value FALSE)
(object Attribute
tool "IDL"
name "IsConst"
value FALSE)
(object Attribute
tool "IDL"
name "ConstValue"
value "")))
(object Attribute
tool "IDL"
name "default__Has"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "NameIfUnlabeled"
value "the_$supplier")
(object Attribute
tool "IDL"
name "GenerateDataMember"
value TRUE)
(object Attribute
tool "IDL"
name "DataMemberName"
value "$relationship")
(object Attribute
tool "IDL"
name "GenerateForwardReference"
value FALSE)
(object Attribute
tool "IDL"
name "IsReadOnly"
value FALSE)
(object Attribute
tool "IDL"
name "BoundedHasRelType"
value ("HasRelTypeSet" 47))
(object Attribute
tool "IDL"
name "HasRelTypeSet"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "Array"
value 24)
(object Attribute
tool "IDL"
name "Sequence"
value 47)))))
(object Attribute
tool "IDL"
name "default__Role"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "NameIfUnlabeled"
value "the_$supplier")
(object Attribute
tool "IDL"
name "GenerateDataMember"
value TRUE)
(object Attribute
tool "IDL"
name "DataMemberName"
value "$relationship")
(object Attribute
tool "IDL"
name "GenerateForwardReference"
value FALSE)
(object Attribute
tool "IDL"
name "IsReadOnly"
value FALSE)
(object Attribute
tool "IDL"
name "BoundedRoleType"
value ("AssocTypeSet" 47))
(object Attribute
tool "IDL"
name "AssocTypeSet"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "Array"
value 24)
(object Attribute
tool "IDL"
name "Sequence"
value 47)))))
(object Attribute
tool "IDL"
name "default__Uses"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "GenerateForwardReference"
value FALSE)))
(object Attribute
tool "IDL"
name "default__Subsystem"
value (list Attribute_Set
(object Attribute
tool "IDL"
name "Directory"
value "AUTO GENERATE")))
(object Attribute
tool "IDL"
name "HiddenTool"
value FALSE)
(object Attribute
tool "SCC"
name "HiddenTool"
value FALSE)
(object Attribute
tool "Ecore"
name "propertyId"
value "809135969")
(object Attribute
tool "Ecore"
name "default__Category"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "packageName"
value "")
(object Attribute
tool "Ecore"
name "nsPrefix"
value "")
(object Attribute
tool "Ecore"
name "nsURI"
value "")
(object Attribute
tool "Ecore"
name "basePackage"
value "")
(object Attribute
tool "Ecore"
name "prefix"
value "")
(object Attribute
tool "Ecore"
name "annotation"
value "")))
(object Attribute
tool "Ecore"
name "default__Class"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "classifierName"
value "")
(object Attribute
tool "Ecore"
name "constraints"
value "")
(object Attribute
tool "Ecore"
name "xmlName"
value "")
(object Attribute
tool "Ecore"
name "xmlContentKind"
value ("ContentKind" 0))
(object Attribute
tool "Ecore"
name "ContentKind"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "Unspecified"
value 0)
(object Attribute
tool "Ecore"
name "Empty"
value 1)
(object Attribute
tool "Ecore"
name "Simple"
value 2)
(object Attribute
tool "Ecore"
name "Mixed"
value 3)
(object Attribute
tool "Ecore"
name "ElementOnly"
value 4)))
(object Attribute
tool "Ecore"
name "annotation"
value "")))
(object Attribute
tool "Ecore"
name "default__Operation"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "operationName"
value "")
(object Attribute
tool "Ecore"
name "isUnique"
value TRUE)
(object Attribute
tool "Ecore"
name "annotation"
value "")))
(object Attribute
tool "Ecore"
name "default__Attribute"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "attributeName"
value "")
(object Attribute
tool "Ecore"
name "isTransient"
value FALSE)
(object Attribute
tool "Ecore"
name "isVolatile"
value FALSE)
(object Attribute
tool "Ecore"
name "isChangeable"
value TRUE)
(object Attribute
tool "Ecore"
name "isUnsettable"
value FALSE)
(object Attribute
tool "Ecore"
name "isUnique"
value TRUE)
(object Attribute
tool "Ecore"
name "isID"
value FALSE)
(object Attribute
tool "Ecore"
name "visibility"
value ("VisibilityKind" 0))
(object Attribute
tool "Ecore"
name "VisibilityKind"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "Unspecified"
value 0)
(object Attribute
tool "Ecore"
name "None"
value 1)
(object Attribute
tool "Ecore"
name "Read-only"
value 2)
(object Attribute
tool "Ecore"
name "Read-write"
value 3)
(object Attribute
tool "Ecore"
name "Read-only unsettable"
value 4)
(object Attribute
tool "Ecore"
name "Read-write unsettable"
value 5)))
(object Attribute
tool "Ecore"
name "xmlName"
value "")
(object Attribute
tool "Ecore"
name "xmlNamespace"
value "")
(object Attribute
tool "Ecore"
name "xmlFeatureKind"
value ("FeatureKind" 0))
(object Attribute
tool "Ecore"
name "FeatureKind"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "Unspecified"
value 0)
(object Attribute
tool "Ecore"
name "Simple"
value 1)
(object Attribute
tool "Ecore"
name "Attribute"
value 2)
(object Attribute
tool "Ecore"
name "Element"
value 4)))
(object Attribute
tool "Ecore"
name "annotation"
value "")))
(object Attribute
tool "Ecore"
name "default__Role"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "referenceName"
value "")
(object Attribute
tool "Ecore"
name "isTransient"
value FALSE)
(object Attribute
tool "Ecore"
name "isVolatile"
value FALSE)
(object Attribute
tool "Ecore"
name "isChangeable"
value TRUE)
(object Attribute
tool "Ecore"
name "isUnsettable"
value FALSE)
(object Attribute
tool "Ecore"
name "isResolveProxies"
value TRUE)
(object Attribute
tool "Ecore"
name "visibility"
value ("VisibilityKind" 0))
(object Attribute
tool "Ecore"
name "VisibilityKind"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "Unspecified"
value 0)
(object Attribute
tool "Ecore"
name "None"
value 1)
(object Attribute
tool "Ecore"
name "Read-only"
value 2)
(object Attribute
tool "Ecore"
name "Read-write"
value 3)
(object Attribute
tool "Ecore"
name "Read-only unsettable"
value 4)
(object Attribute
tool "Ecore"
name "Read-write unsettable"
value 5)))
(object Attribute
tool "Ecore"
name "xmlName"
value "")
(object Attribute
tool "Ecore"
name "xmlNamespace"
value "")
(object Attribute
tool "Ecore"
name "xmlFeatureKind"
value ("FeatureKind" 0))
(object Attribute
tool "Ecore"
name "FeatureKind"
value (list Attribute_Set
(object Attribute
tool "Ecore"
name "Unspecified"
value 0)
(object Attribute
tool "Ecore"
name "Simple"
value 1)
(object Attribute
tool "Ecore"
name "Attribute"
value 2)
(object Attribute
tool "Ecore"
name "Element"
value 4)))
(object Attribute
tool "Ecore"
name "annotation"
value "")))
(object Attribute
tool "framework"
name "HiddenTool"
value FALSE)
(object Attribute
tool "Java"
name "propertyId"
value "809135966")
(object Attribute
tool "Java"
name "default__Project"
value (list Attribute_Set
(object Attribute
tool "Java"
name "CreateMissingDirectories"
value TRUE)
(object Attribute
tool "Java"
name "StopOnError"
value FALSE)
(object Attribute
tool "Java"
name "Directory"
value "AUTO GENERATE")
(object Attribute
tool "Java"
name "UsePrefixes"
value FALSE)
(object Attribute
tool "Java"
name "InstanceVariablePrefix"
value "m_")
(object Attribute
tool "Java"
name "ClassVariablePrefix"
value "s_")
(object Attribute
tool "Java"
name "DefaultAttributeDataType"
value "int")
(object Attribute
tool "Java"
name "DefaultOperationReturnType"
value "void")))
(object Attribute
tool "Java"
name "default__Class"
value (list Attribute_Set
(object Attribute
tool "Java"
name "Final"
value FALSE)
(object Attribute
tool "Java"
name "GenerateDefaultConstructor"
value TRUE)
(object Attribute
tool "Java"
name "ConstructorIs"
value ("Ctor_Set" 62))
(object Attribute
tool "Java"
name "Ctor_Set"
value (list Attribute_Set
(


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF generics and Rational Rose [message #431937 is a reply to message #431925] Thu, 30 July 2009 06:28 Go to previous message
Maik Wurdel is currently offline Maik WurdelFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks for your help and fasr response, Ed. This is exactly what I
needed and even a bit more ;)

Maik


Ed Merks schrieb:
> Maik,
>
> Comments below.
>
>
> Maik Wurdel wrote:
>> Hi,
>>
>> I just figured out that EMF offers generics since version 3.4 which is
>> pretty helpful. However, I can't find a way to specify those generics
>> in Rational Rose.
>>
>> I'm aware of the custom ecore properties within Rational Rose. Still I
>> can't find a way to specify that a certain class has a generic parameter.
>>
>> So my questions are:
>> Is there a real comprehensive tutorial or reference which stereotypes
>> and ecore properties are used of the rose importer? It is not the
>> first I'm posting a question regarding this topic, so I'd be glad to
>> have a reference.
>>
>> Is there a way to specify generics using Rational Rose taken into
>> account by the rose importer?
> There is and I'm pretty sure I've attached a *.mdl file with examples of
> all the things that can be specified in some previous newsgroup
> posting. But I don't have Rose installed anymore (not being at IBM and
> all) so I don't know if the attached file is the right one. Hopefully
> it is and it helps.
>>
>> Any help would be appreciated!
>>
>> Thanks
>> Maik


--
---------------------------
Dipl.-Inf. Maik Wurdel
Stipendiat GRK MuSAMA
Lehrstuhl Softwaretechnik
Institut fuer Informatik Tel. : +49(0)381-498-7443
Universität Rostock e-mail: maik.wurdel@uni-rostock.de
Joachim Jungius Straße 9
D-18055 Rostock
---------------------------
Previous Topic:[CDO] SQL Exception: Failed to create database
Next Topic:resource load with special epackage
Goto Forum:
  


Current Time: Fri Mar 29 00:29:24 GMT 2024

Powered by FUDForum. Page generated in 0.03551 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top