mirror of
http://172.16.200.102/MOISE/Pattern-Instanciation-On-System-Engineering-Model.git
synced 2025-12-18 03:43:58 +01:00
Added mapping metamodel and generated 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 required="true"
|
||||
* @model
|
||||
* @generated
|
||||
*/
|
||||
String getName();
|
||||
|
||||
@@ -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, 1, 1, NamedElement.class,
|
||||
initEAttribute(getNamedElement_Name(), ecorePackage.getEString(), "name", null, 0, 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,
|
||||
|
||||
@@ -142,7 +142,7 @@ public class SeimValidator extends EObjectValidator {
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @generated NOT
|
||||
*/
|
||||
public boolean validateComponent(Component component, DiagnosticChain diagnostics, Map<Object, Object> context) {
|
||||
if (!validate_NoCircularContainment(component, diagnostics, context))
|
||||
@@ -168,13 +168,15 @@ public class SeimValidator extends EObjectValidator {
|
||||
result &= validateNamedElement_nameNotEmpty(component, diagnostics, context);
|
||||
if (result || diagnostics != null)
|
||||
result &= validatePropertyHolder_uniqueKeys(component, diagnostics, context);
|
||||
if (result || diagnostics != null)
|
||||
result &= (component.getName() != null);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @generated NOT
|
||||
*/
|
||||
public boolean validatePort(Port port, DiagnosticChain diagnostics, Map<Object, Object> context) {
|
||||
if (!validate_NoCircularContainment(port, diagnostics, context))
|
||||
@@ -200,6 +202,8 @@ public class SeimValidator extends EObjectValidator {
|
||||
result &= validateNamedElement_nameNotEmpty(port, diagnostics, context);
|
||||
if (result || diagnostics != null)
|
||||
result &= validatePropertyHolder_uniqueKeys(port, diagnostics, context);
|
||||
if (result || diagnostics != null)
|
||||
result &= (port.getName() != null);
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -633,7 +637,7 @@ public class SeimValidator extends EObjectValidator {
|
||||
/**
|
||||
* <!-- begin-user-doc -->
|
||||
* <!-- end-user-doc -->
|
||||
* @generated
|
||||
* @generated NOT
|
||||
*/
|
||||
public boolean validateModel(Model model, DiagnosticChain diagnostics, Map<Object, Object> context) {
|
||||
if (!validate_NoCircularContainment(model, diagnostics, context))
|
||||
@@ -659,6 +663,8 @@ public class SeimValidator extends EObjectValidator {
|
||||
result &= validateNamedElement_nameNotEmpty(model, diagnostics, context);
|
||||
if (result || diagnostics != null)
|
||||
result &= validatePropertyHolder_uniqueKeys(model, diagnostics, context);
|
||||
if (result || diagnostics != null)
|
||||
result &= (model.getName() != null);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user