Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Ecore mapping of simple types
Ecore mapping of simple types [message #577497] Wed, 10 September 2003 15:32
Eclipse UserFriend
Originally posted by:

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?

Previous Topic:help with ref attribute
Next Topic:Ecore mapping discussion
Goto Forum:

Current Time: Tue Aug 04 00:24:34 GMT 2020

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

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

Back to the top