| [news.eclipse.tools.emf] Re: FeatureMaps |
JF,
I have followed the FeatureMap white paper and created an EMF test model as follows:
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
<ecore:EPackage name="uk.co.his.tools.ecore.generation" nsURI="uk.co.his.tools.ecore.generation">
<eClassifiers xsi:type="ecore:EEnum" name="VisibilityAnnotation">
<eLiterals name="package"/>
<eLiterals name="public" value="1"/>
<eLiterals name="private" value="2"/>
<eLiterals name="protected" value="3"/>
</eClassifiers>
</ecore:EPackage>
<ecore:EPackage name="uk.co.his.featureMapTest" nsURI="uk.co.his.featureMapTest">
<eClassifiers xsi:type="ecore:EClass" name="HousesOfParliament">
<eStructuralFeatures xsi:type="ecore:EReference" name="mps" ordered="false" upperBound="-1" eType="/1/Member" volatile="true" transient="true">
<eAnnotations source="/uk/co/his/mdexport/visibilitySpecifier" references="/0/VisibilityAnnotation/private"/>
<eAnnotations source="http://org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="group" value="#repContainer"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="lords" ordered="false" upperBound="-1" eType="/1/Member">
<eAnnotations source="/uk/co/his/mdexport/visibilitySpecifier" references="/0/VisibilityAnnotation/private"/>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="regent" ordered="false" lowerBound="1" eType="/1/Member" volatile="true" transient="true">
<eAnnotations source="/uk/co/his/mdexport/visibilitySpecifier" references="/0/VisibilityAnnotation/private"/>
<eAnnotations source="http://org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="group" value="#repContainer"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="repContainer" upperBound="-1">
<eAnnotations source="http://org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="group"/>
</eAnnotations>
<eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry"/>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Member"/>
</ecore:EPackage>
</xmi:XMI>
Is this correct?
The functions for get/setRegent and getMps are empty are empty - it is relatively trivial to implement them, but I wanted to make sure that I was missing nothing else....
Thanks...