Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » openArchitectureWare » Type resolution issue
Type resolution issue [message #547835] Mon, 19 July 2010 18:07
Dominic Renaud is currently offline Dominic Renaud
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: Tue, 20 July 2010 22:07]

Report message to a moderator

Previous Topic:Re: Test
Next Topic:Type resolution issue
Goto Forum:
  


Current Time: Fri Oct 24 08:31:49 GMT 2014

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

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