diff --git a/csdl/model/[MC-CSDL].pdf b/csdl/model/[MC-CSDL].pdf new file mode 100644 index 0000000..e65a533 Binary files /dev/null and b/csdl/model/[MC-CSDL].pdf differ diff --git a/csdl/model/[MS-CSDLBI].pdf b/csdl/model/[MS-CSDLBI].pdf new file mode 100644 index 0000000..d18c356 Binary files /dev/null and b/csdl/model/[MS-CSDLBI].pdf differ diff --git a/csdl/model/pom.xml b/csdl/model/pom.xml new file mode 100644 index 0000000..d895257 --- /dev/null +++ b/csdl/model/pom.xml @@ -0,0 +1,42 @@ + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl + ${revision} + + org.eclipse.daanse.xmla.csdl.model + pom + + + v2 + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + true + + + + + + + + false + + + true + + ossrhp + Sonatype Nexus Snapshots + https://central.sonatype.com/repository/maven-snapshots + + + diff --git a/csdl/model/v2/an/model/an.ecore b/csdl/model/v2/an/model/an.ecore new file mode 100644 index 0000000..20d2f20 --- /dev/null +++ b/csdl/model/v2/an/model/an.ecore @@ -0,0 +1,90 @@ + + + + +
+
+
+
+ + + +
+ + + + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + diff --git a/csdl/model/v2/an/pom.xml b/csdl/model/v2/an/pom.xml new file mode 100644 index 0000000..b14ec00 --- /dev/null +++ b/csdl/model/v2/an/pom.xml @@ -0,0 +1,96 @@ + + + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2 + ${revision} + + org.eclipse.daanse.xmla.csdl.model.v2.an + + + + org.eclipse.emf + org.eclipse.emf.common + + + org.eclipse.emf + org.eclipse.emf.ecore + + + org.eclipse.emf + org.eclipse.emf.ecore.xmi + + + org.eclipse.fennec.emf + org.eclipse.fennec.emf.osgi.api + + + + + + + model + + **/*.ecore + + + + + + org.eclipse.daanse + org.eclipse.daanse.tooling.emf.codegen.maven + 0.0.1-SNAPSHOT + + + + generate + + + model/an.ecore + target/generated-sources/emf + + + + + + biz.aQute.bnd + biz.aQute.bndlib + 7.1.0 + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + generate-sources + + add-source + + + + target/generated-sources/emf + + + + + + + + + diff --git a/csdl/model/v2/bi/model/bi.ecore b/csdl/model/v2/bi/model/bi.ecore new file mode 100644 index 0000000..85959c9 --- /dev/null +++ b/csdl/model/v2/bi/model/bi.ecore @@ -0,0 +1,2081 @@ + + + + +
+
+
+
+
+ + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+ + + + + + + + +
+
+ + + + +
+ + + + + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + + +
+ + + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + + +
+ + + + + + + + + + + + +
+
+ + + + +
+ + + + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + + +
+
+ + + + +
+ + + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + diff --git a/csdl/model/v2/bi/pom.xml b/csdl/model/v2/bi/pom.xml new file mode 100644 index 0000000..b3fb815 --- /dev/null +++ b/csdl/model/v2/bi/pom.xml @@ -0,0 +1,96 @@ + + + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2 + ${revision} + + org.eclipse.daanse.xmla.csdl.model.v2.bi + + + + org.eclipse.emf + org.eclipse.emf.common + + + org.eclipse.emf + org.eclipse.emf.ecore + + + org.eclipse.emf + org.eclipse.emf.ecore.xmi + + + org.eclipse.fennec.emf + org.eclipse.fennec.emf.osgi.api + + + + + + + model + + **/*.ecore + + + + + + org.eclipse.daanse + org.eclipse.daanse.tooling.emf.codegen.maven + 0.0.1-SNAPSHOT + + + + generate + + + model/bi.ecore + target/generated-sources/emf + + + + + + biz.aQute.bnd + biz.aQute.bndlib + 7.1.0 + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + generate-sources + + add-source + + + + target/generated-sources/emf + + + + + + + + + diff --git a/csdl/model/v2/cg/model/cg.ecore b/csdl/model/v2/cg/model/cg.ecore new file mode 100644 index 0000000..fabc5aa --- /dev/null +++ b/csdl/model/v2/cg/model/cg.ecore @@ -0,0 +1,118 @@ + + + + +
+
+
+
+ + + +
+ + + + + + + + +
+
+ + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + diff --git a/csdl/model/v2/cg/pom.xml b/csdl/model/v2/cg/pom.xml new file mode 100644 index 0000000..6dc4517 --- /dev/null +++ b/csdl/model/v2/cg/pom.xml @@ -0,0 +1,96 @@ + + + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2 + ${revision} + + org.eclipse.daanse.xmla.csdl.model.v2.cg + + + + org.eclipse.emf + org.eclipse.emf.common + + + org.eclipse.emf + org.eclipse.emf.ecore + + + org.eclipse.emf + org.eclipse.emf.ecore.xmi + + + org.eclipse.fennec.emf + org.eclipse.fennec.emf.osgi.api + + + + + + + model + + **/*.ecore + + + + + + org.eclipse.daanse + org.eclipse.daanse.tooling.emf.codegen.maven + 0.0.1-SNAPSHOT + + + + generate + + + model/cg.ecore + target/generated-sources/emf + + + + + + biz.aQute.bnd + biz.aQute.bndlib + 7.1.0 + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + generate-sources + + add-source + + + + target/generated-sources/emf + + + + + + + + + diff --git a/csdl/model/v2/edm/model/edm.ecore b/csdl/model/v2/edm/model/edm.ecore new file mode 100644 index 0000000..9199592 --- /dev/null +++ b/csdl/model/v2/edm/model/edm.ecore @@ -0,0 +1,2447 @@ + + + + +
+
+
+
+
+ + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+ + + + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + + +
+ + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+ + + + + +
+
+ + + + +
+
+ + + + +
+ + + + + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+ + + + + + + +
+
+ + + + +
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+
+ + + + +
+
+ + + + + +
+
+ + + + +
+
+
+ + + + +
+
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + + +
+
+ + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + + +
+
+
+ + + + +
+
+ + + +
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+
+
+ + + + + +
+
+ + + + +
+
+
+ + + + +
+ + +
+
+ + + +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + diff --git a/csdl/model/v2/edm/pom.xml b/csdl/model/v2/edm/pom.xml new file mode 100644 index 0000000..a80b2e1 --- /dev/null +++ b/csdl/model/v2/edm/pom.xml @@ -0,0 +1,121 @@ + + + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2 + ${revision} + + org.eclipse.daanse.xmla.csdl.model.v2.edm + + + + + org.eclipse.emf + org.eclipse.emf.common + + + org.eclipse.emf + org.eclipse.emf.ecore + + + org.eclipse.emf + org.eclipse.emf.ecore.xmi + + + org.eclipse.fennec.emf + org.eclipse.fennec.emf.osgi.api + + + + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2.an + ${revision} + + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2.bi + ${revision} + + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model.v2.cg + ${revision} + + + + + org.junit.jupiter + junit-jupiter + test + + + + + + + model + + **/*.ecore + + + + + + org.eclipse.daanse + org.eclipse.daanse.tooling.emf.codegen.maven + 0.0.1-SNAPSHOT + + + + generate + + + model/edm.ecore + target/generated-sources/emf + + + + + + biz.aQute.bnd + biz.aQute.bndlib + 7.1.0 + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + generate-sources + + add-source + + + + target/generated-sources/emf + + + + + + + + + diff --git a/csdl/model/v2/edm/src/test/java/org/eclipse/daanse/xmla/csdl/model/v2/edm/CsdlBiSerializationTest.java b/csdl/model/v2/edm/src/test/java/org/eclipse/daanse/xmla/csdl/model/v2/edm/CsdlBiSerializationTest.java new file mode 100644 index 0000000..8016e15 --- /dev/null +++ b/csdl/model/v2/edm/src/test/java/org/eclipse/daanse/xmla/csdl/model/v2/edm/CsdlBiSerializationTest.java @@ -0,0 +1,250 @@ +/* + * Copyright (c) 2025 Contributors to the Eclipse Foundation. + * + * This program and the accompanying materials are made + * available under the terms of the Eclipse Public License 2.0 + * which is available at https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * SmartCity Jena - initial + */ +package org.eclipse.daanse.xmla.csdl.model.v2.edm; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.daanse.xmla.csdl.model.v2.bi.BiFactory; +import org.eclipse.daanse.xmla.csdl.model.v2.bi.BiPackage; +import org.eclipse.daanse.xmla.csdl.model.v2.bi.TEntityContainer; +import org.eclipse.daanse.xmla.csdl.model.v2.bi.TEntitySet; +import org.eclipse.daanse.xmla.csdl.model.v2.bi.TEntityType; +import org.eclipse.daanse.xmla.csdl.model.v2.bi.TProperty; +import org.eclipse.daanse.xmla.csdl.model.v2.edm.util.EdmResourceFactoryImpl; +import org.eclipse.emf.common.util.URI; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.resource.Resource; +import org.eclipse.emf.ecore.resource.ResourceSet; +import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; +import org.eclipse.emf.ecore.xmi.XMLResource; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class CsdlBiSerializationTest { + + private ResourceSet resourceSet; + private EdmFactory edmFactory; + private BiFactory biFactory; + + @BeforeEach + void setUp() { + resourceSet = new ResourceSetImpl(); + + // Register the EDM resource factory that respects ExtendedMetaData + resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xml", new EdmResourceFactoryImpl()); + + // Register packages + resourceSet.getPackageRegistry().put(EdmPackage.eNS_URI, EdmPackage.eINSTANCE); + resourceSet.getPackageRegistry().put(BiPackage.eNS_URI, BiPackage.eINSTANCE); + + edmFactory = EdmFactory.eINSTANCE; + biFactory = BiFactory.eINSTANCE; + } + + @Test + void testEdmEntityContainerSerialization() throws IOException { + EntityContainerType container = edmFactory.createEntityContainerType(); + container.setName("SalesModel"); + + EntitySetType entitySet = edmFactory.createEntitySetType(); + entitySet.setName("Products"); + entitySet.setEntityType("Model.Product"); + container.getEntitySet().add(entitySet); + + String xml = serializeToXml(container); + System.out.println("=== EDM EntityContainer (ohne BI) ==="); + System.out.println(xml); + System.out.println(); + } + + @Test + void testBiEntityContainerSerialization() throws IOException { + TEntityContainer biContainer = biFactory.createTEntityContainer(); + biContainer.setCaption("Verkaufsmodell"); + biContainer.setCulture("de-DE"); + + String xml = serializeToXml(biContainer); + System.out.println("=== BI EntityContainer ==="); + System.out.println(xml); + System.out.println(); + } + + @Test + void testBiEntitySetSerialization() throws IOException { + TEntitySet biEntitySet = biFactory.createTEntitySet(); + biEntitySet.setCaption("Produkte"); + biEntitySet.setHidden(false); + + String xml = serializeToXml(biEntitySet); + System.out.println("=== BI EntitySet ==="); + System.out.println(xml); + System.out.println(); + } + + @Test + void testBiEntityTypeSerialization() throws IOException { + TEntityType entityType = biFactory.createTEntityType(); + entityType.setContents("Regular"); + + String xml = serializeToXml(entityType); + System.out.println("=== BI EntityType ==="); + System.out.println(xml); + System.out.println(); + } + + @Test + void testEdmWithBiEntityContainer() throws IOException { + EntityContainerType container = edmFactory.createEntityContainerType(); + container.setName("SalesModel"); + + TEntityContainer biContainer = biFactory.createTEntityContainer(); + biContainer.setCaption("Verkaufsmodell"); + biContainer.setCulture("de-DE"); + + container.setBiEntityContainer(biContainer); + + EntitySetType entitySet = edmFactory.createEntitySetType(); + entitySet.setName("Products"); + entitySet.setEntityType("Model.Product"); + + TEntitySet biEntitySet = biFactory.createTEntitySet(); + biEntitySet.setCaption("Produkte"); + biEntitySet.setHidden(false); + + entitySet.setBiEntitySet(biEntitySet); + + container.getEntitySet().add(entitySet); + + String xml = serializeToXml(container); + System.out.println("=== EDM EntityContainer MIT BI-Annotationen ==="); + System.out.println(xml); + System.out.println(); + } + + @Test + void testEdmEntityTypeWithBi() throws IOException { + org.eclipse.daanse.xmla.csdl.model.v2.edm.TEntityType productType = edmFactory.createTEntityType(); + productType.setName("Product"); + + TEntityType biEntityType = biFactory.createTEntityType(); + biEntityType.setContents("Regular"); + + productType.setBiEntityType(biEntityType); + + TEntityProperty nameProperty = edmFactory.createTEntityProperty(); + nameProperty.setName("Name"); + nameProperty.setType("Edm.String"); + + TProperty biProperty = biFactory.createTProperty(); + biProperty.setCaption("Produktname"); + biProperty.setHidden(false); + + nameProperty.setBiProperty(biProperty); + + productType.getProperty().add(nameProperty); + + String xml = serializeToXml(productType); + System.out.println("=== EDM EntityType MIT BI-Annotationen ==="); + System.out.println(xml); + System.out.println(); + } + + @Test + void testCsdlSchemaWithBiAnnotations() throws IOException { + TSchema schema = edmFactory.createTSchema(); + schema.setNamespace("Model"); + schema.setAlias("Self"); + + EntityContainerType container = edmFactory.createEntityContainerType(); + container.setName("SalesModel"); + + TEntityContainer biContainer = biFactory.createTEntityContainer(); + biContainer.setCaption("Verkaufsmodell"); + biContainer.setCulture("de-DE"); + container.setBiEntityContainer(biContainer); + + EntitySetType entitySet = edmFactory.createEntitySetType(); + entitySet.setName("Products"); + entitySet.setEntityType("Model.Product"); + + TEntitySet biEntitySet = biFactory.createTEntitySet(); + biEntitySet.setCaption("Produkte"); + entitySet.setBiEntitySet(biEntitySet); + + container.getEntitySet().add(entitySet); + + EntitySetType entitySet2 = edmFactory.createEntitySetType(); + entitySet2.setName("Orders"); + entitySet2.setEntityType("Model.Order"); + + TEntitySet biEntitySet2 = biFactory.createTEntitySet(); + biEntitySet2.setCaption("Bestellungen"); + entitySet2.setBiEntitySet(biEntitySet2); + + container.getEntitySet().add(entitySet2); + + schema.getEntityContainer().add(container); + + org.eclipse.daanse.xmla.csdl.model.v2.edm.TEntityType productType = edmFactory.createTEntityType(); + productType.setName("Product"); + + TEntityType biProductType = biFactory.createTEntityType(); + biProductType.setContents("Regular"); + productType.setBiEntityType(biProductType); + + TEntityProperty idProperty = edmFactory.createTEntityProperty(); + idProperty.setName("ProductId"); + idProperty.setType("Edm.Int32"); + idProperty.setNullable(false); + productType.getProperty().add(idProperty); + + TEntityProperty nameProperty = edmFactory.createTEntityProperty(); + nameProperty.setName("Name"); + nameProperty.setType("Edm.String"); + + TProperty biNameProperty = biFactory.createTProperty(); + biNameProperty.setCaption("Produktname"); + biNameProperty.setHidden(false); + nameProperty.setBiProperty(biNameProperty); + + productType.getProperty().add(nameProperty); + + schema.getEntityType().add(productType); + + String xml = serializeToXml(schema); + System.out.println("=== CSDL Schema MIT BI-Annotationen (komplett) ==="); + System.out.println(xml); + System.out.println(); + } + + private String serializeToXml(EObject eObject) throws IOException { + Resource resource = resourceSet.createResource(URI.createURI("temp.xml")); + resource.getContents().add(eObject); + + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + Map options = new HashMap<>(); + options.put(XMLResource.OPTION_ENCODING, "UTF-8"); + options.put(XMLResource.OPTION_FORMATTED, Boolean.TRUE); + options.put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE); + + resource.save(baos, options); + + resource.getContents().clear(); + resourceSet.getResources().remove(resource); + + return baos.toString("UTF-8"); + } +} diff --git a/csdl/model/v2/pom.xml b/csdl/model/v2/pom.xml new file mode 100644 index 0000000..9373884 --- /dev/null +++ b/csdl/model/v2/pom.xml @@ -0,0 +1,80 @@ + + + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla.csdl.model + ${revision} + + org.eclipse.daanse.xmla.csdl.model.v2 + pom + + + cg + an + bi + edm + + + + 2.41.0 + 2.44.0 + 2.39.0 + + + + + + org.eclipse.emf + org.eclipse.emf.common + ${emf.common.version} + + + org.eclipse.emf + org.eclipse.emf.ecore + ${emf.ecore.version} + + + org.eclipse.emf + org.eclipse.emf.ecore.xmi + ${emf.xmi.version} + + + org.eclipse.fennec.emf + org.eclipse.fennec.emf.osgi.api + 1.0.0-SNAPSHOT + + + org.junit.jupiter + junit-jupiter + 5.10.1 + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.0 + + + + + + diff --git a/csdl/model/xsd/an.xsd b/csdl/model/xsd/an.xsd new file mode 100644 index 0000000..ecf0862 --- /dev/null +++ b/csdl/model/xsd/an.xsd @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/cg.xsd b/csdl/model/xsd/cg.xsd new file mode 100644 index 0000000..8a653be --- /dev/null +++ b/csdl/model/xsd/cg.xsd @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdl_v1.xsd b/csdl/model/xsd/csdl_v1.xsd new file mode 100644 index 0000000..01a530c --- /dev/null +++ b/csdl/model/xsd/csdl_v1.xsd @@ -0,0 +1,461 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide + documentation of comments on the contents of the XML file. It is valid + under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + This type allows pretty much any content + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdl_v1_1.xsd b/csdl/model/xsd/csdl_v1_1.xsd new file mode 100644 index 0000000..377e913 --- /dev/null +++ b/csdl/model/xsd/csdl_v1_1.xsd @@ -0,0 +1,470 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide + documentation of comments on the contents of the XML file. It is valid + under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + This type allows pretty much any content + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdl_v2.xsd b/csdl/model/xsd/csdl_v2.xsd new file mode 100644 index 0000000..2294dc2 --- /dev/null +++ b/csdl/model/xsd/csdl_v2.xsd @@ -0,0 +1,640 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide + documentation of comments on the contents of the XML file. It is valid + under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + This type allows pretty much any content + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdl_v3.xsd b/csdl/model/xsd/csdl_v3.xsd new file mode 100644 index 0000000..17e4173 --- /dev/null +++ b/csdl/model/xsd/csdl_v3.xsd @@ -0,0 +1,1217 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide + documentation of comments on the contents of the XML file. It is valid + under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + This type allows pretty much any content + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdlbi.xsd b/csdl/model/xsd/csdlbi.xsd new file mode 100644 index 0000000..ebb34ab --- /dev/null +++ b/csdl/model/xsd/csdlbi.xsd @@ -0,0 +1,727 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdlx_v1.xsd b/csdl/model/xsd/csdlx_v1.xsd new file mode 100644 index 0000000..1a39617 --- /dev/null +++ b/csdl/model/xsd/csdlx_v1.xsd @@ -0,0 +1,187 @@ + + + + + + Entity Data Model Designer Schema + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdlx_v2.xsd b/csdl/model/xsd/csdlx_v2.xsd new file mode 100644 index 0000000..d286032 --- /dev/null +++ b/csdl/model/xsd/csdlx_v2.xsd @@ -0,0 +1,200 @@ + + + + + + Entity Data Model Designer Schema + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csdlx_v3.xsd b/csdl/model/xsd/csdlx_v3.xsd new file mode 100644 index 0000000..cffb9e0 --- /dev/null +++ b/csdl/model/xsd/csdlx_v3.xsd @@ -0,0 +1,164 @@ + + + + + Entity Data Model Designer Schema + Copyright (c) Microsoft Corp. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csml_v1.xsd b/csdl/model/xsd/csml_v1.xsd new file mode 100644 index 0000000..5789cde --- /dev/null +++ b/csdl/model/xsd/csml_v1.xsd @@ -0,0 +1,361 @@ + + + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csml_v2.xsd b/csdl/model/xsd/csml_v2.xsd new file mode 100644 index 0000000..0148b9d --- /dev/null +++ b/csdl/model/xsd/csml_v2.xsd @@ -0,0 +1,374 @@ + + + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/csml_v3.xsd b/csdl/model/xsd/csml_v3.xsd new file mode 100644 index 0000000..11a408b --- /dev/null +++ b/csdl/model/xsd/csml_v3.xsd @@ -0,0 +1,364 @@ + + + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/essg.xsd b/csdl/model/xsd/essg.xsd new file mode 100644 index 0000000..46a7a37 --- /dev/null +++ b/csdl/model/xsd/essg.xsd @@ -0,0 +1,26 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/ssdl_v1.xsd b/csdl/model/xsd/ssdl_v1.xsd new file mode 100644 index 0000000..714df4f --- /dev/null +++ b/csdl/model/xsd/ssdl_v1.xsd @@ -0,0 +1,395 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide documentation of comments on the contents of the XML file. It is valid under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/ssdl_v2.xsd b/csdl/model/xsd/ssdl_v2.xsd new file mode 100644 index 0000000..8822285 --- /dev/null +++ b/csdl/model/xsd/ssdl_v2.xsd @@ -0,0 +1,397 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide documentation of comments on the contents of the XML file. It is valid under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/model/xsd/ssdl_v3.xsd b/csdl/model/xsd/ssdl_v3.xsd new file mode 100644 index 0000000..7064f4e --- /dev/null +++ b/csdl/model/xsd/ssdl_v3.xsd @@ -0,0 +1,438 @@ + + + + + Common Data Model Schema Definition Language. + Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Documentation element is used to provide documentation of comments on the contents of the XML file. It is valid under Schema, Type, Index and Relationship elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/csdl/pom.xml b/csdl/pom.xml new file mode 100644 index 0000000..5af2955 --- /dev/null +++ b/csdl/pom.xml @@ -0,0 +1,25 @@ + + + + 4.0.0 + + org.eclipse.daanse + org.eclipse.daanse.xmla + ${revision} + + org.eclipse.daanse.xmla.csdl + pom + + model + + diff --git a/pom.xml b/pom.xml index ce9d855..3422c29 100644 --- a/pom.xml +++ b/pom.xml @@ -80,6 +80,7 @@ model.jakarta.xml.bind.xmla client server + csdl