Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses')
-rw-r--r--tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/README.txt4
-rw-r--r--tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.ecore82
-rw-r--r--tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.genmodel31
-rw-r--r--tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.xsd16
-rw-r--r--tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/humans.xml7
5 files changed, 0 insertions, 140 deletions
diff --git a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/README.txt b/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/README.txt
deleted file mode 100644
index bc89fcb..0000000
--- a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/README.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-This test case covers a specific defect:
-
-1) And XSD was used to define the .ecore model, but has not been used to maintain the model. The original XSD defined Human.
-2) The Human subclasses Man and Woman were directly defined in the .ecore model - they do not have Extended metadata.
diff --git a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.ecore b/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.ecore
deleted file mode 100644
index 3e1a593..0000000
--- a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.ecore
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="human"
- nsURI="http://www.example.org/human" nsPrefix="human">
- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value=""/>
- <details key="kind" value="mixed"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="elementWildcard"/>
- <details key="name" value=":mixed"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
- transient="true" containment="true" resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="xmlns:prefix"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
- eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
- transient="true" containment="true" resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="xsi:schemaLocation"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="root" upperBound="-2" eType="#//Root"
- volatile="true" transient="true" derived="true" containment="true" resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="root"/>
- <details key="namespace" value="##targetNamespace"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Human">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Human"/>
- <details key="kind" value="empty"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="age" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
- unsettable="true">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="age"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="attribute"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Root">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Root"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EReference" name="human" upperBound="-1"
- eType="#//Human" containment="true" resolveProxies="false">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="human"/>
- <details key="namespace" value="##targetNamespace"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Man" eSuperTypes="#//Human">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="likesCars" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Woman" eSuperTypes="#//Human">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="likesShopping" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.genmodel b/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.genmodel
deleted file mode 100644
index 8ee8d40..0000000
--- a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.genmodel
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.jet.tests/src"
- editDirectory="/org.eclipse.jet.tests.edit/src" editorDirectory="/org.eclipse.jet.tests.editor/src"
- modelPluginID="org.eclipse.jet.tests" modelName="Human" testsDirectory="/org.eclipse.jet.tests.tests/src"
- importerID="org.eclipse.xsd.ecore.importer" copyrightFields="false" language="">
- <foreignModel>../../dkb.xsd/human.xsd</foreignModel>
- <genPackages prefix="Human" basePackage="org.example" resource="XML" disposableProviderFactory="true"
- ecorePackage="human.ecore#/">
- <genClasses ecoreClass="human.ecore#//DocumentRoot">
- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute human.ecore#//DocumentRoot/mixed"/>
- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference human.ecore#//DocumentRoot/xMLNSPrefixMap"/>
- <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference human.ecore#//DocumentRoot/xSISchemaLocation"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference human.ecore#//DocumentRoot/root"/>
- </genClasses>
- <genClasses ecoreClass="human.ecore#//Human">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute human.ecore#//Human/age"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute human.ecore#//Human/name"/>
- </genClasses>
- <genClasses ecoreClass="human.ecore#//Root">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference human.ecore#//Root/human"/>
- </genClasses>
- <genClasses ecoreClass="human.ecore#//Man">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute human.ecore#//Man/likesCars"/>
- </genClasses>
- <genClasses ecoreClass="human.ecore#//Woman">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute human.ecore#//Woman/likesShopping"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.xsd b/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.xsd
deleted file mode 100644
index 425bcb3..0000000
--- a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/human.xsd
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/human" xmlns:tns="http://www.example.org/human" elementFormDefault="qualified">
-
- <complexType name="Root">
- <sequence>
- <element name="human" type="tns:Human" maxOccurs="unbounded" minOccurs="0"></element>
- </sequence>
- </complexType>
-
- <complexType name="Human">
- <attribute name="name" type="string"></attribute>
- <attribute name="age" type="int"></attribute>
- </complexType>
-
- <element name="root" type="tns:Root"></element>
-</schema>
diff --git a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/humans.xml b/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/humans.xml
deleted file mode 100644
index 43ff947..0000000
--- a/tests/org.eclipse.jet.tests/data/xmlSubclass/no-metadata-on-subclasses/humans.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<tns:root xmlns:tns="http://www.example.org/human" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- >
- <tns:human xsi:type="tns:Man" age="25" likesCars="true" name="John" />
- <tns:human age="32" name="Yoko" xsi:type="tns:Woman"
- likesShopping="true" />
-</tns:root>

Back to the top