Page 1 of 1

Reading stereotype constraints from custom profile

PostPosted: Sat Jul 07, 2007 3:52 pm
by Valdemar Blazevic
Hello,

I created a new profile(module) with Stereotypes. I also specified
constraints for some of them (name=specification pairs). How can I access
this constraint information using OpenAPI? Please provide some code
sample(s).

Thank you in advance.

Regards,
Valdemar

Re: Reading stereotype constraints from custom profile

PostPosted: Mon Jul 09, 2007 12:45 am
by Martynas Lelevicius
Hello,

Use this:
String name = constraint.getName();
String specification = ModelHelper.getValueString((ValueSpecification)
constraint.getSpecification());

Regards,
--
Martynas Lelevicius
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
E-mail : marte
WWW: http://www.magicdraw.com