|complexType mapped to EDataType [message #602340]
||Tue, 01 May 2007 11:04
| Matthew Rawlings
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"/>
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.
Powered by FUDForum
. Page generated in 0.01392 seconds