[ATL]Problem setting element value [message #496102] |
Sun, 08 November 2009 11:41  |
Eclipse User |
|
|
|
I have a problem setting a value of the element name in my output model. Metamodel looks something like this:
Class:
LocationType
Atribute:
x:AnySimpleType
y:AnySimpleType
name : NameType
Class:
NameType
Atribute:
mixed: EFeatureMapEntry
x:AnySimpleType
y:AnySimpleType
The output xml code should look like this:
<name x="2" y ="3">MyName</name>
I have no problem setting x and y, but the problem is value: MyName
With this code:
name_type: MMB!NameType(
x <- '5',
y <- '1'
)
I get <name x="2" y ="3"/> , but i cant get desired code, if I try to write something like:
location_type: MMB!LocationType (
name <- 'MyName'
)
I get an error: java.lang.String cannot be cast to org.eclipse.emf.ecore.InternalEObject
|
|
|
|
Powered by
FUDForum. Page generated in 0.03178 seconds