|
|
Re: Getting type of Property by reflection [message #61958 is a reply to message #61863] |
Mon, 08 September 2008 18:26 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Stefan,
Sorry for the vacation delay ... well, not really ;-)
UMLReflection::getOCLType(Object) returns the type of an attribute or an
operation. It does, actually, coerce the metamodel-specific primitive
types to their corresponding OCL pre-defined types (a subject you know
well), so hopefully that's not a problem for you.
cW
Stefan Schulze wrote:
> Hi...
>
> is it possible to get the type of a property without knowing it's concrete
> class? I expected something like UMLReflection::getType(P):C, but I found
> nothing.
>
> Stefan
>
>
|
|
|
Re: Getting type of Property by reflection [message #61982 is a reply to message #61886] |
Mon, 08 September 2008 18:27 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Stefan,
No, there is no such facility. Whether a property is read-only or not
is uninteresting to OCL, as it cannot modify the state of the system,
anyway.
Cheers,
Christian
Stefan Schulze wrote:
> Hi again...
>
> Same for UMLReflection::isReadOnly(P):Boolean.
> Is there any alternative to this?
>
> Stefan
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02675 seconds