|EnumLiteralDeclaration: problem getting the values of the reference [message #1153240]
||Thu, 24 October 2013 13:21
| d 627
Registered: March 2013
I am kind of new in xtext, but I have been working in my project with some problems. One of this concerns the values of the references on EnumLiteralDeclaration. In theory there are two features supported: enumliteral and literal.
In my procedure when arrive an object of the EnumLiteralDeclaration kind, I am printing the two features inside the object just to try to understand what is happening.
As output I am having this:
quantity of references: 2
The references are: [org.eclipse.emf.ecore.impl.EReferenceImpl@93a061 (name: enumLiteral) (ordered: true, unique: true, lowerBound: 0, upperBound: 1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (containment: false, resolveProxies: true),
org.eclipse.emf.ecore.impl.EReferenceImpl@d7e37c (name: literal) (ordered: true, unique: true, lowerBound: 0, upperBound: 1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (containment: true, resolveProxies: false)]
- The value of literal is null.
The object is null
As you can see I am having the value of just one reference (literal) and not the value of enumLiteral even when I can see it with some values in its attributes. Instead of that I having a null object.
(Once again I am kind of new in xtext so I am also ignorant in some aspects, I hope you can understand that and can give a respectful answer).
Thanks a lot.
[Updated on: Thu, 24 October 2013 14:57]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03750 seconds