mirror of
http://172.16.200.102/MOISE/Pattern-Instanciation-On-System-Engineering-Model.git
synced 2025-12-18 03:43:58 +01:00
SEIM element name cardinality correction. Regenerated code.
This commit is contained in:
@@ -45,7 +45,7 @@ public interface NamedElement extends IdentifiedElement {
|
||||
* @return the value of the '<em>Name</em>' attribute.
|
||||
* @see #setName(String)
|
||||
* @see com.irtsaintexupery.pseim.seim.SeimPackage#getNamedElement_Name()
|
||||
* @model
|
||||
* @model required="true"
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
@@ -30,7 +30,7 @@ package com.irtsaintexupery.pseim.seim;
|
||||
* @see com.irtsaintexupery.pseim.seim.SeimPackage#getProperty()
|
||||
* @model interface="true" abstract="true"
|
||||
* annotation="http://www.eclipse.org/emf/2002/Ecore constraints='keyNotNull'"
|
||||
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot keyNotNull='key <> \'\''"
|
||||
* annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot keyNotNull='not(key.oclIsUndefined()) and key <> \'\''"
|
||||
* @generated
|
||||
*/
|
||||
public interface Property extends IdentifiedElement {
|
||||
|
||||
@@ -693,7 +693,7 @@ public class SeimPackageImpl extends EPackageImpl implements SeimPackage {
|
||||
|
||||
initEClass(namedElementEClass, NamedElement.class, "NamedElement", IS_ABSTRACT, IS_INTERFACE,
|
||||
IS_GENERATED_INSTANCE_CLASS);
|
||||
initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, NamedElement.class,
|
||||
initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 1, 1, NamedElement.class,
|
||||
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
|
||||
|
||||
initEClass(identifiedElementEClass, IdentifiedElement.class, "IdentifiedElement", IS_ABSTRACT, IS_INTERFACE,
|
||||
@@ -768,7 +768,8 @@ public class SeimPackageImpl extends EPackageImpl implements SeimPackage {
|
||||
*/
|
||||
protected void createPivotAnnotations() {
|
||||
String source = "http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot";
|
||||
addAnnotation(propertyEClass, source, new String[] { "keyNotNull", "key <> \'\'" });
|
||||
addAnnotation(propertyEClass, source,
|
||||
new String[] { "keyNotNull", "not(key.oclIsUndefined()) and key <> \'\'" });
|
||||
addAnnotation(propertyHolderEClass, source,
|
||||
new String[] { "uniqueKeys", "properties->forAll(p1, p2 | p1 <> p2 implies p1.key <> p2.key)" });
|
||||
addAnnotation(namedElementEClass, source, new String[] { "nameNotEmpty", "name <> \'\'" });
|
||||
|
||||
@@ -304,7 +304,7 @@ public class SeimValidator extends EObjectValidator {
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
*/
|
||||
protected static final String PROPERTY__KEY_NOT_NULL__EEXPRESSION = "key <> ''";
|
||||
protected static final String PROPERTY__KEY_NOT_NULL__EEXPRESSION = "not(key.oclIsUndefined()) and key <> ''";
|
||||
|
||||
/**
|
||||
* Validates the keyNotNull constraint of '<em>Property</em>'.
|
||||
|
||||
Reference in New Issue
Block a user