Setting a value for a variable from the type NMTOKENS [message #1508356] |
Fri, 12 December 2014 10:38 |
Fadi J 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
|
|
|
Powered by
FUDForum. Page generated in 0.01725 seconds