what's the difference between UMLFactory.eINSTANCE.createClass() and
org.eclipse.uml2.uml.Model::createOwnedClass() ? Why they both exist?
Same question can be related to UMLFactory.eINSTANCE.createAssociation()
and org.eclipse.uml2.uml.Class::createAssociation()
XXXFactory.eINSTANCE.createYYY() is the standard EMF functionality to
create a naked YYY.
org.eclipse.uml2.uml.Model::createOwnedClass() has some context, so I
preume it establishes the result as an ownedClass.
Regards
Ed Willink
On 28/11/2011 11:56, Emil Huseynli wrote:
> Hi,
>
> what's the difference between UMLFactory.eINSTANCE.createClass() and
> org.eclipse.uml2.uml.Model::createOwnedClass() ? Why they both exist?
> Same question can be related to
> UMLFactory.eINSTANCE.createAssociation() and
> org.eclipse.uml2.uml.Class::createAssociation()
>
> Thanks in advance
Yes. In fact you can look at the implementation to see what it does, so
no presumption is required...
On 28/11/2011 7:54 PM, Ed Willink wrote:
> Hi
>
> XXXFactory.eINSTANCE.createYYY() is the standard EMF functionality to
> create a naked YYY.
>
> org.eclipse.uml2.uml.Model::createOwnedClass() has some context, so I
> preume it establishes the result as an ownedClass.
>
> Regards
>
> Ed Willink
>
> On 28/11/2011 11:56, Emil Huseynli wrote:
>> Hi,
>>
>> what's the difference between UMLFactory.eINSTANCE.createClass() and
>> org.eclipse.uml2.uml.Model::createOwnedClass() ? Why they both exist?
>> Same question can be related to
>> UMLFactory.eINSTANCE.createAssociation() and
>> org.eclipse.uml2.uml.Class::createAssociation()
>>
>> Thanks in advance
>