Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Re: Is there anybody who use Papyrus UML?
Re: Is there anybody who use Papyrus UML? [message #469036] Thu, 18 December 2008 20:49 Go to next message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
The Papyrus UML has its own newsgroup, which I copied this message to.

Xiaogang Li wrote:
> Is there anybody who use Papyrus UML?
> I don't know how to create a final instance domain in a class by using class
> diagram.
>
> I use class diagram to create a class. I know how to create a class like
> this:
>
> class Employee
> {
> private String name;
> }
>
> but I don't know how to create a class like this:
>
> class Employee
> {
> private final String name;
> }
>
> Thank you in advance.
> Xiaogang Li
>
>
>
>
Re: Is there anybody who use Papyrus UML? [message #469039 is a reply to message #469036] Fri, 19 December 2008 14:22 Go to previous messageGo to next message
Sebastien Gerard is currently offline Sebastien GerardFriend
Messages: 121
Registered: July 2009
Senior Member
Hi,

in UML2, I think that this concept is supported by the isLeal attribute of a
RedefinableElement. So for a Class (which is RedefinableElement) in Papyrus,
you just need to check the check box of the isLeaf properties as shown in
attached picture.



Regards... S
  • Attachment: LeafClass.png
    (Size: 27.59KB, Downloaded 203 times)
Re: Is there anybody who use Papyrus UML? [message #469041 is a reply to message #469039] Fri, 19 December 2008 15:55 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Actually, I believe that for Java's final *fields*, it would correspond
to StructuralFeature.isReadOnly ("whether the feature's value may be
modified by a client").

RedefinableElement.isLeaf ("whether it is possible to further specialize
a RedefinableElement") seems to correspond to Java's final classes or
methods.

So I guess the question is whether Papyrus exposes isReadOnly for
structural features.

Rafael

Sébastien Gérard wrote:
> Hi,
>
> in UML2, I think that this concept is supported by the isLeal attribute of a
> RedefinableElement. So for a Class (which is RedefinableElement) in Papyrus,
> you just need to check the check box of the isLeaf properties as shown in
> attached picture.
>
>
>
> Regards... Sébastien.
>
>
> Dr. Sébastien Gérard
>
> Head of MDD for DRES research project
>
> CEA LIST/LISE
>
> Boîte courrier 65, GIF SUR YVETTE
>
> CEDEX, F-91191 France
>
> Phone/fax : +33 1 69 08 58 24 / 83 95
>
>
>
> Leader of the Eclipse Component Papyrus (The UML2 Graphical Modeler):
> www.papyrusuml.org
>
> http://www.eclipse.org/modeling/mdt/?project=papyrus
>
>
>
> Before printing, think about the environment
>
>
>
> "Rafael Chaves" <rafael@abstratt.com> a écrit dans le message de news:
> gied0c$bp4$1@build.eclipse.org...
>> The Papyrus UML has its own newsgroup, which I copied this message to.
>>
>> Xiaogang Li wrote:
>>> Is there anybody who use Papyrus UML?
>>> I don't know how to create a final instance domain in a class by using
>>> class
>>> diagram.
>>>
>>> I use class diagram to create a class. I know how to create a class like
>>> this:
>>>
>>> class Employee
>>> {
>>> private String name;
>>> }
>>>
>>> but I don't know how to create a class like this:
>>>
>>> class Employee
>>> {
>>> private final String name;
>>> }
>>>
>>> Thank you in advance.
>>> Xiaogang Li
>>>
>>>
>>>
>>>
>
>
Re: Is there anybody who use Papyrus UML? [message #575420 is a reply to message #469036] Fri, 19 December 2008 14:22 Go to previous message
Sebastien Gerard is currently offline Sebastien GerardFriend
Messages: 121
Registered: July 2009
Senior Member
Hi,

in UML2, I think that this concept is supported by the isLeal attribute of a
RedefinableElement. So for a Class (which is RedefinableElement) in Papyrus,
you just need to check the check box of the isLeaf properties as shown in
attached picture.



Regards... S
  • Attachment: LeafClass.png
    (Size: 27.59KB, Downloaded 159 times)
Re: Is there anybody who use Papyrus UML? [message #575457 is a reply to message #469039] Fri, 19 December 2008 15:55 Go to previous message
Rafael Chaves is currently offline Rafael ChavesFriend
Messages: 362
Registered: July 2009
Senior Member
Actually, I believe that for Java's final *fields*, it would correspond
to StructuralFeature.isReadOnly ("whether the feature's value may be
modified by a client").

RedefinableElement.isLeaf ("whether it is possible to further specialize
a RedefinableElement") seems to correspond to Java's final classes or
methods.

So I guess the question is whether Papyrus exposes isReadOnly for
structural features.

Rafael

Sébastien Gérard wrote:
> Hi,
>
> in UML2, I think that this concept is supported by the isLeal attribute of a
> RedefinableElement. So for a Class (which is RedefinableElement) in Papyrus,
> you just need to check the check box of the isLeaf properties as shown in
> attached picture.
>
>
>
> Regards... Sébastien.
>
>
> Dr. Sébastien Gérard
>
> Head of MDD for DRES research project
>
> CEA LIST/LISE
>
> Boîte courrier 65, GIF SUR YVETTE
>
> CEDEX, F-91191 France
>
> Phone/fax : +33 1 69 08 58 24 / 83 95
>
>
>
> Leader of the Eclipse Component Papyrus (The UML2 Graphical Modeler):
> www.papyrusuml.org
>
> http://www.eclipse.org/modeling/mdt/?project=papyrus
>
>
>
> Before printing, think about the environment
>
>
>
> "Rafael Chaves" <rafael@abstratt.com> a écrit dans le message de news:
> gied0c$bp4$1@build.eclipse.org...
>> The Papyrus UML has its own newsgroup, which I copied this message to.
>>
>> Xiaogang Li wrote:
>>> Is there anybody who use Papyrus UML?
>>> I don't know how to create a final instance domain in a class by using
>>> class
>>> diagram.
>>>
>>> I use class diagram to create a class. I know how to create a class like
>>> this:
>>>
>>> class Employee
>>> {
>>> private String name;
>>> }
>>>
>>> but I don't know how to create a class like this:
>>>
>>> class Employee
>>> {
>>> private final String name;
>>> }
>>>
>>> Thank you in advance.
>>> Xiaogang Li
>>>
>>>
>>>
>>>
>
>
Previous Topic:Package merge
Next Topic:XMI for InterfaceRealization
Goto Forum:
  


Current Time: Tue Aug 11 20:02:03 GMT 2020

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

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

Back to the top