Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2019-06-27 08:46:33 -0400
committervincent lorenzo2019-07-09 03:17:02 -0400
commitb8ce1cefcb322e8f252bb138b49147ceddaa3981 (patch)
treed04f6242032d02f0eaa5f5206a68bc94e62cb47b /plugins
parent3d9c7e4c4c94d1cebbe7143076732de8f96785b4 (diff)
downloadorg.eclipse.papyrus-b8ce1cefcb322e8f252bb138b49147ceddaa3981.tar.gz
org.eclipse.papyrus-b8ce1cefcb322e8f252bb138b49147ceddaa3981.tar.xz
org.eclipse.papyrus-b8ce1cefcb322e8f252bb138b49147ceddaa3981.zip
Bug 548237: [Expression] Papyrus must provide new expressions check single valued EAttribute and Stereotype Properties values (equality tests)
- update the documentation - Fix documentation plugin org.eclipse.papyrus.infra.emf.expressions.doc Change-Id: Ie5d1970d5672c28ceaf03887ac6ffa8691dbe1b5 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/doc/org.eclipse.papyrus.infra.doc/pom.xml3
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/build.properties2
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/pom.xml2
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/src/site/mediawiki/expressionsUserDoc.mediawiki18
4 files changed, 21 insertions, 4 deletions
diff --git a/plugins/doc/org.eclipse.papyrus.infra.doc/pom.xml b/plugins/doc/org.eclipse.papyrus.infra.doc/pom.xml
index d13c9df24d1..5e0e98541b0 100644
--- a/plugins/doc/org.eclipse.papyrus.infra.doc/pom.xml
+++ b/plugins/doc/org.eclipse.papyrus.infra.doc/pom.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
diff --git a/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/build.properties b/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/build.properties
index 194a6120dd9..92688aa296c 100755
--- a/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/build.properties
+++ b/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/build.properties
@@ -4,4 +4,4 @@ bin.includes = META-INF/,\
target/site/generated-eclipse-help/**,\
OSGI-INF/
src.includes = about.html,\
- src/site/mediawiki/
+ src/site/mediawiki/
diff --git a/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/pom.xml b/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/pom.xml
index e49bf758e51..e6516241ae7 100755
--- a/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/pom.xml
+++ b/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/pom.xml
@@ -49,5 +49,5 @@
</plugin>
</plugins>
</build>
- <name>Papyrus Infra Nattable doc</name>
+ <name>Papyrus Infra Expression doc</name>
</project>
diff --git a/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/src/site/mediawiki/expressionsUserDoc.mediawiki b/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/src/site/mediawiki/expressionsUserDoc.mediawiki
index 28aaac6c0b4..91422ae2cca 100755
--- a/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/src/site/mediawiki/expressionsUserDoc.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.infra.emf.expressions.doc/src/site/mediawiki/expressionsUserDoc.mediawiki
@@ -50,7 +50,12 @@ Here, we present you the generic boolean expressions provided by Papyrus:
***''referencedExpression'': the referenced boolean expression.
**semantic: this expression allows to reference an expression provided by the <code>ExpressionCatalog</code>.
**defaultValue: if there is no referenced expression, the expression returns <code>true</code>.
-
+*'''SingleEAttributeValueEqualityExpression'''
+**parameters:
+***''eAttribute'': the EAttribute used on the evaluated element to get a value,
+***''expectedValue'': the expected value for the EAttribute, as string.
+**semantic: this expression allows to check the value of an EAttribtue is equals to the expected one.
+**default value: we return <code>false</code> if the EAttribute is not defined. We only return <code>true</code> when the EAtribute value is eaquals to the expected one.
After defining these main objects required to write boolean expression, we provided some expressions dedicated to UML:
*'''IsStereotypedWithExpression'''
@@ -92,3 +97,14 @@ After defining these main objects required to write boolean expression, we provi
**semantic: this expression returns <code>true</code> when the stereotype applied on the context element is a Kind of the identified stereotype. So for element stereotyped by a stereotype that generalize the expected stereotype, we return <code>true</code>. If the ''profile URI'' is defined, we check that the stereotype comes from the expected profile.
**default value:
*** we return <code>false</code>, if the stereotype identifier is not defined.
+
+*'''SingleStereotypeAttributeEqualityExpression'''
+**parameters:
+***''stereotype qualified name'': the qualified name of the stereotype,
+***''property name'': the name of a property of the stereotype,
+***''profile URI'': the uri of the profile (not mandatory),
+***''expected value'': the expected value for the stereotype's property as string.
+**semantic: this expression returns <code>true</code> when the required stereotype is applied on the context element and when its property value is equals to the expected one. If the ''profile URI'' is defined, we check that the stereotype comes from the expected profile.
+**default value:
+***we return <code>false</code>, when the qualified name, or the property, or the expected value, is not defined.
+

Back to the top