Skip to content

Commit

Permalink
meta-model adapted for ext.context
Browse files Browse the repository at this point in the history
  • Loading branch information
JP97Org committed Jul 22, 2019
1 parent a5912c4 commit 5d8cad7
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@
<styles xmi:type="notation:FontStyle" xmi:id="_WLHHUZwLEemMcoJXesiugw" fontColor="2697711" fontName="Ubuntu" fontHeight="8"/>
<layoutConstraint xmi:type="notation:Location" xmi:id="_WLHHUpwLEemMcoJXesiugw"/>
</children>
<children xmi:type="notation:Node" xmi:id="_TvF3QKxmEemwlpYoH3EBJw" type="3010" element="_TtYnEKxmEemwlpYoH3EBJw">
<styles xmi:type="notation:FontStyle" xmi:id="_TvF3QaxmEemwlpYoH3EBJw" fontColor="2697711" fontName="Ubuntu" fontHeight="8"/>
<layoutConstraint xmi:type="notation:Location" xmi:id="_TvF3QqxmEemwlpYoH3EBJw"/>
</children>
<styles xmi:type="notation:SortingStyle" xmi:id="_UWV-FZwLEemMcoJXesiugw"/>
<styles xmi:type="notation:FilteringStyle" xmi:id="_UWV-FpwLEemMcoJXesiugw"/>
</children>
Expand Down Expand Up @@ -927,28 +931,36 @@
<arrangeConstraints>KEEP_LOCATION</arrangeConstraints>
<arrangeConstraints>KEEP_SIZE</arrangeConstraints>
<arrangeConstraints>KEEP_RATIO</arrangeConstraints>
<ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_YQ36C5wLEemMcoJXesiugw" borderSize="1" borderSizeComputationExpression="1" backgroundStyle="Liquid" foregroundColor="255,252,216">
<ownedStyle xmi:type="diagram:FlatContainerStyle" uid="_cbb8UaxmEemwlpYoH3EBJw" borderSize="1" borderSizeComputationExpression="1" backgroundStyle="Liquid" foregroundColor="255,252,216">
<description xmi:type="style:FlatContainerStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:ContainerMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']"/>
<ownedElements xmi:type="diagram:DNodeListElement" uid="_WKyXMJwLEemMcoJXesiugw" name="extensionCode : String" tooltipText="">
<target xmi:type="ecore:EAttribute" href="dynamicextension.ecore#//context/ExtensionContext/extensionCode"/>
<semanticElements xmi:type="ecore:EAttribute" href="dynamicextension.ecore#//context/ExtensionContext/extensionCode"/>
<ownedElements xmi:type="diagram:DNodeListElement" uid="_WKyXMJwLEemMcoJXesiugw" name="customAccessPolicy : String" tooltipText="">
<target xmi:type="ecore:EAttribute" href="dynamicextension.ecore#//context/ExtensionContext/customAccessPolicy"/>
<semanticElements xmi:type="ecore:EAttribute" href="dynamicextension.ecore#//context/ExtensionContext/customAccessPolicy"/>
<ownedStyle xmi:type="diagram:BundledImage" uid="_YQ5vJpwLEemMcoJXesiugw" labelAlignment="LEFT">
<description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/>
</ownedElements>
<ownedElements xmi:type="diagram:DNodeListElement" uid="_TtYnEKxmEemwlpYoH3EBJw" name="addAtEnd : EBoolean = false" tooltipText="">
<target xmi:type="ecore:EAttribute" href="dynamicextension.ecore#//context/ExtensionContext/addAtEnd"/>
<semanticElements xmi:type="ecore:EAttribute" href="dynamicextension.ecore#//context/ExtensionContext/addAtEnd"/>
<ownedStyle xmi:type="diagram:BundledImage" uid="_cblGQqxmEemwlpYoH3EBJw" labelAlignment="LEFT">
<description xmi:type="style:BundledImageDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']/@style"/>
</ownedStyle>
<actualMapping xmi:type="description_1:NodeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@containerMappings[name='EC%20EClass']/@subNodeMappings[name='EC%20EAttribute']"/>
</ownedElements>
</ownedDiagramElements>
<ownedDiagramElements xmi:type="diagram:DEdge" uid="_ZeeVg5wLEemMcoJXesiugw" sourceNode="_UVx9YJwLEemMcoJXesiugw" targetNode="_RV7RkNqeEeiZr_aTcL-N7g">
<target xmi:type="ecore:EClass" href="dynamicextension.ecore#//context/ExtensionContext"/>
<semanticElements xmi:type="ecore:EClass" href="dynamicextension.ecore#//context/ExtensionContext"/>
<ownedStyle xmi:type="diagram:EdgeStyle" uid="_Zee8kJwLEemMcoJXesiugw" targetArrow="InputClosedArrow" routingStyle="tree">
<ownedStyle xmi:type="diagram:EdgeStyle" uid="_cbveVqxmEemwlpYoH3EBJw" targetArrow="InputClosedArrow" routingStyle="tree">
<description xmi:type="style:EdgeStyleDescription" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']/@style"/>
<beginLabelStyle xmi:type="diagram:BeginLabelStyle" uid="_Zee8kZwLEemMcoJXesiugw" showIcon="false">
<beginLabelStyle xmi:type="diagram:BeginLabelStyle" uid="_cbveV6xmEemwlpYoH3EBJw" showIcon="false">
<labelFormat>italic</labelFormat>
</beginLabelStyle>
<centerLabelStyle xmi:type="diagram:CenterLabelStyle" uid="_Zee8kpwLEemMcoJXesiugw" showIcon="false"/>
<centerLabelStyle xmi:type="diagram:CenterLabelStyle" uid="_cbveWKxmEemwlpYoH3EBJw" showIcon="false"/>
</ownedStyle>
<actualMapping xmi:type="description_1:EdgeMapping" href="platform:/plugin/org.eclipse.emf.ecoretools.design/description/ecore.odesign#//@ownedViewpoints[name='Design']/@ownedRepresentations[name='Entities']/@defaultLayer/@edgeMappings[name='EC%20ESupertypes']"/>
</ownedDiagramElements>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
eType="#//util/helperattributes/Prerequisite"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ExtensionContext" eSuperTypes="#//context/UserDeclaredContext">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="extensionCode" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="customAccessPolicy" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="addAtEnd" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="IntegralComparisonContext" eSuperTypes="#//context/ComparisonContext">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="threshold" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EInt"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
ecoreFeature="ecore:EReference dynamicextension.ecore#//context/PrerequisiteContext/prerequisite"/>
</genClasses>
<genClasses ecoreClass="dynamicextension.ecore#//context/ExtensionContext">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute dynamicextension.ecore#//context/ExtensionContext/extensionCode"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute dynamicextension.ecore#//context/ExtensionContext/customAccessPolicy"/>
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute dynamicextension.ecore#//context/ExtensionContext/addAtEnd"/>
</genClasses>
<genClasses ecoreClass="dynamicextension.ecore#//context/IntegralComparisonContext">
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute dynamicextension.ecore#//context/IntegralComparisonContext/threshold"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,22 @@ public interface ContextPackage extends EPackage {
int EXTENSION_CONTEXT__ENTITY_NAME = USER_DECLARED_CONTEXT__ENTITY_NAME;

/**
* The feature id for the '<em><b>Extension Code</b></em>' attribute.
* The feature id for the '<em><b>Custom Access Policy</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int EXTENSION_CONTEXT__EXTENSION_CODE = USER_DECLARED_CONTEXT_FEATURE_COUNT + 0;
int EXTENSION_CONTEXT__CUSTOM_ACCESS_POLICY = USER_DECLARED_CONTEXT_FEATURE_COUNT + 0;

/**
* The feature id for the '<em><b>Add At End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
* @ordered
*/
int EXTENSION_CONTEXT__ADD_AT_END = USER_DECLARED_CONTEXT_FEATURE_COUNT + 1;

/**
* The number of structural features of the '<em>Extension Context</em>' class.
Expand All @@ -685,7 +694,7 @@ public interface ContextPackage extends EPackage {
* @generated
* @ordered
*/
int EXTENSION_CONTEXT_FEATURE_COUNT = USER_DECLARED_CONTEXT_FEATURE_COUNT + 1;
int EXTENSION_CONTEXT_FEATURE_COUNT = USER_DECLARED_CONTEXT_FEATURE_COUNT + 2;

/**
* The meta object id for the '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.impl.IntegralComparisonContextImpl <em>Integral Comparison Context</em>}' class.
Expand Down Expand Up @@ -1069,15 +1078,26 @@ public interface ContextPackage extends EPackage {
EClass getExtensionContext();

/**
* Returns the meta object for the attribute '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getExtensionCode <em>Extension Code</em>}'.
* Returns the meta object for the attribute '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getCustomAccessPolicy <em>Custom Access Policy</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Custom Access Policy</em>'.
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getCustomAccessPolicy()
* @see #getExtensionContext()
* @generated
*/
EAttribute getExtensionContext_CustomAccessPolicy();

/**
* Returns the meta object for the attribute '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#isAddAtEnd <em>Add At End</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Extension Code</em>'.
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getExtensionCode()
* @return the meta object for the attribute '<em>Add At End</em>'.
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#isAddAtEnd()
* @see #getExtensionContext()
* @generated
*/
EAttribute getExtensionContext_ExtensionCode();
EAttribute getExtensionContext_AddAtEnd();

/**
* Returns the meta object for class '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.IntegralComparisonContext <em>Integral Comparison Context</em>}'.
Expand Down Expand Up @@ -1382,12 +1402,20 @@ interface Literals {
EClass EXTENSION_CONTEXT = eINSTANCE.getExtensionContext();

/**
* The meta object literal for the '<em><b>Extension Code</b></em>' attribute feature.
* The meta object literal for the '<em><b>Custom Access Policy</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute EXTENSION_CONTEXT__CUSTOM_ACCESS_POLICY = eINSTANCE.getExtensionContext_CustomAccessPolicy();

/**
* The meta object literal for the '<em><b>Add At End</b></em>' attribute feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
EAttribute EXTENSION_CONTEXT__EXTENSION_CODE = eINSTANCE.getExtensionContext_ExtensionCode();
EAttribute EXTENSION_CONTEXT__ADD_AT_END = eINSTANCE.getExtensionContext_AddAtEnd();

/**
* The meta object literal for the '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.impl.IntegralComparisonContextImpl <em>Integral Comparison Context</em>}' class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getExtensionCode <em>Extension Code</em>}</li>
* <li>{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getCustomAccessPolicy <em>Custom Access Policy</em>}</li>
* <li>{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#isAddAtEnd <em>Add At End</em>}</li>
* </ul>
*
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ContextPackage#getExtensionContext()
Expand All @@ -20,25 +21,47 @@
*/
public interface ExtensionContext extends UserDeclaredContext {
/**
* Returns the value of the '<em><b>Extension Code</b></em>' attribute.
* Returns the value of the '<em><b>Custom Access Policy</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Extension Code</em>' attribute.
* @see #setExtensionCode(String)
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ContextPackage#getExtensionContext_ExtensionCode()
* @return the value of the '<em>Custom Access Policy</em>' attribute.
* @see #setCustomAccessPolicy(String)
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ContextPackage#getExtensionContext_CustomAccessPolicy()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
* @generated
*/
String getExtensionCode();
String getCustomAccessPolicy();

/**
* Sets the value of the '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getExtensionCode <em>Extension Code</em>}' attribute.
* Sets the value of the '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#getCustomAccessPolicy <em>Custom Access Policy</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Extension Code</em>' attribute.
* @see #getExtensionCode()
* @param value the new value of the '<em>Custom Access Policy</em>' attribute.
* @see #getCustomAccessPolicy()
* @generated
*/
void setExtensionCode(String value);
void setCustomAccessPolicy(String value);

/**
* Returns the value of the '<em><b>Add At End</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Add At End</em>' attribute.
* @see #setAddAtEnd(boolean)
* @see org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ContextPackage#getExtensionContext_AddAtEnd()
* @model
* @generated
*/
boolean isAddAtEnd();

/**
* Sets the value of the '{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.ExtensionContext#isAddAtEnd <em>Add At End</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Add At End</em>' attribute.
* @see #isAddAtEnd()
* @generated
*/
void setAddAtEnd(boolean value);

} // ExtensionContext
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,20 @@ public EClass getExtensionContext() {
* @generated
*/
@Override
public EAttribute getExtensionContext_ExtensionCode() {
public EAttribute getExtensionContext_CustomAccessPolicy() {
return (EAttribute) extensionContextEClass.getEStructuralFeatures().get(0);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public EAttribute getExtensionContext_AddAtEnd() {
return (EAttribute) extensionContextEClass.getEStructuralFeatures().get(1);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
Expand Down Expand Up @@ -659,7 +669,8 @@ public void createPackageContents() {
createEReference(prerequisiteContextEClass, PREREQUISITE_CONTEXT__PREREQUISITE);

extensionContextEClass = createEClass(EXTENSION_CONTEXT);
createEAttribute(extensionContextEClass, EXTENSION_CONTEXT__EXTENSION_CODE);
createEAttribute(extensionContextEClass, EXTENSION_CONTEXT__CUSTOM_ACCESS_POLICY);
createEAttribute(extensionContextEClass, EXTENSION_CONTEXT__ADD_AT_END);

integralComparisonContextEClass = createEClass(INTEGRAL_COMPARISON_CONTEXT);
createEAttribute(integralComparisonContextEClass, INTEGRAL_COMPARISON_CONTEXT__THRESHOLD);
Expand Down Expand Up @@ -803,7 +814,10 @@ public void initializePackageContents() {

initEClass(extensionContextEClass, ExtensionContext.class, "ExtensionContext", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getExtensionContext_ExtensionCode(), theXMLTypePackage.getString(), "extensionCode", null, 0, 1,
initEAttribute(getExtensionContext_CustomAccessPolicy(), theXMLTypePackage.getString(), "customAccessPolicy",
null, 0, 1, ExtensionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
initEAttribute(getExtensionContext_AddAtEnd(), theEcorePackage.getEBoolean(), "addAtEnd", null, 0, 1,
ExtensionContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.impl.ExtensionContextImpl#getExtensionCode <em>Extension Code</em>}</li>
* <li>{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.impl.ExtensionContextImpl#getCustomAccessPolicy <em>Custom Access Policy</em>}</li>
* <li>{@link org.palladiosimulator.pcm.dataprocessing.dynamicextension.context.impl.ExtensionContextImpl#isAddAtEnd <em>Add At End</em>}</li>
* </ul>
*
* @generated
Expand Down Expand Up @@ -46,8 +47,8 @@ protected EClass eStaticClass() {
* @generated
*/
@Override
public String getExtensionCode() {
return (String) eGet(ContextPackage.Literals.EXTENSION_CONTEXT__EXTENSION_CODE, true);
public String getCustomAccessPolicy() {
return (String) eGet(ContextPackage.Literals.EXTENSION_CONTEXT__CUSTOM_ACCESS_POLICY, true);
}

/**
Expand All @@ -56,8 +57,28 @@ public String getExtensionCode() {
* @generated
*/
@Override
public void setExtensionCode(String newExtensionCode) {
eSet(ContextPackage.Literals.EXTENSION_CONTEXT__EXTENSION_CODE, newExtensionCode);
public void setCustomAccessPolicy(String newCustomAccessPolicy) {
eSet(ContextPackage.Literals.EXTENSION_CONTEXT__CUSTOM_ACCESS_POLICY, newCustomAccessPolicy);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean isAddAtEnd() {
return (Boolean) eGet(ContextPackage.Literals.EXTENSION_CONTEXT__ADD_AT_END, true);
}

/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setAddAtEnd(boolean newAddAtEnd) {
eSet(ContextPackage.Literals.EXTENSION_CONTEXT__ADD_AT_END, newAddAtEnd);
}

} //ExtensionContextImpl

0 comments on commit 5d8cad7

Please sign in to comment.