|
|
Re: Is there anybody who use Papyrus UML? [message #469041 is a reply to message #469039] |
Fri, 19 December 2008 15:55 |
Rafael Chaves 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 #575457 is a reply to message #469039] |
Fri, 19 December 2008 15:55 |
Rafael Chaves 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
>>>
>>>
>>>
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02621 seconds