blob: 2aafe41eb63a5ea4cfd32dbf898e3882001b7890 [file] [log] [blame]
package org.eclipse.modisco.infra.query.tests.samples;
/**
* Copyright (c) 2009 Mia-Software.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* Gregoire DUPE (Mia-Software) - initial API and implementation
*/
import org.eclipse.emf.ecore.EObject;
import org.eclipse.modisco.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.modisco.infra.query.core.java.IJavaModelQuery;
import org.eclipse.modisco.infra.query.core.java.ParameterValueList;
public class EmfmqQueryTest2 implements IJavaModelQuery<EObject, Object> {
public Object evaluate(final EObject context,
final ParameterValueList parameterValues)
throws ModelQueryExecutionException {
// if (eObject instanceof Model) {
// Model model = (Model) eObject;
// SELECT statement = new SELECT(
// new FROM(model.getOrphanTypes()),
// new WHERE(
// new
// EObjectAttributeValueCondition(JavaPackage.eINSTANCE.getModel_Name(),
// new SubStringValue("Test")
// )
// )
// );
// return statement.execute().size();
// }
return null;
}
}