Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Setting a value for a variable from the type NMTOKENS
Setting a value for a variable from the type NMTOKENS [message #1508356] Fri, 12 December 2014 10:38
Fadi J is currently offline Fadi JFriend
Messages: 11
Registered: June 2013
Junior Member
Hi,
I'm using a meta-model imported from XML schema file and it contains some variables from the xml type NMTOKENS
for example the variable s in the following rule

rule test_rule {
from
v_left : m!A
to
v_right : m!B (
s <- 'test'
)
}

but I don't know how to set a value for this variable
using String throws an exception

org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class java.lang.String' must be of type 'interface java.util.List'

I also tried s <- Sequence {'test'} but it throws the same exception
Does any one have an idea how to do that.
thanks.

[Updated on: Fri, 12 December 2014 14:49]

Report message to a moderator

Previous Topic:Fwd: Empty target model
Next Topic:How to create n target-object from one source object
Goto Forum:
  


Current Time: Tue Apr 30 12:08:19 GMT 2024

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

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

Back to the top