1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <ecore:EPackage xmi:
version=
"2.0" xmlns:
xmi=
"http://www.omg.org/XMI" xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
3 xmlns:
ecore=
"http://www.eclipse.org/emf/2002/Ecore" name=
"mongodb" nsURI=
"http://com.hangum.tadpole.mongodb.model.ERDInfo"
5 <eClassifiers xsi:
type=
"ecore:EClass" name=
"DB" eSuperTypes=
"#//ERDInfo">
6 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"dbType" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
7 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"tables" upperBound=
"-1"
8 eType=
"#//Table" containment=
"true" eOpposite=
"#//Table/db"/>
9 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"key" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
10 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"url" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
11 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"id" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
12 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"sid" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
13 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"references" upperBound=
"-1"
14 eType=
"#//Relation" containment=
"true" eOpposite=
"#//Relation/db"/>
15 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"comment" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
17 <eClassifiers xsi:
type=
"ecore:EClass" name=
"Table">
18 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"columns" lowerBound=
"1"
19 upperBound=
"-1" eType=
"#//Column" containment=
"true" eOpposite=
"#//Column/table"/>
20 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"db" lowerBound=
"1" eType=
"#//DB"
21 eOpposite=
"#//DB/tables"/>
22 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"name" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
23 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"constraints" eType=
"#//Rectangle"/>
24 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"incomingLinks" upperBound=
"-1"
25 eType=
"#//Relation" eOpposite=
"#//Relation/target"/>
26 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"outgoingLinks" upperBound=
"-1"
27 eType=
"#//Relation" eOpposite=
"#//Relation/source"/>
28 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"logicalName" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
29 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"comment" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
30 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"UserCommentReference" eType=
"#//UserComment"/>
32 <eClassifiers xsi:
type=
"ecore:EClass" name=
"Column">
33 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"field" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
34 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"type" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
35 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"default" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
36 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"table" lowerBound=
"1" eType=
"#//Table"
37 eOpposite=
"#//Table/columns"/>
38 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"logicalField" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
39 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"key" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
40 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"comment" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
41 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"subDoc" upperBound=
"-1"
42 eType=
"#//Column" containment=
"true"/>
44 <eClassifiers xsi:
type=
"ecore:EDataType" name=
"Rectangle" instanceClassName=
"org.eclipse.draw2d.geometry.Rectangle"/>
45 <eClassifiers xsi:
type=
"ecore:EClass" name=
"Relation">
46 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"source" eType=
"#//Table"
47 eOpposite=
"#//Table/outgoingLinks"/>
48 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"target" eType=
"#//Table"
49 eOpposite=
"#//Table/incomingLinks"/>
50 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"source_kind" eType=
"#//RelationKind"/>
51 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"target_kind" eType=
"#//RelationKind"/>
52 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"column_name" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
53 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"referenced_column_name"
54 eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
55 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"bendpoint" upperBound=
"-1"
57 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"db" lowerBound=
"1" eType=
"#//DB"
58 eOpposite=
"#//DB/references"/>
59 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"comment" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
60 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"constraint_name" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
62 <eClassifiers xsi:
type=
"ecore:EDataType" name=
"Point" instanceClassName=
"org.eclipse.draw2d.geometry.Point"/>
63 <eClassifiers xsi:
type=
"ecore:EEnum" name=
"RelationKind">
64 <eLiterals name=
"ONLY_ONE" value=
"1"/>
65 <eLiterals name=
"ZERO_OR_ONE" value=
"3" literal=
"ZERO_ONE"/>
66 <eLiterals name=
"ZERO_OR_MANY" value=
"4" literal=
"ZERO_MANY"/>
67 <eLiterals name=
"ONE_OR_MANY" value=
"5" literal=
"ONE_MANY"/>
69 <eClassifiers xsi:
type=
"ecore:EClass" name=
"View" eSuperTypes=
"#//Table">
70 <eStructuralFeatures xsi:
type=
"ecore:EReference" name=
"tableName" lowerBound=
"1"
73 <eClassifiers xsi:
type=
"ecore:EClass" name=
"ERDInfo">
74 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"autoLayout" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
75 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"version" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
76 defaultValueLiteral=
"0.8.1(2012.04.13)"/>
77 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"autoLayout_type" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
79 <eClassifiers xsi:
type=
"ecore:EClass" name=
"UserComment">
80 <eStructuralFeatures xsi:
type=
"ecore:EAttribute" name=
"comment" eType=
"ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>