Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL: Method-call issues
EVL: Method-call issues [message #1717789] Wed, 16 December 2015 17:14 Go to next message
Alireza Rouhi is currently offline Alireza RouhiFriend
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

Re: EVL: Method-call issues [message #1717797 is a reply to message #1717789] Wed, 16 December 2015 19:04 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

I suspect that c.name evaluates to null. You should probably check that c.name.isDefined() first.

Cheers,
Dimitris
Re: EVL: Method-call issues [message #1717808 is a reply to message #1717797] Wed, 16 December 2015 20:29 Go to previous message
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 148
Registered: December 2015
Senior Member
Dear Dimitris,

Your suggestion solved the mentioned problem.
Thanks a million.

Kind regards,
Alireza
Previous Topic:Problem with plugin and egl files
Next Topic:EVL: Commonality in the pre-blocks of the contexts
Goto Forum:
  


Current Time: Tue Apr 23 12:19:57 GMT 2024

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

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

Back to the top