EVL: Method-call issues [message #1717789] |
Wed, 16 December 2015 17:14 |
Alireza Rouhi Messages: 148 Registered: December 2015 |
Senior Member |
|
|
Hi,
I want to check the validity of a given model's classifier names according to the simple and familiar rule <Classifier name's first letter must start with an upper-case letter>!
However, calling the following operation raises the error message Method 'firstToUpperCase' not found:
-- This operation checks to see whether the owned elements' names
-- of the given model starts with an upper-case letter or not
operation Model allClassifierNamesStartWithUpperCase () : Boolean {
for (c in self.ownedElements) {
if (c.name.firstToUpperCase() = c.name)
{
return false;
}
}
return true;
}
Kind regards,
Alireza
[Updated on: Wed, 16 December 2015 17:14] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03107 seconds