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:

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
// 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 ?

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

Current Time: Fri Aug 12 16:20:46 GMT 2022

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

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

Back to the top