blob: 05a54995808f3351a834e47a7b024a06534257d9 [file] [log] [blame]
/**
* Copyright (c) 2016 CEA LIST and others.
*
* 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.interoperability.rpy.rpymetamodel.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.util.EDataTypeEList;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IDescription;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IMHyperLink;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IModelElement;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IPropertyContainer;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.ITag;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IUnit;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.UMLRpyPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>ITag</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getId <em>Id</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getModifiedTimeWeak <em>Modified Time Weak</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getValueSpecifications <em>Value Specifications</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getTypeOf <em>Type Of</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getMyState <em>My State</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getMultiplicity <em>Multiplicity</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getProperties <em>Properties</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getDescription <em>Description</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getHyperLinks <em>Hyper Links</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getBase <em>Base</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getMetaClass <em>Meta Class</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getDefaultValue <em>Default Value</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ITagImpl#getCodeUpdateCGTime <em>Code Update CG Time</em>}</li>
* </ul>
*
* @generated
*/
public class ITagImpl extends IVariableImpl implements ITag {
/**
* The default value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getId() <em>Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getId()
* @generated
* @ordered
*/
protected String id = ID_EDEFAULT;
/**
* The default value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected static final String NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getName() <em>Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getName()
* @generated
* @ordered
*/
protected String name = NAME_EDEFAULT;
/**
* The cached value of the '{@link #getModifiedTimeWeak() <em>Modified Time Weak</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getModifiedTimeWeak()
* @generated
* @ordered
*/
protected EList<String> modifiedTimeWeak;
/**
* The cached value of the '{@link #getValueSpecifications() <em>Value Specifications</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getValueSpecifications()
* @generated
* @ordered
*/
protected EList<IModelElement> valueSpecifications;
/**
* The cached value of the '{@link #getTypeOf() <em>Type Of</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTypeOf()
* @generated
* @ordered
*/
protected IUnit typeOf;
/**
* The default value of the '{@link #getMyState() <em>My State</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMyState()
* @generated
* @ordered
*/
protected static final String MY_STATE_EDEFAULT = null;
/**
* The cached value of the '{@link #getMyState() <em>My State</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMyState()
* @generated
* @ordered
*/
protected String myState = MY_STATE_EDEFAULT;
/**
* The default value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMultiplicity()
* @generated
* @ordered
*/
protected static final String MULTIPLICITY_EDEFAULT = null;
/**
* The cached value of the '{@link #getMultiplicity() <em>Multiplicity</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMultiplicity()
* @generated
* @ordered
*/
protected String multiplicity = MULTIPLICITY_EDEFAULT;
/**
* The cached value of the '{@link #getProperties() <em>Properties</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getProperties()
* @generated
* @ordered
*/
protected IPropertyContainer properties;
/**
* The cached value of the '{@link #getDescription() <em>Description</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDescription()
* @generated
* @ordered
*/
protected IDescription description;
/**
* The cached value of the '{@link #getHyperLinks() <em>Hyper Links</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHyperLinks()
* @generated
* @ordered
*/
protected IMHyperLink hyperLinks;
/**
* The cached value of the '{@link #getBase() <em>Base</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getBase()
* @generated
* @ordered
*/
protected IUnit base;
/**
* The default value of the '{@link #getMetaClass() <em>Meta Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMetaClass()
* @generated
* @ordered
*/
protected static final String META_CLASS_EDEFAULT = null;
/**
* The cached value of the '{@link #getMetaClass() <em>Meta Class</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getMetaClass()
* @generated
* @ordered
*/
protected String metaClass = META_CLASS_EDEFAULT;
/**
* The default value of the '{@link #getDefaultValue() <em>Default Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDefaultValue()
* @generated
* @ordered
*/
protected static final String DEFAULT_VALUE_EDEFAULT = null;
/**
* The cached value of the '{@link #getDefaultValue() <em>Default Value</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDefaultValue()
* @generated
* @ordered
*/
protected String defaultValue = DEFAULT_VALUE_EDEFAULT;
/**
* The cached value of the '{@link #getCodeUpdateCGTime() <em>Code Update CG Time</em>}' attribute list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCodeUpdateCGTime()
* @generated
* @ordered
*/
protected EList<String> codeUpdateCGTime;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ITagImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return UMLRpyPackage.eINSTANCE.getITag();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getId() {
return id;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setId(String newId) {
String oldId = id;
id = newId;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__ID, oldId, id));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getName() {
return name;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setName(String newName) {
String oldName = name;
name = newName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<String> getModifiedTimeWeak() {
if (modifiedTimeWeak == null) {
modifiedTimeWeak = new EDataTypeEList<String>(String.class, this, UMLRpyPackage.ITAG__MODIFIED_TIME_WEAK);
}
return modifiedTimeWeak;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<IModelElement> getValueSpecifications() {
if (valueSpecifications == null) {
valueSpecifications = new EObjectContainmentEList.Resolving<IModelElement>(IModelElement.class, this, UMLRpyPackage.ITAG__VALUE_SPECIFICATIONS);
}
return valueSpecifications;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IUnit getTypeOf() {
if (typeOf != null && typeOf.eIsProxy()) {
InternalEObject oldTypeOf = (InternalEObject)typeOf;
typeOf = (IUnit)eResolveProxy(oldTypeOf);
if (typeOf != oldTypeOf) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ITAG__TYPE_OF, oldTypeOf, typeOf));
}
}
return typeOf;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IUnit basicGetTypeOf() {
return typeOf;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTypeOf(IUnit newTypeOf) {
IUnit oldTypeOf = typeOf;
typeOf = newTypeOf;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__TYPE_OF, oldTypeOf, typeOf));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getMyState() {
return myState;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMyState(String newMyState) {
String oldMyState = myState;
myState = newMyState;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__MY_STATE, oldMyState, myState));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getMultiplicity() {
return multiplicity;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMultiplicity(String newMultiplicity) {
String oldMultiplicity = multiplicity;
multiplicity = newMultiplicity;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__MULTIPLICITY, oldMultiplicity, multiplicity));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IPropertyContainer getProperties() {
if (properties != null && properties.eIsProxy()) {
InternalEObject oldProperties = (InternalEObject)properties;
properties = (IPropertyContainer)eResolveProxy(oldProperties);
if (properties != oldProperties) {
InternalEObject newProperties = (InternalEObject)properties;
NotificationChain msgs = oldProperties.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__PROPERTIES, null, null);
if (newProperties.eInternalContainer() == null) {
msgs = newProperties.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__PROPERTIES, null, msgs);
}
if (msgs != null) msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ITAG__PROPERTIES, oldProperties, properties));
}
}
return properties;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IPropertyContainer basicGetProperties() {
return properties;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetProperties(IPropertyContainer newProperties, NotificationChain msgs) {
IPropertyContainer oldProperties = properties;
properties = newProperties;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__PROPERTIES, oldProperties, newProperties);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setProperties(IPropertyContainer newProperties) {
if (newProperties != properties) {
NotificationChain msgs = null;
if (properties != null)
msgs = ((InternalEObject)properties).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__PROPERTIES, null, msgs);
if (newProperties != null)
msgs = ((InternalEObject)newProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__PROPERTIES, null, msgs);
msgs = basicSetProperties(newProperties, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__PROPERTIES, newProperties, newProperties));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IDescription getDescription() {
if (description != null && description.eIsProxy()) {
InternalEObject oldDescription = (InternalEObject)description;
description = (IDescription)eResolveProxy(oldDescription);
if (description != oldDescription) {
InternalEObject newDescription = (InternalEObject)description;
NotificationChain msgs = oldDescription.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__DESCRIPTION, null, null);
if (newDescription.eInternalContainer() == null) {
msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__DESCRIPTION, null, msgs);
}
if (msgs != null) msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ITAG__DESCRIPTION, oldDescription, description));
}
}
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IDescription basicGetDescription() {
return description;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDescription(IDescription newDescription, NotificationChain msgs) {
IDescription oldDescription = description;
description = newDescription;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__DESCRIPTION, oldDescription, newDescription);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDescription(IDescription newDescription) {
if (newDescription != description) {
NotificationChain msgs = null;
if (description != null)
msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__DESCRIPTION, null, msgs);
if (newDescription != null)
msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__DESCRIPTION, null, msgs);
msgs = basicSetDescription(newDescription, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__DESCRIPTION, newDescription, newDescription));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IMHyperLink getHyperLinks() {
if (hyperLinks != null && hyperLinks.eIsProxy()) {
InternalEObject oldHyperLinks = (InternalEObject)hyperLinks;
hyperLinks = (IMHyperLink)eResolveProxy(oldHyperLinks);
if (hyperLinks != oldHyperLinks) {
InternalEObject newHyperLinks = (InternalEObject)hyperLinks;
NotificationChain msgs = oldHyperLinks.eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__HYPER_LINKS, null, null);
if (newHyperLinks.eInternalContainer() == null) {
msgs = newHyperLinks.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__HYPER_LINKS, null, msgs);
}
if (msgs != null) msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ITAG__HYPER_LINKS, oldHyperLinks, hyperLinks));
}
}
return hyperLinks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IMHyperLink basicGetHyperLinks() {
return hyperLinks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetHyperLinks(IMHyperLink newHyperLinks, NotificationChain msgs) {
IMHyperLink oldHyperLinks = hyperLinks;
hyperLinks = newHyperLinks;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__HYPER_LINKS, oldHyperLinks, newHyperLinks);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setHyperLinks(IMHyperLink newHyperLinks) {
if (newHyperLinks != hyperLinks) {
NotificationChain msgs = null;
if (hyperLinks != null)
msgs = ((InternalEObject)hyperLinks).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__HYPER_LINKS, null, msgs);
if (newHyperLinks != null)
msgs = ((InternalEObject)newHyperLinks).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ITAG__HYPER_LINKS, null, msgs);
msgs = basicSetHyperLinks(newHyperLinks, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__HYPER_LINKS, newHyperLinks, newHyperLinks));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IUnit getBase() {
if (base != null && base.eIsProxy()) {
InternalEObject oldBase = (InternalEObject)base;
base = (IUnit)eResolveProxy(oldBase);
if (base != oldBase) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ITAG__BASE, oldBase, base));
}
}
return base;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IUnit basicGetBase() {
return base;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setBase(IUnit newBase) {
IUnit oldBase = base;
base = newBase;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__BASE, oldBase, base));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getMetaClass() {
return metaClass;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setMetaClass(String newMetaClass) {
String oldMetaClass = metaClass;
metaClass = newMetaClass;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__META_CLASS, oldMetaClass, metaClass));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getDefaultValue() {
return defaultValue;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDefaultValue(String newDefaultValue) {
String oldDefaultValue = defaultValue;
defaultValue = newDefaultValue;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ITAG__DEFAULT_VALUE, oldDefaultValue, defaultValue));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<String> getCodeUpdateCGTime() {
if (codeUpdateCGTime == null) {
codeUpdateCGTime = new EDataTypeEList<String>(String.class, this, UMLRpyPackage.ITAG__CODE_UPDATE_CG_TIME);
}
return codeUpdateCGTime;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLRpyPackage.ITAG__VALUE_SPECIFICATIONS:
return ((InternalEList<?>)getValueSpecifications()).basicRemove(otherEnd, msgs);
case UMLRpyPackage.ITAG__PROPERTIES:
return basicSetProperties(null, msgs);
case UMLRpyPackage.ITAG__DESCRIPTION:
return basicSetDescription(null, msgs);
case UMLRpyPackage.ITAG__HYPER_LINKS:
return basicSetHyperLinks(null, 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 UMLRpyPackage.ITAG__ID:
return getId();
case UMLRpyPackage.ITAG__NAME:
return getName();
case UMLRpyPackage.ITAG__MODIFIED_TIME_WEAK:
return getModifiedTimeWeak();
case UMLRpyPackage.ITAG__VALUE_SPECIFICATIONS:
return getValueSpecifications();
case UMLRpyPackage.ITAG__TYPE_OF:
if (resolve) return getTypeOf();
return basicGetTypeOf();
case UMLRpyPackage.ITAG__MY_STATE:
return getMyState();
case UMLRpyPackage.ITAG__MULTIPLICITY:
return getMultiplicity();
case UMLRpyPackage.ITAG__PROPERTIES:
if (resolve) return getProperties();
return basicGetProperties();
case UMLRpyPackage.ITAG__DESCRIPTION:
if (resolve) return getDescription();
return basicGetDescription();
case UMLRpyPackage.ITAG__HYPER_LINKS:
if (resolve) return getHyperLinks();
return basicGetHyperLinks();
case UMLRpyPackage.ITAG__BASE:
if (resolve) return getBase();
return basicGetBase();
case UMLRpyPackage.ITAG__META_CLASS:
return getMetaClass();
case UMLRpyPackage.ITAG__DEFAULT_VALUE:
return getDefaultValue();
case UMLRpyPackage.ITAG__CODE_UPDATE_CG_TIME:
return getCodeUpdateCGTime();
}
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 UMLRpyPackage.ITAG__ID:
setId((String)newValue);
return;
case UMLRpyPackage.ITAG__NAME:
setName((String)newValue);
return;
case UMLRpyPackage.ITAG__MODIFIED_TIME_WEAK:
getModifiedTimeWeak().clear();
getModifiedTimeWeak().addAll((Collection<? extends String>)newValue);
return;
case UMLRpyPackage.ITAG__VALUE_SPECIFICATIONS:
getValueSpecifications().clear();
getValueSpecifications().addAll((Collection<? extends IModelElement>)newValue);
return;
case UMLRpyPackage.ITAG__TYPE_OF:
setTypeOf((IUnit)newValue);
return;
case UMLRpyPackage.ITAG__MY_STATE:
setMyState((String)newValue);
return;
case UMLRpyPackage.ITAG__MULTIPLICITY:
setMultiplicity((String)newValue);
return;
case UMLRpyPackage.ITAG__PROPERTIES:
setProperties((IPropertyContainer)newValue);
return;
case UMLRpyPackage.ITAG__DESCRIPTION:
setDescription((IDescription)newValue);
return;
case UMLRpyPackage.ITAG__HYPER_LINKS:
setHyperLinks((IMHyperLink)newValue);
return;
case UMLRpyPackage.ITAG__BASE:
setBase((IUnit)newValue);
return;
case UMLRpyPackage.ITAG__META_CLASS:
setMetaClass((String)newValue);
return;
case UMLRpyPackage.ITAG__DEFAULT_VALUE:
setDefaultValue((String)newValue);
return;
case UMLRpyPackage.ITAG__CODE_UPDATE_CG_TIME:
getCodeUpdateCGTime().clear();
getCodeUpdateCGTime().addAll((Collection<? extends String>)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case UMLRpyPackage.ITAG__ID:
setId(ID_EDEFAULT);
return;
case UMLRpyPackage.ITAG__NAME:
setName(NAME_EDEFAULT);
return;
case UMLRpyPackage.ITAG__MODIFIED_TIME_WEAK:
getModifiedTimeWeak().clear();
return;
case UMLRpyPackage.ITAG__VALUE_SPECIFICATIONS:
getValueSpecifications().clear();
return;
case UMLRpyPackage.ITAG__TYPE_OF:
setTypeOf((IUnit)null);
return;
case UMLRpyPackage.ITAG__MY_STATE:
setMyState(MY_STATE_EDEFAULT);
return;
case UMLRpyPackage.ITAG__MULTIPLICITY:
setMultiplicity(MULTIPLICITY_EDEFAULT);
return;
case UMLRpyPackage.ITAG__PROPERTIES:
setProperties((IPropertyContainer)null);
return;
case UMLRpyPackage.ITAG__DESCRIPTION:
setDescription((IDescription)null);
return;
case UMLRpyPackage.ITAG__HYPER_LINKS:
setHyperLinks((IMHyperLink)null);
return;
case UMLRpyPackage.ITAG__BASE:
setBase((IUnit)null);
return;
case UMLRpyPackage.ITAG__META_CLASS:
setMetaClass(META_CLASS_EDEFAULT);
return;
case UMLRpyPackage.ITAG__DEFAULT_VALUE:
setDefaultValue(DEFAULT_VALUE_EDEFAULT);
return;
case UMLRpyPackage.ITAG__CODE_UPDATE_CG_TIME:
getCodeUpdateCGTime().clear();
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case UMLRpyPackage.ITAG__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case UMLRpyPackage.ITAG__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case UMLRpyPackage.ITAG__MODIFIED_TIME_WEAK:
return modifiedTimeWeak != null && !modifiedTimeWeak.isEmpty();
case UMLRpyPackage.ITAG__VALUE_SPECIFICATIONS:
return valueSpecifications != null && !valueSpecifications.isEmpty();
case UMLRpyPackage.ITAG__TYPE_OF:
return typeOf != null;
case UMLRpyPackage.ITAG__MY_STATE:
return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState);
case UMLRpyPackage.ITAG__MULTIPLICITY:
return MULTIPLICITY_EDEFAULT == null ? multiplicity != null : !MULTIPLICITY_EDEFAULT.equals(multiplicity);
case UMLRpyPackage.ITAG__PROPERTIES:
return properties != null;
case UMLRpyPackage.ITAG__DESCRIPTION:
return description != null;
case UMLRpyPackage.ITAG__HYPER_LINKS:
return hyperLinks != null;
case UMLRpyPackage.ITAG__BASE:
return base != null;
case UMLRpyPackage.ITAG__META_CLASS:
return META_CLASS_EDEFAULT == null ? metaClass != null : !META_CLASS_EDEFAULT.equals(metaClass);
case UMLRpyPackage.ITAG__DEFAULT_VALUE:
return DEFAULT_VALUE_EDEFAULT == null ? defaultValue != null : !DEFAULT_VALUE_EDEFAULT.equals(defaultValue);
case UMLRpyPackage.ITAG__CODE_UPDATE_CG_TIME:
return codeUpdateCGTime != null && !codeUpdateCGTime.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(" (id: "); //$NON-NLS-1$
result.append(id);
result.append(", name: "); //$NON-NLS-1$
result.append(name);
result.append(", modifiedTimeWeak: "); //$NON-NLS-1$
result.append(modifiedTimeWeak);
result.append(", myState: "); //$NON-NLS-1$
result.append(myState);
result.append(", multiplicity: "); //$NON-NLS-1$
result.append(multiplicity);
result.append(", metaClass: "); //$NON-NLS-1$
result.append(metaClass);
result.append(", defaultValue: "); //$NON-NLS-1$
result.append(defaultValue);
result.append(", codeUpdateCGTime: "); //$NON-NLS-1$
result.append(codeUpdateCGTime);
result.append(')');
return result.toString();
}
} //ITagImpl