[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.ocl] Re: OCL query to find classes
|
As suggested in the UML User Group @ google:
Well, both a look into the UML2 spec and the OCL spec might be very
helpful and recommended...
Since StateMachines, UseCases, Components etc. are all subclasses of
UML::Class, you need a more detailed OCL concept like
oclTypeOf(object) and oclKindOf(object). The first one checks, whether
self is exactly the type of the parameter, the latter one checks if self
is conform (a subclass) to the parameter#s type.
good luck from this starting point!
pkojo schrieb:
Hi,
I am new to OCL, I am using OCL interpreter to find classes in a model
(EMF XMI model) at M2 layer, using following query.
Class.allInstances()
when I execute this query I found Classes like Statemachine, Usecase,
Node and so on. basically I want to find only classes in a model without
classes like statemachine, usease or any other modeling element. Can any
body help me in this regard?
Thanks,
pkojo