blob: 66bb20a2b205df1834b4cad4eacc817408c661dd [file] [log] [blame]
/*****************************************************************************
* 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 HasSemanticsClientSelector implements IClientSelector {
public boolean selects(Object stereoApplicationObj) {
return StereotypeUtil.checkStereoApplication(stereoApplicationObj, "HasSemantics"); //$NON-NLS-1$
}
}