Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Illegal Argument setting a stereotype property
Illegal Argument setting a stereotype property [message #626229] Mon, 17 March 2008 20:09
Eclipse UserFriend
Originally posted by: flavio.p.duarte.gmail.com

Hi,
it has been a long time since the last time a posted a message here, but
I'm still struggling with profiles and stereotypes.
My newest problem is related to set a value for a stereotype property,
more specificaly, the PAdemand property of the PAstep stereotype
conetained in the UML SPT profile. I used the PAschdPolicy property of
PAhost stereotype without problem, but the PAdemand is triggering an
IllegalArgumentException whenever I try to use setValue method. My code is
basicaly:
// st is PAstep
void setProperties( NamedElement elem, Stereotype st ) {
elem.applyStereotype( st );
String key = "PAdemand";
String value = "('assm','mean',(0.8,'s'))"
elem.setValue( st, key, value );
}
I took a look at the profile.uml file and the PAdemand is defined as a
string, so the contents of the variable value should not matter (I think).

Does anyone have any idea on how to discover what's going on ?

thanks,
Flávio
Previous Topic:set feature of stereotype
Next Topic:Property-Type from a inter-moded reference can't be correctly resolved?
Goto Forum:
  


Current Time: Tue Apr 16 20:47:16 GMT 2024

Powered by FUDForum. Page generated in 2.05752 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top