Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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
Member
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
definition.

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

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
contribution?

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: Fri Apr 26 07:28:11 GMT 2024

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

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

Back to the top