Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 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
java.lang.String.

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?

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


Current Time: Tue Apr 23 07:46:51 GMT 2024

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

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

Back to the top