-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[24] Schemalocation can use fragments to locate an EPackage
Bug: #24 Signed-off-by: Arthur Daussy <[email protected]>
- Loading branch information
1 parent
0f420f3
commit 4b2a9f8
Showing
5 changed files
with
84 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/org.eclipse.sirius.emfjson.tests/src/main/resources/unit/options/Dynamic.ecore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?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" xmi:id="CustomEPackageID" name="DynamicEcore" nsURI="http://DynamicEcore" | ||
nsPrefix="dynLib"> | ||
<eClassifiers xsi:type="ecore:EClass" xmi:id="CustomEClassID" name="DynamicEClass"> | ||
<eStructuralFeatures xsi:type="ecore:EAttribute" name="dynName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> | ||
</eClassifiers> | ||
</ecore:EPackage> |
22 changes: 22 additions & 0 deletions
22
...ipse.sirius.emfjson.tests/src/main/resources/unit/options/SchemaLocationWithFragment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"json": { | ||
"version": "1.0", | ||
"encoding": "utf-8" | ||
}, | ||
"ns": { | ||
"dynLib": "http://DynamicEcore", | ||
"nodes": "http://www.obeo.fr/EMFJson" | ||
}, | ||
"schemaLocation": { | ||
"http://DynamicEcore": "Dynamic.ecore#CustomEPackageID", | ||
"http://www.obeo.fr/EMFJson": "../../nodes.ecore" | ||
}, | ||
"content": [ | ||
{ | ||
"eClass": "nodes:Node" | ||
}, | ||
{ | ||
"eClass": "dynLib:DynamicEClass" | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
...lipse.sirius.emfjson.tests/src/main/resources/unit/options/SchemaLocationWithFragment.xmi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?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:dynLib="http://DynamicEcore" | ||
xmlns:nodes="http://www.obeo.fr/EMFJson" | ||
xsi:schemaLocation="http://DynamicEcore Dynamic.ecore#CustomEPackageID http://www.obeo.fr/EMFJson ../../nodes.ecore"> | ||
<nodes:Node/> | ||
<dynLib:DynamicEClass/> | ||
</xmi:XMI> | ||
|