Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » complexType mapped to EDataType
complexType mapped to EDataType [message #602340] Tue, 01 May 2007 11:04
Matthew Rawlings is currently offline Matthew RawlingsFriend
Messages: 39
Registered: July 2009
I would like to map some of my complexType to EDataType.

I understand the current mapping and annotations and would like to be able
to add an annotation to some of xsd:complexType to map them to EDataType
instead of EClass. I would also like to be able to add annotations to some
of my xsd:simpleType to map them to EClass instead of EDataType.

Below is an example of a UN/CEFACT CCTS complex data type "Money". This is
a data type because it lacks identity and behaviour. This is complex
because it has more than one Property. It does not make sense to map this
to a Class when it is clearly a Data Type by definition. I added a
proposed eCore annotation of "ecore:Classifier" to the complexType

<xsd:complexType name="Money" abstract="false" mixed="false"
<xsd:element name="currencyId" type="IdentifierDataType"/>
<xsd:element name="amount">
<xsd:restriction base="ValueDataType">
<xsd:minExclusive value="0"/>

My question is, would an additional annotation of eCore:classifier =
EClass | EDataType for xsd:complexType and xsd:simpleType be a good
solution, and would it be accepted as either an enhancement or

I do not wish to make a private enhancement as I publish my XSD with eCore
annotations in them.
Previous Topic:Schema Merging
Next Topic:Refreshing an eCore model when a schema changes
Goto Forum:

Current Time: Wed Jun 20 13:48:03 GMT 2018

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

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

Back to the top