Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Type resolution issue (Xtend)
Type resolution issue (Xtend) [message #550975] Wed, 04 August 2010 18:08
Dominic Renaud is currently offline Dominic RenaudFriend
Messages: 16
Registered: July 2009
Junior Member
I'm trying to set up a Xtend file to handle some model reading operations, and I am getting an odd set of errors. Here's the code in question:
List[bpmn::NamedBpmnObject] dereferenceElement(bpmn::BpmnDiagram container, String reference):
if (reference.compareTo('') == 0) then
{container}
else
let splitString = reference.split('::') :
container.pools.select(pool|pool.name.matches (splitString.first())).findElementInPool(splitString.remove( splitString.first()).toList());

It was essentially copied and modified from AMPLE's VML4Arch project, in case anyone finds it familiar.

Anyway, the issue is that the "pool.name.matches (splitstring.first())" call gives the error: For that matter, every instance of "matches" has the following error:

"Couldn't find operation 'matches (String)' for type 'type::String'"

I'm using Eclipse 3.5, OAW 4.3.1, and if it matters, Epsilon 0.8.9

Thanks in Advance

[Updated on: Fri, 06 August 2010 21:06]

Report message to a moderator

Previous Topic:[Xpand] Postprocessor for handling Java imports
Next Topic:Changing outlet path from within Xpand or Xtend
Goto Forum:
  


Current Time: Thu Apr 25 19:56:53 GMT 2024

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

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

Back to the top