Skip to main content
summaryrefslogtreecommitdiffstats
blob: d4aaf417b0a328a379ff6fc479f9b2c51715635f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.eclipse.papyrus.core.queries.test.modisco.queries;

import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
import org.eclipse.papyrus.core.queries.test.modisco.IQueryNames;
import org.eclipse.uml2.uml.Element;

/** test - boolean return value - String[1] */
public class BooleanTest_String_1 implements IJavaModelQuery<Element, Boolean> {

	/**
	 * {@inheritDoc}
	 */
	public Boolean evaluate(final Element context, final ParameterValueList parameterValues)
			throws ModelQueryExecutionException {
		return (parameterValues.getValueByParameterName(IQueryNames.BooleanTest_String_1_StringParamName) instanceof String);
	}
}

Back to the top