You know that a version of the TU Dresden OCL toolkit is already integrated
with ArgoUML, right? What is it that you are working on?
> Does anyone know how I can get the return type of a BehavioralFeature
> model element? (org.omg.uml.foundation.core.BehavioralFeature)
I'm not sure I understand the question. Are asking how the return value is
modeled for something which is modelled as Method or Operation? Is so, you
want to look for an associated Parameter with a 'kind' attribute of
'return'.
In ArgoUML terms, that's
Model.getFacade().getKind(modelElement).equals(
Model.getDirectionKind().getReturnParameter())
or
Model.getFacade().isReturn(modelElement)
When you find the right parameter, you can find it's type by using
getType(). Model.getFacade().getParameters(modelElement) will get you the
list of parameters to iterate through looking for the return parameter.
Does that help? If not, please try restating your question.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]