diff options
Diffstat (limited to 'plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFGroupDescriptionImpl.java')
-rw-r--r-- | plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFGroupDescriptionImpl.java | 587 |
1 files changed, 109 insertions, 478 deletions
diff --git a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFGroupDescriptionImpl.java b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFGroupDescriptionImpl.java index 0e6dcb099..b9288efe3 100644 --- a/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFGroupDescriptionImpl.java +++ b/plugins/org.eclipse.eef/src-gen/org/eclipse/eef/impl/EEFGroupDescriptionImpl.java @@ -1,6 +1,6 @@ /** * Copyright (c) 2015 Obeo. - * All rights reserved. This program and the accompanying materials + * 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.htm @@ -8,56 +8,37 @@ */ package org.eclipse.eef.impl; -import java.util.Collection; - import org.eclipse.eef.EEFContainerDescription; import org.eclipse.eef.EEFGroupDescription; -import org.eclipse.eef.EEFValidation; import org.eclipse.eef.EefPackage; - import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; - import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.sirius.expression.UserDefinedVariable; - /** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>EEF Group Description</b></em>'. - * <!-- end-user-doc --> + * <!-- begin-user-doc --> An implementation of the model object '<em><b>EEF Group Description</b></em>'. <!-- + * end-user-doc --> * <p> * The following features are implemented: * </p> * <ul> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getIdentifier <em>Identifier</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getPreconditionExpression <em>Precondition Expression</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getUserDefinedVariables <em>User Defined Variables</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getLabelExpression <em>Label Expression</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getDomainClass <em>Domain Class</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getSemanticCandidateExpression <em>Semantic Candidate Expression</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getContainer <em>Container</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getCollapsibleExpression <em>Collapsible Expression</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getCollapsedByDefaultExpression <em>Collapsed By Default Expression</em>}</li> - * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getValidation <em>Validation</em>}</li> + * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getIdentifier <em>Identifier</em>}</li> + * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getLabelExpression <em>Label Expression</em>}</li> + * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getSemanticCandidateExpression + * <em>Semantic Candidate Expression</em>}</li> + * <li>{@link org.eclipse.eef.impl.EEFGroupDescriptionImpl#getContainer <em>Container</em>}</li> * </ul> * * @generated */ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implements EEFGroupDescription { /** - * The default value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The default value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * * @see #getIdentifier() * @generated * @ordered @@ -65,49 +46,19 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem protected static final String IDENTIFIER_EDEFAULT = null; /** - * The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached value of the '{@link #getIdentifier() <em>Identifier</em>}' attribute. <!-- begin-user-doc --> <!-- + * end-user-doc --> + * * @see #getIdentifier() * @generated * @ordered */ - protected String identifier = IDENTIFIER_EDEFAULT; - - /** - * The default value of the '{@link #getPreconditionExpression() <em>Precondition Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPreconditionExpression() - * @generated - * @ordered - */ - protected static final String PRECONDITION_EXPRESSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPreconditionExpression() <em>Precondition Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getPreconditionExpression() - * @generated - * @ordered - */ - protected String preconditionExpression = PRECONDITION_EXPRESSION_EDEFAULT; - - /** - * The cached value of the '{@link #getUserDefinedVariables() <em>User Defined Variables</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getUserDefinedVariables() - * @generated - * @ordered - */ - protected EList<UserDefinedVariable> userDefinedVariables; + protected String identifier = EEFGroupDescriptionImpl.IDENTIFIER_EDEFAULT; /** - * The default value of the '{@link #getLabelExpression() <em>Label Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The default value of the '{@link #getLabelExpression() <em>Label Expression</em>}' attribute. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * * @see #getLabelExpression() * @generated * @ordered @@ -115,39 +66,19 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem protected static final String LABEL_EXPRESSION_EDEFAULT = null; /** - * The cached value of the '{@link #getLabelExpression() <em>Label Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached value of the '{@link #getLabelExpression() <em>Label Expression</em>}' attribute. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * * @see #getLabelExpression() * @generated * @ordered */ - protected String labelExpression = LABEL_EXPRESSION_EDEFAULT; - - /** - * The default value of the '{@link #getDomainClass() <em>Domain Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDomainClass() - * @generated - * @ordered - */ - protected static final String DOMAIN_CLASS_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDomainClass() <em>Domain Class</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getDomainClass() - * @generated - * @ordered - */ - protected String domainClass = DOMAIN_CLASS_EDEFAULT; + protected String labelExpression = EEFGroupDescriptionImpl.LABEL_EXPRESSION_EDEFAULT; /** - * The default value of the '{@link #getSemanticCandidateExpression() <em>Semantic Candidate Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The default value of the '{@link #getSemanticCandidateExpression() <em>Semantic Candidate Expression</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getSemanticCandidateExpression() * @generated * @ordered @@ -155,19 +86,19 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem protected static final String SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT = null; /** - * The cached value of the '{@link #getSemanticCandidateExpression() <em>Semantic Candidate Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached value of the '{@link #getSemanticCandidateExpression() <em>Semantic Candidate Expression</em>}' + * attribute. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @see #getSemanticCandidateExpression() * @generated * @ordered */ - protected String semanticCandidateExpression = SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT; + protected String semanticCandidateExpression = EEFGroupDescriptionImpl.SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT; /** - * The cached value of the '{@link #getContainer() <em>Container</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached value of the '{@link #getContainer() <em>Container</em>}' containment reference. <!-- begin-user-doc + * --> <!-- end-user-doc --> + * * @see #getContainer() * @generated * @ordered @@ -175,58 +106,8 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem protected EEFContainerDescription container; /** - * The default value of the '{@link #getCollapsibleExpression() <em>Collapsible Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCollapsibleExpression() - * @generated - * @ordered - */ - protected static final String COLLAPSIBLE_EXPRESSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCollapsibleExpression() <em>Collapsible Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCollapsibleExpression() - * @generated - * @ordered - */ - protected String collapsibleExpression = COLLAPSIBLE_EXPRESSION_EDEFAULT; - - /** - * The default value of the '{@link #getCollapsedByDefaultExpression() <em>Collapsed By Default Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCollapsedByDefaultExpression() - * @generated - * @ordered - */ - protected static final String COLLAPSED_BY_DEFAULT_EXPRESSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getCollapsedByDefaultExpression() <em>Collapsed By Default Expression</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getCollapsedByDefaultExpression() - * @generated - * @ordered - */ - protected String collapsedByDefaultExpression = COLLAPSED_BY_DEFAULT_EXPRESSION_EDEFAULT; - - /** - * The cached value of the '{@link #getValidation() <em>Validation</em>}' containment reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getValidation() - * @generated - * @ordered - */ - protected EEFValidation validation; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected EEFGroupDescriptionImpl() { @@ -234,8 +115,8 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -244,8 +125,8 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -254,59 +135,22 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void setIdentifier(String newIdentifier) { String oldIdentifier = identifier; identifier = newIdentifier; - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__IDENTIFIER, oldIdentifier, identifier)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getPreconditionExpression() { - return preconditionExpression; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void setPreconditionExpression(String newPreconditionExpression) { - String oldPreconditionExpression = preconditionExpression; - preconditionExpression = newPreconditionExpression; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__PRECONDITION_EXPRESSION, - oldPreconditionExpression, preconditionExpression)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public EList<UserDefinedVariable> getUserDefinedVariables() { - if (userDefinedVariables == null) { - userDefinedVariables = new EObjectContainmentEList.Resolving<UserDefinedVariable>(UserDefinedVariable.class, this, - EefPackage.EEF_GROUP_DESCRIPTION__USER_DEFINED_VARIABLES); } - return userDefinedVariables; } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -315,45 +159,23 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void setLabelExpression(String newLabelExpression) { String oldLabelExpression = labelExpression; labelExpression = newLabelExpression; - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__LABEL_EXPRESSION, oldLabelExpression, labelExpression)); + } } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getDomainClass() { - return domainClass; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void setDomainClass(String newDomainClass) { - String oldDomainClass = domainClass; - domainClass = newDomainClass; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__DOMAIN_CLASS, oldDomainClass, domainClass)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -362,22 +184,23 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void setSemanticCandidateExpression(String newSemanticCandidateExpression) { String oldSemanticCandidateExpression = semanticCandidateExpression; semanticCandidateExpression = newSemanticCandidateExpression; - if (eNotificationRequired()) + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__SEMANTIC_CANDIDATE_EXPRESSION, oldSemanticCandidateExpression, semanticCandidateExpression)); + } } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -387,23 +210,26 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem container = (EEFContainerDescription) eResolveProxy(oldContainer); if (container != oldContainer) { InternalEObject newContainer = (InternalEObject) container; - NotificationChain msgs = oldContainer.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, - null); + NotificationChain msgs = oldContainer.eInverseRemove(this, + InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, null); if (newContainer.eInternalContainer() == null) { - msgs = newContainer.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, msgs); + msgs = newContainer.eInverseAdd(this, InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, + msgs); } - if (msgs != null) + if (msgs != null) { msgs.dispatch(); - if (eNotificationRequired()) + } + if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, oldContainer, container)); + } } } return container; } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public EEFContainerDescription basicGetContainer() { @@ -411,8 +237,8 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ public NotificationChain basicSetContainer(EEFContainerDescription newContainer, NotificationChain msgs) { @@ -421,182 +247,58 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, oldContainer, newContainer); - if (msgs == null) + if (msgs == null) { msgs = notification; - else + } else { msgs.add(notification); + } } return msgs; } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void setContainer(EEFContainerDescription newContainer) { if (newContainer != container) { NotificationChain msgs = null; - if (container != null) - msgs = ((InternalEObject) container).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, - msgs); - if (newContainer != null) - msgs = ((InternalEObject) newContainer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, - msgs); + if (container != null) { + msgs = ((InternalEObject) container).eInverseRemove(this, + InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, msgs); + } + if (newContainer != null) { + msgs = ((InternalEObject) newContainer).eInverseAdd(this, + InternalEObject.EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, null, msgs); + } msgs = basicSetContainer(newContainer, msgs); - if (msgs != null) + if (msgs != null) { msgs.dispatch(); - } else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, newContainer, newContainer)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCollapsibleExpression() { - return collapsibleExpression; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void setCollapsibleExpression(String newCollapsibleExpression) { - String oldCollapsibleExpression = collapsibleExpression; - collapsibleExpression = newCollapsibleExpression; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSIBLE_EXPRESSION, oldCollapsibleExpression, - collapsibleExpression)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String getCollapsedByDefaultExpression() { - return collapsedByDefaultExpression; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void setCollapsedByDefaultExpression(String newCollapsedByDefaultExpression) { - String oldCollapsedByDefaultExpression = collapsedByDefaultExpression; - collapsedByDefaultExpression = newCollapsedByDefaultExpression; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSED_BY_DEFAULT_EXPRESSION, - oldCollapsedByDefaultExpression, collapsedByDefaultExpression)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public EEFValidation getValidation() { - if (validation != null && validation.eIsProxy()) { - InternalEObject oldValidation = (InternalEObject) validation; - validation = (EEFValidation) eResolveProxy(oldValidation); - if (validation != oldValidation) { - InternalEObject newValidation = (InternalEObject) validation; - NotificationChain msgs = oldValidation.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, - null, null); - if (newValidation.eInternalContainer() == null) { - msgs = newValidation.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, null, msgs); - } - if (msgs != null) - msgs.dispatch(); - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, oldValidation, - validation)); } + } else if (eNotificationRequired()) { + eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER, newContainer, newContainer)); } - return validation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EEFValidation basicGetValidation() { - return validation; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public NotificationChain basicSetValidation(EEFValidation newValidation, NotificationChain msgs) { - EEFValidation oldValidation = validation; - validation = newValidation; - if (eNotificationRequired()) { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, - oldValidation, newValidation); - if (msgs == null) - msgs = notification; - else - msgs.add(notification); - } - return msgs; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void setValidation(EEFValidation newValidation) { - if (newValidation != validation) { - NotificationChain msgs = null; - if (validation != null) - msgs = ((InternalEObject) validation).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, - null, msgs); - if (newValidation != null) - msgs = ((InternalEObject) newValidation).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, - null, msgs); - msgs = basicSetValidation(newValidation, msgs); - if (msgs != null) - msgs.dispatch(); - } else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION, newValidation, newValidation)); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { - case EefPackage.EEF_GROUP_DESCRIPTION__USER_DEFINED_VARIABLES: - return ((InternalEList<?>) getUserDefinedVariables()).basicRemove(otherEnd, msgs); case EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER: return basicSetContainer(null, msgs); - case EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION: - return basicSetValidation(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override @@ -604,181 +306,110 @@ public class EEFGroupDescriptionImpl extends MinimalEObjectImpl.Container implem switch (featureID) { case EefPackage.EEF_GROUP_DESCRIPTION__IDENTIFIER: return getIdentifier(); - case EefPackage.EEF_GROUP_DESCRIPTION__PRECONDITION_EXPRESSION: - return getPreconditionExpression(); - case EefPackage.EEF_GROUP_DESCRIPTION__USER_DEFINED_VARIABLES: - return getUserDefinedVariables(); case EefPackage.EEF_GROUP_DESCRIPTION__LABEL_EXPRESSION: return getLabelExpression(); - case EefPackage.EEF_GROUP_DESCRIPTION__DOMAIN_CLASS: - return getDomainClass(); case EefPackage.EEF_GROUP_DESCRIPTION__SEMANTIC_CANDIDATE_EXPRESSION: return getSemanticCandidateExpression(); case EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER: - if (resolve) + if (resolve) { return getContainer(); + } return basicGetContainer(); - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSIBLE_EXPRESSION: - return getCollapsibleExpression(); - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSED_BY_DEFAULT_EXPRESSION: - return getCollapsedByDefaultExpression(); - case EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION: - if (resolve) - return getValidation(); - return basicGetValidation(); } return super.eGet(featureID, resolve, coreType); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ - @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case EefPackage.EEF_GROUP_DESCRIPTION__IDENTIFIER: setIdentifier((String) newValue); return; - case EefPackage.EEF_GROUP_DESCRIPTION__PRECONDITION_EXPRESSION: - setPreconditionExpression((String) newValue); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__USER_DEFINED_VARIABLES: - getUserDefinedVariables().clear(); - getUserDefinedVariables().addAll((Collection<? extends UserDefinedVariable>) newValue); - return; case EefPackage.EEF_GROUP_DESCRIPTION__LABEL_EXPRESSION: setLabelExpression((String) newValue); return; - case EefPackage.EEF_GROUP_DESCRIPTION__DOMAIN_CLASS: - setDomainClass((String) newValue); - return; case EefPackage.EEF_GROUP_DESCRIPTION__SEMANTIC_CANDIDATE_EXPRESSION: setSemanticCandidateExpression((String) newValue); return; case EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER: setContainer((EEFContainerDescription) newValue); return; - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSIBLE_EXPRESSION: - setCollapsibleExpression((String) newValue); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSED_BY_DEFAULT_EXPRESSION: - setCollapsedByDefaultExpression((String) newValue); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION: - setValidation((EEFValidation) newValue); - return; } super.eSet(featureID, newValue); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case EefPackage.EEF_GROUP_DESCRIPTION__IDENTIFIER: - setIdentifier(IDENTIFIER_EDEFAULT); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__PRECONDITION_EXPRESSION: - setPreconditionExpression(PRECONDITION_EXPRESSION_EDEFAULT); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__USER_DEFINED_VARIABLES: - getUserDefinedVariables().clear(); + setIdentifier(EEFGroupDescriptionImpl.IDENTIFIER_EDEFAULT); return; case EefPackage.EEF_GROUP_DESCRIPTION__LABEL_EXPRESSION: - setLabelExpression(LABEL_EXPRESSION_EDEFAULT); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__DOMAIN_CLASS: - setDomainClass(DOMAIN_CLASS_EDEFAULT); + setLabelExpression(EEFGroupDescriptionImpl.LABEL_EXPRESSION_EDEFAULT); return; case EefPackage.EEF_GROUP_DESCRIPTION__SEMANTIC_CANDIDATE_EXPRESSION: - setSemanticCandidateExpression(SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT); + setSemanticCandidateExpression(EEFGroupDescriptionImpl.SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT); return; case EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER: setContainer((EEFContainerDescription) null); return; - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSIBLE_EXPRESSION: - setCollapsibleExpression(COLLAPSIBLE_EXPRESSION_EDEFAULT); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSED_BY_DEFAULT_EXPRESSION: - setCollapsedByDefaultExpression(COLLAPSED_BY_DEFAULT_EXPRESSION_EDEFAULT); - return; - case EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION: - setValidation((EEFValidation) null); - return; } super.eUnset(featureID); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EefPackage.EEF_GROUP_DESCRIPTION__IDENTIFIER: - return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals(identifier); - case EefPackage.EEF_GROUP_DESCRIPTION__PRECONDITION_EXPRESSION: - return PRECONDITION_EXPRESSION_EDEFAULT == null ? preconditionExpression != null - : !PRECONDITION_EXPRESSION_EDEFAULT.equals(preconditionExpression); - case EefPackage.EEF_GROUP_DESCRIPTION__USER_DEFINED_VARIABLES: - return userDefinedVariables != null && !userDefinedVariables.isEmpty(); + return EEFGroupDescriptionImpl.IDENTIFIER_EDEFAULT == null ? identifier != null + : !EEFGroupDescriptionImpl.IDENTIFIER_EDEFAULT.equals(identifier); case EefPackage.EEF_GROUP_DESCRIPTION__LABEL_EXPRESSION: - return LABEL_EXPRESSION_EDEFAULT == null ? labelExpression != null : !LABEL_EXPRESSION_EDEFAULT.equals(labelExpression); - case EefPackage.EEF_GROUP_DESCRIPTION__DOMAIN_CLASS: - return DOMAIN_CLASS_EDEFAULT == null ? domainClass != null : !DOMAIN_CLASS_EDEFAULT.equals(domainClass); + return EEFGroupDescriptionImpl.LABEL_EXPRESSION_EDEFAULT == null ? labelExpression != null + : !EEFGroupDescriptionImpl.LABEL_EXPRESSION_EDEFAULT.equals(labelExpression); case EefPackage.EEF_GROUP_DESCRIPTION__SEMANTIC_CANDIDATE_EXPRESSION: - return SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT == null ? semanticCandidateExpression != null - : !SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT.equals(semanticCandidateExpression); + return EEFGroupDescriptionImpl.SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT == null ? semanticCandidateExpression != null + : !EEFGroupDescriptionImpl.SEMANTIC_CANDIDATE_EXPRESSION_EDEFAULT.equals(semanticCandidateExpression); case EefPackage.EEF_GROUP_DESCRIPTION__CONTAINER: return container != null; - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSIBLE_EXPRESSION: - return COLLAPSIBLE_EXPRESSION_EDEFAULT == null ? collapsibleExpression != null - : !COLLAPSIBLE_EXPRESSION_EDEFAULT.equals(collapsibleExpression); - case EefPackage.EEF_GROUP_DESCRIPTION__COLLAPSED_BY_DEFAULT_EXPRESSION: - return COLLAPSED_BY_DEFAULT_EXPRESSION_EDEFAULT == null ? collapsedByDefaultExpression != null - : !COLLAPSED_BY_DEFAULT_EXPRESSION_EDEFAULT.equals(collapsedByDefaultExpression); - case EefPackage.EEF_GROUP_DESCRIPTION__VALIDATION: - return validation != null; } return super.eIsSet(featureID); } /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ @Override public String toString() { - if (eIsProxy()) + if (eIsProxy()) { return super.toString(); + } StringBuffer result = new StringBuffer(super.toString()); result.append(" (identifier: "); //$NON-NLS-1$ result.append(identifier); - result.append(", preconditionExpression: "); //$NON-NLS-1$ - result.append(preconditionExpression); result.append(", labelExpression: "); //$NON-NLS-1$ result.append(labelExpression); - result.append(", domainClass: "); //$NON-NLS-1$ - result.append(domainClass); result.append(", semanticCandidateExpression: "); //$NON-NLS-1$ result.append(semanticCandidateExpression); - result.append(", collapsibleExpression: "); //$NON-NLS-1$ - result.append(collapsibleExpression); - result.append(", collapsedByDefaultExpression: "); //$NON-NLS-1$ - result.append(collapsedByDefaultExpression); result.append(')'); return result.toString(); } -} //EEFGroupDescriptionImpl +} // EEFGroupDescriptionImpl |