diff options
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java')
1 files changed, 0 insertions, 323 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java deleted file mode 100644 index 36c3d0c47b9..00000000000 --- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src-gen/org/eclipse/papyrus/uml/elementtypesconfigurations/applystereotypeadviceconfiguration/impl/StereotypeToApplyImpl.java +++ /dev/null @@ -1,323 +0,0 @@ -/** - * Copyright (c) 2014 CEA LIST. - * - * - * 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.html - * - * Contributors: - * CEA LIST - Initial API and implementation - */ -package org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl; - -import java.util.Collection; - -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.EObjectImpl; - -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.ApplyStereotypeAdviceConfigurationPackage; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.FeatureToSet; -import org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.StereotypeToApply; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>Stereotype To Apply</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * </p> - * <ul> - * <li>{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#getStereotypeQualifiedName <em>Stereotype Qualified Name</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#isUpdateName <em>Update Name</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#getRequiredProfiles <em>Required Profiles</em>}</li> - * <li>{@link org.eclipse.papyrus.uml.elementtypesconfigurations.applystereotypeadviceconfiguration.impl.StereotypeToApplyImpl#getFeaturesToSet <em>Features To Set</em>}</li> - * </ul> - * - * @generated - */ -public class StereotypeToApplyImpl extends EObjectImpl implements StereotypeToApply { - /** - * The default value of the '{@link #getStereotypeQualifiedName() <em>Stereotype Qualified Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getStereotypeQualifiedName() - * @generated - * @ordered - */ - protected static final String STEREOTYPE_QUALIFIED_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getStereotypeQualifiedName() <em>Stereotype Qualified Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getStereotypeQualifiedName() - * @generated - * @ordered - */ - protected String stereotypeQualifiedName = STEREOTYPE_QUALIFIED_NAME_EDEFAULT; - - /** - * The default value of the '{@link #isUpdateName() <em>Update Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isUpdateName() - * @generated - * @ordered - */ - protected static final boolean UPDATE_NAME_EDEFAULT = false; - - /** - * The cached value of the '{@link #isUpdateName() <em>Update Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #isUpdateName() - * @generated - * @ordered - */ - protected boolean updateName = UPDATE_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getRequiredProfiles() <em>Required Profiles</em>}' attribute list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getRequiredProfiles() - * @generated - * @ordered - */ - protected EList<String> requiredProfiles; - - /** - * The cached value of the '{@link #getFeaturesToSet() <em>Features To Set</em>}' containment reference list. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getFeaturesToSet() - * @generated - * @ordered - */ - protected EList<FeatureToSet> featuresToSet; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected StereotypeToApplyImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return ApplyStereotypeAdviceConfigurationPackage.Literals.STEREOTYPE_TO_APPLY; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getStereotypeQualifiedName() { - return stereotypeQualifiedName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setStereotypeQualifiedName(String newStereotypeQualifiedName) { - String oldStereotypeQualifiedName = stereotypeQualifiedName; - stereotypeQualifiedName = newStereotypeQualifiedName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME, oldStereotypeQualifiedName, stereotypeQualifiedName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isUpdateName() { - return updateName; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setUpdateName(boolean newUpdateName) { - boolean oldUpdateName = updateName; - updateName = newUpdateName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME, oldUpdateName, updateName)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<String> getRequiredProfiles() { - if (requiredProfiles == null) { - requiredProfiles = new EDataTypeUniqueEList<String>(String.class, this, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES); - } - return requiredProfiles; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public EList<FeatureToSet> getFeaturesToSet() { - if (featuresToSet == null) { - featuresToSet = new EObjectContainmentEList<FeatureToSet>(FeatureToSet.class, this, ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET); - } - return featuresToSet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - return ((InternalEList<?>)getFeaturesToSet()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - return getStereotypeQualifiedName(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - return isUpdateName(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - return getRequiredProfiles(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - return getFeaturesToSet(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - setStereotypeQualifiedName((String)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - setUpdateName((Boolean)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - getRequiredProfiles().clear(); - getRequiredProfiles().addAll((Collection<? extends String>)newValue); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - getFeaturesToSet().clear(); - getFeaturesToSet().addAll((Collection<? extends FeatureToSet>)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - setStereotypeQualifiedName(STEREOTYPE_QUALIFIED_NAME_EDEFAULT); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - setUpdateName(UPDATE_NAME_EDEFAULT); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - getRequiredProfiles().clear(); - return; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - getFeaturesToSet().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__STEREOTYPE_QUALIFIED_NAME: - return STEREOTYPE_QUALIFIED_NAME_EDEFAULT == null ? stereotypeQualifiedName != null : !STEREOTYPE_QUALIFIED_NAME_EDEFAULT.equals(stereotypeQualifiedName); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__UPDATE_NAME: - return updateName != UPDATE_NAME_EDEFAULT; - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__REQUIRED_PROFILES: - return requiredProfiles != null && !requiredProfiles.isEmpty(); - case ApplyStereotypeAdviceConfigurationPackage.STEREOTYPE_TO_APPLY__FEATURES_TO_SET: - return featuresToSet != null && !featuresToSet.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (stereotypeQualifiedName: "); - result.append(stereotypeQualifiedName); - result.append(", updateName: "); - result.append(updateName); - result.append(", requiredProfiles: "); - result.append(requiredProfiles); - result.append(')'); - return result.toString(); - } - -} //StereotypeToApplyImpl |