Home » Modeling » UML2 » How get actual class attributes from uml class
| | | | | |
Re: How to get actual class attributes from uml class [message #473774 is a reply to message #473650] |
Fri, 06 July 2007 09:01 |
Lasith Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hi Kenn,
Thanks for the reply.
But I can't understand the actual usage of isAttribute(Property) method.
Regards,
- Lasith.
Kenn Hussey wrote:
> Lasith,
> There is currently no convenient method for obtaining the attributes which
> are not also association ends. Feel free to submit an enhancement request in
> Bugzilla.
> The isAttribute(Property) method requires an argument because the OCL query
> from which it is generated was poorly defined in the UML specification:
> [4] The query isAttribute() is true if the Property is defined as an
> attribute of some classifier
> context Property::isAttribute(p : Property) : Boolean
> post: result = Classifier.allInstances->exists(c|
> c.attribute->includes(p))
> We'll open an issue with the OMG.
> Kenn
> "lasith" <lasith100@yahoo.com> wrote in message
> news:b035f84b29a9c103e799adb34ebacf4a$1@www.eclipse.org...
>> James Bruck wrote:
>>
>>> Hi uml user,
>>
>>> I think Francis is right, his suggestion seems to be the only way to
>>> figure
>>> out what you want.
>>> There does seem to be something wrong with Property#isAttribute(p) ...
>>> I'll
>>> double check that one.
>>
>>> - James.
>>
>>
>>> "uml user" <lasith100@yahoo.com> wrote in message
>>> news:6e5a64973b2c7e2443c1d3080ad6707c$1@www.eclipse.org...
>>>> Hi,
>>>>
>>>> Thanks Francis,
>>>> But I think there must be a way to get those class attributes more
>>>> easily
>>>> (as you mentioned in your mail).
>>>>
>>>> Regards.
>>>>
>> Hi James,
>>
>> Thanks for your reply,
>> If you find something other way please let me know.
>>
>> Regards,
>> - Lasith
>>
|
|
|
Re: How to get actual class attributes from uml class [message #473877 is a reply to message #473774] |
Fri, 06 July 2007 13:01 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Lasith,
I'm not sure the method has any practical use either, but it's in the
specification, so we need to include it in the API. One thing the method
will tell you is whether the property is owned by a classifier (as opposed
to a property that has no owner, or is perhaps a qualifier for another
property).
Kenn
"lasith" <lasith100@yahoo.com> wrote in message
news:5cc34316f548e0958d58ffacd4852620$1@www.eclipse.org...
> Hi Kenn,
>
> Thanks for the reply.
> But I can't understand the actual usage of isAttribute(Property) method.
>
> Regards,
> - Lasith.
>
> Kenn Hussey wrote:
>
>> Lasith,
>
>> There is currently no convenient method for obtaining the attributes
>> which are not also association ends. Feel free to submit an enhancement
>> request in Bugzilla.
>
>> The isAttribute(Property) method requires an argument because the OCL
>> query from which it is generated was poorly defined in the UML
>> specification:
>
>> [4] The query isAttribute() is true if the Property is defined as an
>> attribute of some classifier
>> context Property::isAttribute(p : Property) : Boolean
>> post: result = Classifier.allInstances->exists(c|
>> c.attribute->includes(p))
>
>> We'll open an issue with the OMG.
>
>> Kenn
>
>> "lasith" <lasith100@yahoo.com> wrote in message
>> news:b035f84b29a9c103e799adb34ebacf4a$1@www.eclipse.org...
>>> James Bruck wrote:
>>>
>>>> Hi uml user,
>>>
>>>> I think Francis is right, his suggestion seems to be the only way to
>>>> figure
>>>> out what you want.
>>>> There does seem to be something wrong with Property#isAttribute(p) ...
>>>> I'll
>>>> double check that one.
>>>
>>>> - James.
>>>
>>>
>>>> "uml user" <lasith100@yahoo.com> wrote in message
>>>> news:6e5a64973b2c7e2443c1d3080ad6707c$1@www.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> Thanks Francis,
>>>>> But I think there must be a way to get those class attributes more
>>>>> easily
>>>>> (as you mentioned in your mail).
>>>>>
>>>>> Regards.
>>>>>
>>> Hi James,
>>>
>>> Thanks for your reply,
>>> If you find something other way please let me know.
>>>
>>> Regards,
>>> - Lasith
>>>
>
|
|
| | | | | |
Re: How to get actual class attributes from uml class [message #622847 is a reply to message #473650] |
Fri, 06 July 2007 09:01 |
Lasith Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hi Kenn,
Thanks for the reply.
But I can't understand the actual usage of isAttribute(Property) method.
Regards,
- Lasith.
Kenn Hussey wrote:
> Lasith,
> There is currently no convenient method for obtaining the attributes which
> are not also association ends. Feel free to submit an enhancement request in
> Bugzilla.
> The isAttribute(Property) method requires an argument because the OCL query
> from which it is generated was poorly defined in the UML specification:
> [4] The query isAttribute() is true if the Property is defined as an
> attribute of some classifier
> context Property::isAttribute(p : Property) : Boolean
> post: result = Classifier.allInstances->exists(c|
> c.attribute->includes(p))
> We'll open an issue with the OMG.
> Kenn
> "lasith" <lasith100@yahoo.com> wrote in message
> news:b035f84b29a9c103e799adb34ebacf4a$1@www.eclipse.org...
>> James Bruck wrote:
>>
>>> Hi uml user,
>>
>>> I think Francis is right, his suggestion seems to be the only way to
>>> figure
>>> out what you want.
>>> There does seem to be something wrong with Property#isAttribute(p) ...
>>> I'll
>>> double check that one.
>>
>>> - James.
>>
>>
>>> "uml user" <lasith100@yahoo.com> wrote in message
>>> news:6e5a64973b2c7e2443c1d3080ad6707c$1@www.eclipse.org...
>>>> Hi,
>>>>
>>>> Thanks Francis,
>>>> But I think there must be a way to get those class attributes more
>>>> easily
>>>> (as you mentioned in your mail).
>>>>
>>>> Regards.
>>>>
>> Hi James,
>>
>> Thanks for your reply,
>> If you find something other way please let me know.
>>
>> Regards,
>> - Lasith
>>
|
|
|
Re: How to get actual class attributes from uml class [message #622854 is a reply to message #473774] |
Fri, 06 July 2007 13:01 |
Kenn Hussey Messages: 1620 Registered: July 2009 |
Senior Member |
|
|
Lasith,
I'm not sure the method has any practical use either, but it's in the
specification, so we need to include it in the API. One thing the method
will tell you is whether the property is owned by a classifier (as opposed
to a property that has no owner, or is perhaps a qualifier for another
property).
Kenn
"lasith" <lasith100@yahoo.com> wrote in message
news:5cc34316f548e0958d58ffacd4852620$1@www.eclipse.org...
> Hi Kenn,
>
> Thanks for the reply.
> But I can't understand the actual usage of isAttribute(Property) method.
>
> Regards,
> - Lasith.
>
> Kenn Hussey wrote:
>
>> Lasith,
>
>> There is currently no convenient method for obtaining the attributes
>> which are not also association ends. Feel free to submit an enhancement
>> request in Bugzilla.
>
>> The isAttribute(Property) method requires an argument because the OCL
>> query from which it is generated was poorly defined in the UML
>> specification:
>
>> [4] The query isAttribute() is true if the Property is defined as an
>> attribute of some classifier
>> context Property::isAttribute(p : Property) : Boolean
>> post: result = Classifier.allInstances->exists(c|
>> c.attribute->includes(p))
>
>> We'll open an issue with the OMG.
>
>> Kenn
>
>> "lasith" <lasith100@yahoo.com> wrote in message
>> news:b035f84b29a9c103e799adb34ebacf4a$1@www.eclipse.org...
>>> James Bruck wrote:
>>>
>>>> Hi uml user,
>>>
>>>> I think Francis is right, his suggestion seems to be the only way to
>>>> figure
>>>> out what you want.
>>>> There does seem to be something wrong with Property#isAttribute(p) ...
>>>> I'll
>>>> double check that one.
>>>
>>>> - James.
>>>
>>>
>>>> "uml user" <lasith100@yahoo.com> wrote in message
>>>> news:6e5a64973b2c7e2443c1d3080ad6707c$1@www.eclipse.org...
>>>>> Hi,
>>>>>
>>>>> Thanks Francis,
>>>>> But I think there must be a way to get those class attributes more
>>>>> easily
>>>>> (as you mentioned in your mail).
>>>>>
>>>>> Regards.
>>>>>
>>> Hi James,
>>>
>>> Thanks for your reply,
>>> If you find something other way please let me know.
>>>
>>> Regards,
>>> - Lasith
>>>
>
|
|
|
Goto Forum:
Current Time: Thu Apr 25 11:58:59 GMT 2024
Powered by FUDForum. Page generated in 0.04520 seconds
|