XSD2JavaGenerator enumeration support

2006-06-30 Thread Ron Gavlin
I have the following simpleType in my schema: xsd:simpleType name=UpdateStatus xsd:restriction base=xsd:string xsd:enumeration value=success/ xsd:enumeration value=duplicate/ xsd:enumeration value=failure/ /xsd:restriction /xsd:simpleType The EMF/SDO 1.0 code generator

Re: XSD2JavaGenerator doesn't generate DocumentRoot class

2006-06-30 Thread Ron Gavlin
Frank, I opened JIRA TUSCANY-512 to track this feature. Thanks, - Ron - Original Message From: Frank Budinsky [EMAIL PROTECTED] To: tuscany-user@ws.apache.org Sent: Friday, June 30, 2006 10:05:52 AM Subject: Re: XSD2JavaGenerator doesn't generate DocumentRoot class Ron, It looks

Re: DataObjectImpl.setEClass(EClass) throws UnsupportedOperationException()

2006-06-30 Thread Frank Budinsky
Hi Ron, Looking at this, it looks like the problem is that you're trying to create dynamic subclasses of statically generated types. The bad news is that Tuscany doesn't currently support that. The good news is that it's not too hard to add the support. The problem is that currently Tuscany

Re: DataObjectImpl.setEClass(EClass) throws UnsupportedOperationException()

2006-06-30 Thread Frank Budinsky
Off the top of my head, I think it will be very similar to what needed to be overridden in DynamicDataObjectImpl ... only in DynamicDataObjectImpl, the various eDynamicXXX method assume that the eStaticFeatureCount() method returns 0. I think that if you compare those method implementations to

Re: DataObjectImpl.setEClass(EClass) throws UnsupportedOperationException()

2006-06-30 Thread Ron Gavlin
Frank, Does the proposed relationship between ExtensibleDataObjectImpl and DataObjectImpl somewhat mirror the relationship between EMF classes EObjectImpl and BasicEObjectImpl? At first glance, it appears EObjectImpl adds, amongst other things, support for this dynamic EClass. Would I look at

Using EMF Adapters with Tuscany DataObjects

2006-06-30 Thread Ron Gavlin
I have some existing code that takes advantage of the EMF-supplied notification features in an EMF/SDO 1.0 DataObject. Specifically, I have wrapper class that wraps a statically generated Customer DataObject. The CustomerWrapper's constructor is listed below. Is there any way to enable EMF