|Ecore mapping of simple types [message #577497]
||Wed, 10 September 2003 15:32
Originally posted by: ihc.sas-glas.mottmac.com|
I'm having some trouble relating what the new "EMF" book says with the
behaviour I see from reading and executing the code.
For XML Schema simple types that are not included in the table on p.140
(or derived from these), the book says we should get an EDataType with
name equal to the XML Schema type, and instanceClassName of
This would be fine for me. But in tracing through for an xsd:attribute of
type xsd:integer, unless I am looking in the wrong place I am getting a
plain EString - no trace of the "integer" name.
I'm looking at XSDEcoreBuilder.getEClassifier(XSDTypeDefinition, boolean)
which, as expected, fails to find a direct mapping for "integer", so it
looks for a mapping for the base type "decimal", which also fails as
expected, and so it assigns an EString with name = "EString". As far as I
can see the name is never set to "integer" as the text on p.140 suggests.
Which is wrong - me, the book or the code?
Powered by FUDForum
. Page generated in 0.10726 seconds