Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Two features named in the model by the same name
Two features named in the model by the same name [message #483144] Mon, 31 August 2009 10:50 Go to next message
ETTAIB  is currently offline ETTAIB Friend
Messages: 4
Registered: July 2009
Junior Member
Hi all,

I'm facing a problem when I try to generate an 'EMF Generator Model' from
an ecore inupt model, actually, the input model is just an extension of
the UML2 ecore model with reference to some profiles, the errors given are
like this:

Problems encountered in the model. There may not be two features named
'base_Operation',

so, I can't generate my genModel, nor the model code.

In fact base_Operation is an attribute that is declared in many classes in
the profiles, but I don't understand why it occures while having different
classes!

can anybody give a idea how to resolve this please.

Thanks in advance

m.ettaib
Re: Two features named in the model by the same name [message #483174 is a reply to message #483144] Mon, 31 August 2009 13:19 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
A feature's name must be unique among all the features of the class
itself along with the closure of all its super classes. If you turn to
the other tab, you'll probably still be able to generate code, though
it's going to have problems because of this.


ETTAIB M wrote:
> Hi all,
>
> I'm facing a problem when I try to generate an 'EMF Generator Model'
> from an ecore inupt model, actually, the input model is just an
> extension of the UML2 ecore model with reference to some profiles, the
> errors given are like this:
> Problems encountered in the model. There may not be two features named
> 'base_Operation',
> so, I can't generate my genModel, nor the model code.
>
> In fact base_Operation is an attribute that is declared in many
> classes in the profiles, but I don't understand why it occures while
> having different classes!
>
> can anybody give a idea how to resolve this please.
>
> Thanks in advance
>
> m.ettaib
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Two features named in the model by the same name [message #483185 is a reply to message #483174] Mon, 31 August 2009 13:56 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

--=-73oYZ3Q+0EqYYVFHllkb
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Ed, m.ettaib,

Yes, most likely the problem is that a stereotype that extends the
Operation metaclass already inherits a metaclass extension to Operation
from a super-stereotype. It is, actually, forbidden by the UML for a
stereotype to redefine (implicitly or explicitly) an inherited metaclass
extension, if my memory serves me right.

Cheers,

Christian


On Mon, 2009-08-31 at 09:19 -0400, Ed Merks wrote:

> A feature's name must be unique among all the features of the class
> itself along with the closure of all its super classes. If you turn to
> the other tab, you'll probably still be able to generate code, though
> it's going to have problems because of this.
>
>
> ETTAIB M wrote:
> > Hi all,
> >
> > I'm facing a problem when I try to generate an 'EMF Generator Model'
> > from an ecore inupt model, actually, the input model is just an
> > extension of the UML2 ecore model with reference to some profiles, the
> > errors given are like this:
> > Problems encountered in the model. There may not be two features named
> > 'base_Operation',
> > so, I can't generate my genModel, nor the model code.
> >
> > In fact base_Operation is an attribute that is declared in many
> > classes in the profiles, but I don't understand why it occures while
> > having different classes!
> >
> > can anybody give a idea how to resolve this please.
> >
> > Thanks in advance
> >
> > m.ettaib
> >

--=-73oYZ3Q+0EqYYVFHllkb
Content-Type: text/html; charset="utf-8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Ed, m.ettaib,<BR>
<BR>
Yes, most likely the problem is that a stereotype that extends the Operation metaclass already inherits a metaclass extension to Operation from a super-stereotype.&nbsp; It is, actually, forbidden by the UML for a stereotype to redefine (implicitly or explicitly) an inherited metaclass extension, if my memory serves me right.<BR>
<BR>
Cheers,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Mon, 2009-08-31 at 09:19 -0400, Ed Merks wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
A feature's name must be unique among all the features of the class
itself along with the closure of all its super classes. If you turn to
the other tab, you'll probably still be able to generate code, though
it's going to have problems because of this.


ETTAIB M wrote:
&gt; Hi all,
&gt;
&gt; I'm facing a problem when I try to generate an 'EMF Generator Model'
&gt; from an ecore inupt model, actually, the input model is just an
&gt; extension of the UML2 ecore model with reference to some profiles, the
&gt; errors given are like this:
&gt; Problems encountered in the model. There may not be two features named
&gt; 'base_Operation',
&gt; so, I can't generate my genModel, nor the model code.
&gt;
&gt; In fact base_Operation is an attribute that is declared in many
&gt; classes in the profiles, but I don't understand why it occures while
&gt; having different classes!
&gt;
&gt; can anybody give a idea how to resolve this please.
&gt;
&gt; Thanks in advance
&gt;
&gt; m.ettaib
&gt;
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-73oYZ3Q+0EqYYVFHllkb--
Re: Two features named in the model by the same name [message #483343 is a reply to message #483185] Tue, 01 September 2009 09:07 Go to previous messageGo to next message
ETTAIB  is currently offline ETTAIB Friend
Messages: 4
Registered: July 2009
Junior Member
Hi Ed and Christian,

Indeed, I can generate the genmodel enspite of the errors, but this
genmodel could not be opened with EMF Generator, nor generate the code
model.

In fact, a feature's name is unique among all the classes and there is no
relation between these classes such inheritance.

And the operation metaclasses are not stereotyped at all, so I can't
figure yet what is really going on.

here is the code of one of my profiles "com.bluage.profile.bo.profile.uml"
where the attribute base_Operation is creating the problem. just in case
if you can figure something from it.

Thanks very much

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"
xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5
pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8R c_NA">
<uml:Profile xmi:id="_boProfile" name="bo"
metamodelReference="_19PvUJ9KEd2fxPczPj7-fg">
<eAnnotations xmi:id="_u7TEoZ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<contents xmi:type="ecore:EPackage" xmi:id="_u7TEop9MEd2fxPczPj7-fg"
name="bo" nsURI="http://www.bluage.com/profiles/bo" nsPrefix="bo">
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEo59MEd2fxPczPj7-fg" name="attach">
<eAnnotations xmi:id="_u7TEpJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_455tsJ9KEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEpZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEp59MEd2fxPczPj7-fg" name="detach">
<eAnnotations xmi:id="_u7TEqJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_Ayc-UJ9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEqZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEq59MEd2fxPczPj7-fg" name="formula">
<eAnnotations xmi:id="_u7TErJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_GpqpUJ9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TErZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute"
xmi:id="_u7TEr59MEd2fxPczPj7-fg" name="binary_java" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
<eStructuralFeatures xmi:type="ecore:EAttribute"
xmi:id="_u7TEsZ9MEd2fxPczPj7-fg" name="binary_net" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EDataType"
href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEs59MEd2fxPczPj7-fg" name="getter">
<eAnnotations xmi:id="_u7TEtJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_Vskn0J9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEtZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEt59MEd2fxPczPj7-fg" name="ocl_impl">
<eAnnotations xmi:id="_u7TEuJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_ezz5IJ9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEuZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEu59MEd2fxPczPj7-fg" name="ocl_sql">
<eAnnotations xmi:id="_u7TEvJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_k2f0UJ9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEvZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEv59MEd2fxPczPj7-fg" name="PK_BUSINESS_OBJECT">
<eAnnotations xmi:id="_u7TEwJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_pp548J9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEwZ9MEd2fxPczPj7-fg" name="base_Package" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEw59MEd2fxPczPj7-fg" name="PK_BUSINESS">
<eAnnotations xmi:id="_u7TExJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_zcWDYJ9LEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TExZ9MEd2fxPczPj7-fg" name="base_Package" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEx59MEd2fxPczPj7-fg" name="setter">
<eAnnotations xmi:id="_u7TEyJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_Hiw_EJ9MEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEyZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass"
xmi:id="_u7TEy59MEd2fxPczPj7-fg" name="specific_impl">
<eAnnotations xmi:id="_u7TEzJ9MEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML"
references="_PsKIEJ9MEd2fxPczPj7-fg"/>
<eStructuralFeatures xmi:type="ecore:EReference"
xmi:id="_u7TEzZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
lowerBound="1">
<eType xmi:type="ecore:EClass"
href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
</eStructuralFeatures>
</eClassifiers>
</contents>
</eAnnotations>
<elementImport xmi:id="_yeeiYJ9KEd2fxPczPj7-fg">
<importedElement xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolea n"/>
</elementImport>
<elementImport xmi:id="_yeeiYZ9KEd2fxPczPj7-fg">
<importedElement xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Intege r"/>
</elementImport>
<elementImport xmi:id="_yeeiYp9KEd2fxPczPj7-fg">
<importedElement xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</elementImport>
<elementImport xmi:id="_yeeiY59KEd2fxPczPj7-fg">
<importedElement xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Unlimi tedNatural"/>
</elementImport>
<packageImport xmi:id="_19PvUJ9KEd2fxPczPj7-fg">
<importedPackage xmi:type="uml:Model"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_455tsJ9KEd2fxPczPj7-fg" name="attach">
<ownedAttribute xmi:id="_9M-FYp9KEd2fxPczPj7-fg"
name="base_Operation" association="_9M-FYJ9KEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_Ayc-UJ9LEd2fxPczPj7-fg" name="detach">
<ownedAttribute xmi:id="_Db4esp9LEd2fxPczPj7-fg"
name="base_Operation" association="_Db4esJ9LEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_GpqpUJ9LEd2fxPczPj7-fg" name="formula">
<ownedAttribute xmi:id="_IxtT4p9LEd2fxPczPj7-fg"
name="base_Operation" association="_IxtT4J9LEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
<ownedAttribute xmi:id="_K0sfUJ9LEd2fxPczPj7-fg" name="binary_java">
<type xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
<ownedAttribute xmi:id="_Pr-XUJ9LEd2fxPczPj7-fg" name="binary_net">
<type xmi:type="uml:PrimitiveType"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_Vskn0J9LEd2fxPczPj7-fg" name="getter">
<ownedAttribute xmi:id="_bWOX8p9LEd2fxPczPj7-fg"
name="base_Operation" association="_bWOX8J9LEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_ezz5IJ9LEd2fxPczPj7-fg" name="ocl_impl">
<ownedAttribute xmi:id="_h4WoMp9LEd2fxPczPj7-fg"
name="base_Operation" association="_h4WoMJ9LEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_k2f0UJ9LEd2fxPczPj7-fg" name="ocl_sql">
<ownedAttribute xmi:id="_mnvvgp9LEd2fxPczPj7-fg"
name="base_Operation" association="_mnvvgJ9LEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_pp548J9LEd2fxPczPj7-fg" name="PK_BUSINESS_OBJECT">
<ownedAttribute xmi:id="_rfxOYp9LEd2fxPczPj7-fg" name="base_Package"
association="_rfxOYJ9LEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_zcWDYJ9LEd2fxPczPj7-fg" name="PK_BUSINESS">
<ownedAttribute xmi:id="_Cy7y4p9MEd2fxPczPj7-fg" name="base_Package"
association="_Cy7y4J9MEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_Hiw_EJ9MEd2fxPczPj7-fg" name="setter">
<ownedAttribute xmi:id="_MoNO4p9MEd2fxPczPj7-fg"
name="base_Operation" association="_MoNO4J9MEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype"
xmi:id="_PsKIEJ9MEd2fxPczPj7-fg" name="specific_impl">
<ownedAttribute xmi:id="_SCNZcp9MEd2fxPczPj7-fg"
name="base_Operation" association="_SCNZcJ9MEd2fxPczPj7-fg">
<type xmi:type="uml:Class"
href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_9M-FYJ9KEd2fxPczPj7-fg" name="Operation_attach"
memberEnd="_9M-FYZ9KEd2fxPczPj7-fg _9M-FYp9KEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_9M-FYZ9KEd2fxPczPj7-fg" name="extension_attach"
type="_455tsJ9KEd2fxPczPj7-fg" aggregation="composite"
association="_9M-FYJ9KEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_Db4esJ9LEd2fxPczPj7-fg" name="Operation_detach"
memberEnd="_Db4esZ9LEd2fxPczPj7-fg _Db4esp9LEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_Db4esZ9LEd2fxPczPj7-fg" name="extension_detach"
type="_Ayc-UJ9LEd2fxPczPj7-fg" aggregation="composite"
association="_Db4esJ9LEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_IxtT4J9LEd2fxPczPj7-fg" name="Operation_formula"
memberEnd="_IxtT4Z9LEd2fxPczPj7-fg _IxtT4p9LEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_IxtT4Z9LEd2fxPczPj7-fg" name="extension_formula"
type="_GpqpUJ9LEd2fxPczPj7-fg" aggregation="composite"
association="_IxtT4J9LEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_bWOX8J9LEd2fxPczPj7-fg" name="Operation_getter"
memberEnd="_bWOX8Z9LEd2fxPczPj7-fg _bWOX8p9LEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_bWOX8Z9LEd2fxPczPj7-fg" name="extension_getter"
type="_Vskn0J9LEd2fxPczPj7-fg" aggregation="composite"
association="_bWOX8J9LEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_h4WoMJ9LEd2fxPczPj7-fg" name="Operation_ocl_impl"
memberEnd="_h4WoMZ9LEd2fxPczPj7-fg _h4WoMp9LEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_h4WoMZ9LEd2fxPczPj7-fg" name="extension_ocl_impl"
type="_ezz5IJ9LEd2fxPczPj7-fg" aggregation="composite"
association="_h4WoMJ9LEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_mnvvgJ9LEd2fxPczPj7-fg" name="Operation_ocl_sql"
memberEnd="_mnvvgZ9LEd2fxPczPj7-fg _mnvvgp9LEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_mnvvgZ9LEd2fxPczPj7-fg" name="extension_ocl_sql"
type="_k2f0UJ9LEd2fxPczPj7-fg" aggregation="composite"
association="_mnvvgJ9LEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_rfxOYJ9LEd2fxPczPj7-fg" name="Package_PK_BUSINESS_OBJECT"
memberEnd="_rfxOYZ9LEd2fxPczPj7-fg _rfxOYp9LEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_rfxOYZ9LEd2fxPczPj7-fg" name="extension_PK_BUSINESS_OBJECT"
type="_pp548J9LEd2fxPczPj7-fg" aggregation="composite"
association="_rfxOYJ9LEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_Cy7y4J9MEd2fxPczPj7-fg" name="Package_PK_BUSINESS"
memberEnd="_Cy7y4Z9MEd2fxPczPj7-fg _Cy7y4p9MEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_Cy7y4Z9MEd2fxPczPj7-fg" name="extension_PK_BUSINESS"
type="_zcWDYJ9LEd2fxPczPj7-fg" aggregation="composite"
association="_Cy7y4J9MEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_MoNO4J9MEd2fxPczPj7-fg" name="Operation_setter"
memberEnd="_MoNO4Z9MEd2fxPczPj7-fg _MoNO4p9MEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_MoNO4Z9MEd2fxPczPj7-fg" name="extension_setter"
type="_Hiw_EJ9MEd2fxPczPj7-fg" aggregation="composite"
association="_MoNO4J9MEd2fxPczPj7-fg"/>
</packagedElement>
<packagedElement xmi:type="uml:Extension"
xmi:id="_SCNZcJ9MEd2fxPczPj7-fg" name="Operation_specific_impl"
memberEnd="_SCNZcZ9MEd2fxPczPj7-fg _SCNZcp9MEd2fxPczPj7-fg">
<ownedEnd xmi:type="uml:ExtensionEnd"
xmi:id="_SCNZcZ9MEd2fxPczPj7-fg" name="extension_specific_impl"
type="_PsKIEJ9MEd2fxPczPj7-fg" aggregation="composite"
association="_SCNZcJ9MEd2fxPczPj7-fg"/>
</packagedElement>
<profileApplication xmi:id="_pjdvMJ9KEd2fxPczPj7-fg">
<eAnnotations xmi:id="_pjdvMZ9KEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8R c_NA"/>
</eAnnotations>
<appliedProfile href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
</profileApplication>
<profileApplication xmi:id="_pjngMJ9KEd2fxPczPj7-fg">
<eAnnotations xmi:id="_pjngMZ9KEd2fxPczPj7-fg"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
</eAnnotations>
<appliedProfile
href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
</profileApplication>
</uml:Profile>
<Ecore:EPackage xmi:id="_qx2N4J9KEd2fxPczPj7-fg"
base_Package="_boProfile" packageName="bo" nsPrefix="bo"
nsURI="http://www.bluage.com/profiles/bo" prefix="bo"/>
</xmi:XMI>
Re: Two features named in the model by the same name [message #483411 is a reply to message #483343] Tue, 01 September 2009 14:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Comments below.

ETTAIB wrote:
> Hi Ed and Christian,
>
> Indeed, I can generate the genmodel enspite of the errors, but this
> genmodel could not be opened with EMF Generator, nor generate the code
> model.
It's a common mistake to assume it can't be opened because it opens to
the error tab. The other tabs are still available.
>
> In fact, a feature's name is unique among all the classes and there is
> no relation between these classes such inheritance.
I doubt that. The validator looks at the features in
getEAllStructuralFeatures and complains if there are duplicates, so I'm
pretty sure it's not going to find them if they don't exist.
>
> And the operation metaclasses are not stereotyped at all, so I can't
> figure yet what is really going on.
I'm not in a good position to comment on the UML stuff, so when it comes
to profiles and stereotypes, best to use the UML2 newsgroup. Perhaps UML
is doing stuff with what it's loading (implicit inheritance?) that I'm
not aware of...
>
> here is the code of one of my profiles
> "com.bluage.profile.bo.profile.uml" where the attribute base_Operation
> is creating the problem. just in case if you can figure something from
> it.
>
> Thanks very much
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.1"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"
> xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5
> pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8R c_NA">
> <uml:Profile xmi:id="_boProfile" name="bo"
> metamodelReference="_19PvUJ9KEd2fxPczPj7-fg">
> <eAnnotations xmi:id="_u7TEoZ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <contents xmi:type="ecore:EPackage"
> xmi:id="_u7TEop9MEd2fxPczPj7-fg" name="bo"
> nsURI="http://www.bluage.com/profiles/bo" nsPrefix="bo">
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEo59MEd2fxPczPj7-fg" name="attach">
> <eAnnotations xmi:id="_u7TEpJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_455tsJ9KEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEpZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEp59MEd2fxPczPj7-fg" name="detach">
> <eAnnotations xmi:id="_u7TEqJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_Ayc-UJ9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEqZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEq59MEd2fxPczPj7-fg" name="formula">
> <eAnnotations xmi:id="_u7TErJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_GpqpUJ9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TErZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> <eStructuralFeatures xmi:type="ecore:EAttribute"
> xmi:id="_u7TEr59MEd2fxPczPj7-fg" name="binary_java" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> <eStructuralFeatures xmi:type="ecore:EAttribute"
> xmi:id="_u7TEsZ9MEd2fxPczPj7-fg" name="binary_net" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EDataType"
> href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEs59MEd2fxPczPj7-fg" name="getter">
> <eAnnotations xmi:id="_u7TEtJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_Vskn0J9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEtZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEt59MEd2fxPczPj7-fg" name="ocl_impl">
> <eAnnotations xmi:id="_u7TEuJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_ezz5IJ9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEuZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEu59MEd2fxPczPj7-fg" name="ocl_sql">
> <eAnnotations xmi:id="_u7TEvJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_k2f0UJ9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEvZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEv59MEd2fxPczPj7-fg" name="PK_BUSINESS_OBJECT">
> <eAnnotations xmi:id="_u7TEwJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_pp548J9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEwZ9MEd2fxPczPj7-fg" name="base_Package" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEw59MEd2fxPczPj7-fg" name="PK_BUSINESS">
> <eAnnotations xmi:id="_u7TExJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_zcWDYJ9LEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TExZ9MEd2fxPczPj7-fg" name="base_Package" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEx59MEd2fxPczPj7-fg" name="setter">
> <eAnnotations xmi:id="_u7TEyJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_Hiw_EJ9MEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEyZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> <eClassifiers xmi:type="ecore:EClass"
> xmi:id="_u7TEy59MEd2fxPczPj7-fg" name="specific_impl">
> <eAnnotations xmi:id="_u7TEzJ9MEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML"
> references="_PsKIEJ9MEd2fxPczPj7-fg"/>
> <eStructuralFeatures xmi:type="ecore:EReference"
> xmi:id="_u7TEzZ9MEd2fxPczPj7-fg" name="base_Operation" ordered="false"
> lowerBound="1">
> <eType xmi:type="ecore:EClass"
> href="http://www.eclipse.org/uml2/3.0.0/UML#//Operation"/>
> </eStructuralFeatures>
> </eClassifiers>
> </contents>
> </eAnnotations>
> <elementImport xmi:id="_yeeiYJ9KEd2fxPczPj7-fg">
> <importedElement xmi:type="uml:PrimitiveType"
> href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolea n"/>
> </elementImport>
> <elementImport xmi:id="_yeeiYZ9KEd2fxPczPj7-fg">
> <importedElement xmi:type="uml:PrimitiveType"
> href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Intege r"/>
> </elementImport>
> <elementImport xmi:id="_yeeiYp9KEd2fxPczPj7-fg">
> <importedElement xmi:type="uml:PrimitiveType"
> href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
> </elementImport>
> <elementImport xmi:id="_yeeiY59KEd2fxPczPj7-fg">
> <importedElement xmi:type="uml:PrimitiveType"
> href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Unlimi tedNatural"/>
>
> </elementImport>
> <packageImport xmi:id="_19PvUJ9KEd2fxPczPj7-fg">
> <importedPackage xmi:type="uml:Model"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
> </packageImport>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_455tsJ9KEd2fxPczPj7-fg" name="attach">
> <ownedAttribute xmi:id="_9M-FYp9KEd2fxPczPj7-fg"
> name="base_Operation" association="_9M-FYJ9KEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_Ayc-UJ9LEd2fxPczPj7-fg" name="detach">
> <ownedAttribute xmi:id="_Db4esp9LEd2fxPczPj7-fg"
> name="base_Operation" association="_Db4esJ9LEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_GpqpUJ9LEd2fxPczPj7-fg" name="formula">
> <ownedAttribute xmi:id="_IxtT4p9LEd2fxPczPj7-fg"
> name="base_Operation" association="_IxtT4J9LEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> <ownedAttribute xmi:id="_K0sfUJ9LEd2fxPczPj7-fg" name="binary_java">
> <type xmi:type="uml:PrimitiveType"
> href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
> </ownedAttribute>
> <ownedAttribute xmi:id="_Pr-XUJ9LEd2fxPczPj7-fg" name="binary_net">
> <type xmi:type="uml:PrimitiveType"
> href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_Vskn0J9LEd2fxPczPj7-fg" name="getter">
> <ownedAttribute xmi:id="_bWOX8p9LEd2fxPczPj7-fg"
> name="base_Operation" association="_bWOX8J9LEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_ezz5IJ9LEd2fxPczPj7-fg" name="ocl_impl">
> <ownedAttribute xmi:id="_h4WoMp9LEd2fxPczPj7-fg"
> name="base_Operation" association="_h4WoMJ9LEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_k2f0UJ9LEd2fxPczPj7-fg" name="ocl_sql">
> <ownedAttribute xmi:id="_mnvvgp9LEd2fxPczPj7-fg"
> name="base_Operation" association="_mnvvgJ9LEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_pp548J9LEd2fxPczPj7-fg" name="PK_BUSINESS_OBJECT">
> <ownedAttribute xmi:id="_rfxOYp9LEd2fxPczPj7-fg"
> name="base_Package" association="_rfxOYJ9LEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_zcWDYJ9LEd2fxPczPj7-fg" name="PK_BUSINESS">
> <ownedAttribute xmi:id="_Cy7y4p9MEd2fxPczPj7-fg"
> name="base_Package" association="_Cy7y4J9MEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Package"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_Hiw_EJ9MEd2fxPczPj7-fg" name="setter">
> <ownedAttribute xmi:id="_MoNO4p9MEd2fxPczPj7-fg"
> name="base_Operation" association="_MoNO4J9MEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Stereotype"
> xmi:id="_PsKIEJ9MEd2fxPczPj7-fg" name="specific_impl">
> <ownedAttribute xmi:id="_SCNZcp9MEd2fxPczPj7-fg"
> name="base_Operation" association="_SCNZcJ9MEd2fxPczPj7-fg">
> <type xmi:type="uml:Class"
> href="pathmap://UML_METAMODELS/UML.metamodel.uml#Operation"/>
> </ownedAttribute>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_9M-FYJ9KEd2fxPczPj7-fg" name="Operation_attach"
> memberEnd="_9M-FYZ9KEd2fxPczPj7-fg _9M-FYp9KEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_9M-FYZ9KEd2fxPczPj7-fg" name="extension_attach"
> type="_455tsJ9KEd2fxPczPj7-fg" aggregation="composite"
> association="_9M-FYJ9KEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_Db4esJ9LEd2fxPczPj7-fg" name="Operation_detach"
> memberEnd="_Db4esZ9LEd2fxPczPj7-fg _Db4esp9LEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_Db4esZ9LEd2fxPczPj7-fg" name="extension_detach"
> type="_Ayc-UJ9LEd2fxPczPj7-fg" aggregation="composite"
> association="_Db4esJ9LEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_IxtT4J9LEd2fxPczPj7-fg" name="Operation_formula"
> memberEnd="_IxtT4Z9LEd2fxPczPj7-fg _IxtT4p9LEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_IxtT4Z9LEd2fxPczPj7-fg" name="extension_formula"
> type="_GpqpUJ9LEd2fxPczPj7-fg" aggregation="composite"
> association="_IxtT4J9LEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_bWOX8J9LEd2fxPczPj7-fg" name="Operation_getter"
> memberEnd="_bWOX8Z9LEd2fxPczPj7-fg _bWOX8p9LEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_bWOX8Z9LEd2fxPczPj7-fg" name="extension_getter"
> type="_Vskn0J9LEd2fxPczPj7-fg" aggregation="composite"
> association="_bWOX8J9LEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_h4WoMJ9LEd2fxPczPj7-fg" name="Operation_ocl_impl"
> memberEnd="_h4WoMZ9LEd2fxPczPj7-fg _h4WoMp9LEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_h4WoMZ9LEd2fxPczPj7-fg" name="extension_ocl_impl"
> type="_ezz5IJ9LEd2fxPczPj7-fg" aggregation="composite"
> association="_h4WoMJ9LEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_mnvvgJ9LEd2fxPczPj7-fg" name="Operation_ocl_sql"
> memberEnd="_mnvvgZ9LEd2fxPczPj7-fg _mnvvgp9LEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_mnvvgZ9LEd2fxPczPj7-fg" name="extension_ocl_sql"
> type="_k2f0UJ9LEd2fxPczPj7-fg" aggregation="composite"
> association="_mnvvgJ9LEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_rfxOYJ9LEd2fxPczPj7-fg" name="Package_PK_BUSINESS_OBJECT"
> memberEnd="_rfxOYZ9LEd2fxPczPj7-fg _rfxOYp9LEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_rfxOYZ9LEd2fxPczPj7-fg" name="extension_PK_BUSINESS_OBJECT"
> type="_pp548J9LEd2fxPczPj7-fg" aggregation="composite"
> association="_rfxOYJ9LEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_Cy7y4J9MEd2fxPczPj7-fg" name="Package_PK_BUSINESS"
> memberEnd="_Cy7y4Z9MEd2fxPczPj7-fg _Cy7y4p9MEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_Cy7y4Z9MEd2fxPczPj7-fg" name="extension_PK_BUSINESS"
> type="_zcWDYJ9LEd2fxPczPj7-fg" aggregation="composite"
> association="_Cy7y4J9MEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_MoNO4J9MEd2fxPczPj7-fg" name="Operation_setter"
> memberEnd="_MoNO4Z9MEd2fxPczPj7-fg _MoNO4p9MEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_MoNO4Z9MEd2fxPczPj7-fg" name="extension_setter"
> type="_Hiw_EJ9MEd2fxPczPj7-fg" aggregation="composite"
> association="_MoNO4J9MEd2fxPczPj7-fg"/>
> </packagedElement>
> <packagedElement xmi:type="uml:Extension"
> xmi:id="_SCNZcJ9MEd2fxPczPj7-fg" name="Operation_specific_impl"
> memberEnd="_SCNZcZ9MEd2fxPczPj7-fg _SCNZcp9MEd2fxPczPj7-fg">
> <ownedEnd xmi:type="uml:ExtensionEnd"
> xmi:id="_SCNZcZ9MEd2fxPczPj7-fg" name="extension_specific_impl"
> type="_PsKIEJ9MEd2fxPczPj7-fg" aggregation="composite"
> association="_SCNZcJ9MEd2fxPczPj7-fg"/>
> </packagedElement>
> <profileApplication xmi:id="_pjdvMJ9KEd2fxPczPj7-fg">
> <eAnnotations xmi:id="_pjdvMZ9KEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8R c_NA"/>
> </eAnnotations>
> <appliedProfile href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
> </profileApplication>
> <profileApplication xmi:id="_pjngMJ9KEd2fxPczPj7-fg">
> <eAnnotations xmi:id="_pjngMZ9KEd2fxPczPj7-fg"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
>
> </eAnnotations>
> <appliedProfile
> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
> </profileApplication>
> </uml:Profile>
> <Ecore:EPackage xmi:id="_qx2N4J9KEd2fxPczPj7-fg"
> base_Package="_boProfile" packageName="bo" nsPrefix="bo"
> nsURI="http://www.bluage.com/profiles/bo" prefix="bo"/>
> </xmi:XMI>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Two features named in the model by the same name [message #483691 is a reply to message #483411] Wed, 02 September 2009 15:19 Go to previous messageGo to next message
ETTAIB  is currently offline ETTAIB Friend
Messages: 4
Registered: July 2009
Junior Member
Hi Ed,
Thanks for the response


you're right, the other tab is still available, and after generating the
code model, I realized the source of the error, in my ecore model
referencing the profiles, there is a class inheriting other classes having
the same feature' name, and this generates attribute dupplication in my
class... and this is logical.


I'm trying now to figure out a new solution for my problem.

Thank you very much.

M.ETTAIB
Re: Two features named in the model by the same name [message #485509 is a reply to message #483411] Sat, 12 September 2009 09:59 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Ed Merks schrieb:
> Comments below.
>
> ETTAIB wrote:
>> Hi Ed and Christian,
>>
>> Indeed, I can generate the genmodel enspite of the errors, but this
>> genmodel could not be opened with EMF Generator, nor generate the code
>> model.
> It's a common mistake to assume it can't be opened because it opens to
> the error tab. The other tabs are still available.
>>

Should we probably think about an alternate way to display this
information because many people don't seem to recognize that the model
is still displayed?

Tom
Previous Topic:emfforms incubator: When should an editor be an IResourceChangeListener
Next Topic:EMF Databinding without generated models?
Goto Forum:
  


Current Time: Fri Mar 29 15:19:20 GMT 2024

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

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

Back to the top