Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/soaml/org.eclipse.papyrus.soaml.profile.validation/src/org/eclipse/papyrus/soaml/profile/validation/selectors/FreeFormValueClientSelector.java')
-rw-r--r--extraplugins/soaml/org.eclipse.papyrus.soaml.profile.validation/src/org/eclipse/papyrus/soaml/profile/validation/selectors/FreeFormValueClientSelector.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/extraplugins/soaml/org.eclipse.papyrus.soaml.profile.validation/src/org/eclipse/papyrus/soaml/profile/validation/selectors/FreeFormValueClientSelector.java b/extraplugins/soaml/org.eclipse.papyrus.soaml.profile.validation/src/org/eclipse/papyrus/soaml/profile/validation/selectors/FreeFormValueClientSelector.java
new file mode 100644
index 00000000000..74f65a23260
--- /dev/null
+++ b/extraplugins/soaml/org.eclipse.papyrus.soaml.profile.validation/src/org/eclipse/papyrus/soaml/profile/validation/selectors/FreeFormValueClientSelector.java
@@ -0,0 +1,29 @@
+/*****************************************************************************
+ * Copyright (c) 2015 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
+ *****************************************************************************/
+
+package org.eclipse.papyrus.soaml.profile.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 FreeFormValueClientSelector implements IClientSelector {
+
+ public boolean selects(Object stereoApplicationObj) {
+ return StereotypeUtil.checkStereoApplication(stereoApplicationObj, "FreeFormValue"); //$NON-NLS-1$
+ }
+}

Back to the top