Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] Types support



Boris,

In EMF 1.x only a small set of xsd built-in datatypes were supported (for
example, xsd:int mapped to Java int, but xsd:integer did not). All other
schema types mapped to String. The complete table of supported types is on
page 140 of the EMF book.

EMF 2.0 now supports all the schema build-in datatypes. I believe
xsd:integer maps to Java BigInteger.

Frank.

P.S. In the future please ask these kinds of user questions on the emf
newsgroup instead of this mailing list. Thanks.





                                                                                                                                          
                      "Lublinsky,Boris                                                                                                    
                      S."                      To:       <emf-dev@xxxxxxxxxxx>                                                            
                      <Boris.Lublinsky@        cc:                                                                                        
                      CNA.com>                 Subject:  [emf-dev] Types support                                                          
                      Sent by:                                                                                                            
                      emf-dev-admin@ecl                                                                                                   
                      ipse.org                                                                                                            
                                                                                                                                          
                                                                                                                                          
                      01/20/2004 01:41                                                                                                    
                      PM                                                                                                                  
                      Please respond to                                                                                                   
                      emf-dev                                                                                                             
                                                                                                                                          
                                                                                                                                          






I was trying to build an emf model from the following Schema, which
contains simple type number, derived from integer. To my surprise, the
model, generated from this schema, contained Number with the element value
of type string. Thus the implementation of the number class is using string
as a value type. Is it a bug or a feature?

 <<iaaxml.xsd>>  <<com.ibm.industries.financialservices.iaaxml.ecore>>
<<NumberImpl.java>>





#### iaaxml.xsd has been removed from this note on January 20 2004 by Frank
Budinsky
#### com.ibm.industries.financialservices.iaaxml.ecore has been removed
from this note on January 20 2004 by Frank Budinsky
#### NumberImpl.java has been removed from this note on January 20 2004 by
Frank Budinsky




Back to the top