| /***************************************************************************** |
| * Copyright (c) 2020 CEA LIST. |
| * |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Saadia Dhouib (CEA LIST) saadia.dhouib@cea.fr - Initial API and implementation |
| * |
| *****************************************************************************/ |
| |
| package org.eclipse.papyrus.aas.validation.selectors; |
| |
| import org.eclipse.emf.validation.model.IClientSelector; |
| import org.eclipse.papyrus.uml.service.validation.StereotypeUtil; |
| |
| /** |
| * This class filters (selects) passed stereotype applications. It returns true, if the |
| * associated stereotype (or one of its super-stereotypes) has the name '[stereotype.name/]'. |
| * |
| * @generated |
| */ |
| public class IdentifierKeyValuePairClientSelector implements IClientSelector { |
| |
| public boolean selects(Object stereoApplicationObj) { |
| return StereotypeUtil.checkStereoApplication(stereoApplicationObj, "IdentifierKeyValuePair"); //$NON-NLS-1$ |
| } |
| } |