apps/org.ossmeter.platform.app.example/src/org/ossmeter/platform/app/example/App.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse.importer/META-INF/MANIFEST.MF Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse.importer/src/org/ossmeter/repository/model/eclipse/importer/EclipseProjectImporter.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse.importer/.classpath Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse.importer/build.properties Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/Article.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/EclipseNewsGroup.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/EclipseProject.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/MailingList.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/MailingListType.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/NewsGroupType.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/ProjectStatus.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/Release.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/ReleaseType.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/Review.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/ReviewState.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/ReviewType.java Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/eclipse.ecore Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/src/org/ossmeter/repository/model/eclipse/eclipse.emf Diff Switch to side-by-side view
platform-extensions/org.ossmeter.repository.model.eclipse/plugin.xml Diff Switch to side-by-side view
platform/org.ossmeter.code.model/org.ossmeter.code.model.generic/META-INF/MANIFEST.MF Diff Switch to side-by-side view
platform/org.ossmeter.code.model/org.ossmeter.code.model.java/META-INF/MANIFEST.MF Diff Switch to side-by-side view
platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/historic/model/RascalHistoricMetrics.ecore to platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/TupleMeasurement.java
--- a/platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/historic/model/RascalHistoricMetrics.ecore +++ b/platform-extensions/org.ossmeter.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/TupleMeasurement.java @@ -1,8 +1,35 @@ -<?xml version="1.0" encoding="ASCII"?> -<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="org.ossmeter.metricprovider.rascal.historic.model"> - <eClassifiers xsi:type="ecore:EClass" name="RascalHistoricMetrics"> - <eStructuralFeatures xsi:type="ecore:EReference" name="measurements" upperBound="-1" containment="true"> - <eType xsi:type="ecore:EClass" href="platform:/resource/org.ossmeter.platform-extensions.platform.metricmanager.rascal/src/org/ossmeter/metricprovider/rascal/trans/model/RascalMetrics.ecore#//Measurement"/> - </eStructuralFeatures> - </eClassifiers> -</ecore:EPackage> +package org.ossmeter.metricprovider.rascal.trans.model; + +import java.util.List; + +import com.googlecode.pongo.runtime.PongoList; +import com.googlecode.pongo.runtime.querying.StringQueryProducer; +import com.mongodb.BasicDBList; + + +public class TupleMeasurement extends Measurement { + + protected List<Measurement> value = null; + + + public TupleMeasurement() { + super(); + dbObject.put("value", new BasicDBList()); + super.setSuperTypes("org.ossmeter.metricprovider.rascal.trans.model.Measurement"); + URI.setOwningType("org.ossmeter.metricprovider.rascal.trans.model.ListMeasurement"); + } + + public static StringQueryProducer URI = new StringQueryProducer("uri"); + + + + + public List<Measurement> getValue() { + if (value == null) { + value = new PongoList<Measurement>(this, "value", true); + } + return value; + } + + +}