blob: 17f38bcfc64b98520cdb127e2b17e47a13e1e77b [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.IAnchor;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IClassifier;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IComment;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IDependency;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IDiagram;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IMHyperLink;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.IPropertyContainer;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.UMLRpyPackage;
import org.eclipse.papyrus.interoperability.rpy.rpymetamodel.ValueType;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>IComment</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getModifiedTimeWeak <em>Modified Time Weak</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getId <em>Id</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getMyState <em>My State</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getName <em>Name</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getHyperLinks <em>Hyper Links</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getAnchors <em>Anchors</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getDependencies <em>Dependencies</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getStereotypes <em>Stereotypes</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getLastID <em>Last ID</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getCodeUpdateCGTime <em>Code Update CG Time</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getTheMainDiagram <em>The Main Diagram</em>}</li>
* <li>{@link org.eclipse.papyrus.interoperability.rpy.rpymetamodel.impl.ICommentImpl#getProperties <em>Properties</em>}</li>
* </ul>
*
* @generated
*/
public class ICommentImpl extends IAnnotationImpl implements IComment {
/**
* 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 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 #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 #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 #getHyperLinks() <em>Hyper Links</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getHyperLinks()
* @generated
* @ordered
*/
protected EList<IMHyperLink> hyperLinks;
/**
* The cached value of the '{@link #getAnchors() <em>Anchors</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getAnchors()
* @generated
* @ordered
*/
protected EList<IAnchor> anchors;
/**
* The cached value of the '{@link #getDependencies() <em>Dependencies</em>}' containment reference list.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getDependencies()
* @generated
* @ordered
*/
protected EList<IDependency> dependencies;
/**
* The cached value of the '{@link #getStereotypes() <em>Stereotypes</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getStereotypes()
* @generated
* @ordered
*/
protected IClassifier stereotypes;
/**
* The default value of the '{@link #getLastID() <em>Last ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLastID()
* @generated
* @ordered
*/
protected static final String LAST_ID_EDEFAULT = null;
/**
* The cached value of the '{@link #getLastID() <em>Last ID</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getLastID()
* @generated
* @ordered
*/
protected String lastID = LAST_ID_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;
/**
* The cached value of the '{@link #getTheMainDiagram() <em>The Main Diagram</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getTheMainDiagram()
* @generated
* @ordered
*/
protected IDiagram theMainDiagram;
/**
* 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;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected ICommentImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return UMLRpyPackage.eINSTANCE.getIComment();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<String> getModifiedTimeWeak() {
if (modifiedTimeWeak == null) {
modifiedTimeWeak = new EDataTypeEList<String>(String.class, this, UMLRpyPackage.ICOMMENT__MODIFIED_TIME_WEAK);
}
return modifiedTimeWeak;
}
/**
* <!-- 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.ICOMMENT__ID, oldId, id));
}
/**
* <!-- 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.ICOMMENT__MY_STATE, oldMyState, myState));
}
/**
* <!-- 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.ICOMMENT__NAME, oldName, name));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<IMHyperLink> getHyperLinks() {
if (hyperLinks == null) {
hyperLinks = new EObjectContainmentEList.Resolving<IMHyperLink>(IMHyperLink.class, this, UMLRpyPackage.ICOMMENT__HYPER_LINKS);
}
return hyperLinks;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<IAnchor> getAnchors() {
if (anchors == null) {
anchors = new EObjectContainmentEList.Resolving<IAnchor>(IAnchor.class, this, UMLRpyPackage.ICOMMENT__ANCHORS);
}
return anchors;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<IDependency> getDependencies() {
if (dependencies == null) {
dependencies = new EObjectContainmentEList.Resolving<IDependency>(IDependency.class, this, UMLRpyPackage.ICOMMENT__DEPENDENCIES);
}
return dependencies;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IClassifier getStereotypes() {
if (stereotypes != null && stereotypes.eIsProxy()) {
InternalEObject oldStereotypes = (InternalEObject)stereotypes;
stereotypes = (IClassifier)eResolveProxy(oldStereotypes);
if (stereotypes != oldStereotypes) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ICOMMENT__STEREOTYPES, oldStereotypes, stereotypes));
}
}
return stereotypes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IClassifier basicGetStereotypes() {
return stereotypes;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setStereotypes(IClassifier newStereotypes) {
IClassifier oldStereotypes = stereotypes;
stereotypes = newStereotypes;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ICOMMENT__STEREOTYPES, oldStereotypes, stereotypes));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getLastID() {
return lastID;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLastID(String newLastID) {
String oldLastID = lastID;
lastID = newLastID;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ICOMMENT__LAST_ID, oldLastID, lastID));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EList<String> getCodeUpdateCGTime() {
if (codeUpdateCGTime == null) {
codeUpdateCGTime = new EDataTypeEList<String>(String.class, this, UMLRpyPackage.ICOMMENT__CODE_UPDATE_CG_TIME);
}
return codeUpdateCGTime;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IDiagram getTheMainDiagram() {
if (theMainDiagram != null && theMainDiagram.eIsProxy()) {
InternalEObject oldTheMainDiagram = (InternalEObject)theMainDiagram;
theMainDiagram = (IDiagram)eResolveProxy(oldTheMainDiagram);
if (theMainDiagram != oldTheMainDiagram) {
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ICOMMENT__THE_MAIN_DIAGRAM, oldTheMainDiagram, theMainDiagram));
}
}
return theMainDiagram;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public IDiagram basicGetTheMainDiagram() {
return theMainDiagram;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setTheMainDiagram(IDiagram newTheMainDiagram) {
IDiagram oldTheMainDiagram = theMainDiagram;
theMainDiagram = newTheMainDiagram;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ICOMMENT__THE_MAIN_DIAGRAM, oldTheMainDiagram, theMainDiagram));
}
/**
* <!-- 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.ICOMMENT__PROPERTIES, null, null);
if (newProperties.eInternalContainer() == null) {
msgs = newProperties.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ICOMMENT__PROPERTIES, null, msgs);
}
if (msgs != null) msgs.dispatch();
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRpyPackage.ICOMMENT__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.ICOMMENT__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.ICOMMENT__PROPERTIES, null, msgs);
if (newProperties != null)
msgs = ((InternalEObject)newProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRpyPackage.ICOMMENT__PROPERTIES, null, msgs);
msgs = basicSetProperties(newProperties, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, UMLRpyPackage.ICOMMENT__PROPERTIES, newProperties, newProperties));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case UMLRpyPackage.ICOMMENT__HYPER_LINKS:
return ((InternalEList<?>)getHyperLinks()).basicRemove(otherEnd, msgs);
case UMLRpyPackage.ICOMMENT__ANCHORS:
return ((InternalEList<?>)getAnchors()).basicRemove(otherEnd, msgs);
case UMLRpyPackage.ICOMMENT__DEPENDENCIES:
return ((InternalEList<?>)getDependencies()).basicRemove(otherEnd, msgs);
case UMLRpyPackage.ICOMMENT__PROPERTIES:
return basicSetProperties(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.ICOMMENT__MODIFIED_TIME_WEAK:
return getModifiedTimeWeak();
case UMLRpyPackage.ICOMMENT__ID:
return getId();
case UMLRpyPackage.ICOMMENT__MY_STATE:
return getMyState();
case UMLRpyPackage.ICOMMENT__NAME:
return getName();
case UMLRpyPackage.ICOMMENT__HYPER_LINKS:
return getHyperLinks();
case UMLRpyPackage.ICOMMENT__ANCHORS:
return getAnchors();
case UMLRpyPackage.ICOMMENT__DEPENDENCIES:
return getDependencies();
case UMLRpyPackage.ICOMMENT__STEREOTYPES:
if (resolve) return getStereotypes();
return basicGetStereotypes();
case UMLRpyPackage.ICOMMENT__LAST_ID:
return getLastID();
case UMLRpyPackage.ICOMMENT__CODE_UPDATE_CG_TIME:
return getCodeUpdateCGTime();
case UMLRpyPackage.ICOMMENT__THE_MAIN_DIAGRAM:
if (resolve) return getTheMainDiagram();
return basicGetTheMainDiagram();
case UMLRpyPackage.ICOMMENT__PROPERTIES:
if (resolve) return getProperties();
return basicGetProperties();
}
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.ICOMMENT__MODIFIED_TIME_WEAK:
getModifiedTimeWeak().clear();
getModifiedTimeWeak().addAll((Collection<? extends String>)newValue);
return;
case UMLRpyPackage.ICOMMENT__ID:
setId((String)newValue);
return;
case UMLRpyPackage.ICOMMENT__MY_STATE:
setMyState((String)newValue);
return;
case UMLRpyPackage.ICOMMENT__NAME:
setName((String)newValue);
return;
case UMLRpyPackage.ICOMMENT__HYPER_LINKS:
getHyperLinks().clear();
getHyperLinks().addAll((Collection<? extends IMHyperLink>)newValue);
return;
case UMLRpyPackage.ICOMMENT__ANCHORS:
getAnchors().clear();
getAnchors().addAll((Collection<? extends IAnchor>)newValue);
return;
case UMLRpyPackage.ICOMMENT__DEPENDENCIES:
getDependencies().clear();
getDependencies().addAll((Collection<? extends IDependency>)newValue);
return;
case UMLRpyPackage.ICOMMENT__STEREOTYPES:
setStereotypes((IClassifier)newValue);
return;
case UMLRpyPackage.ICOMMENT__LAST_ID:
setLastID((String)newValue);
return;
case UMLRpyPackage.ICOMMENT__CODE_UPDATE_CG_TIME:
getCodeUpdateCGTime().clear();
getCodeUpdateCGTime().addAll((Collection<? extends String>)newValue);
return;
case UMLRpyPackage.ICOMMENT__THE_MAIN_DIAGRAM:
setTheMainDiagram((IDiagram)newValue);
return;
case UMLRpyPackage.ICOMMENT__PROPERTIES:
setProperties((IPropertyContainer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case UMLRpyPackage.ICOMMENT__MODIFIED_TIME_WEAK:
getModifiedTimeWeak().clear();
return;
case UMLRpyPackage.ICOMMENT__ID:
setId(ID_EDEFAULT);
return;
case UMLRpyPackage.ICOMMENT__MY_STATE:
setMyState(MY_STATE_EDEFAULT);
return;
case UMLRpyPackage.ICOMMENT__NAME:
setName(NAME_EDEFAULT);
return;
case UMLRpyPackage.ICOMMENT__HYPER_LINKS:
getHyperLinks().clear();
return;
case UMLRpyPackage.ICOMMENT__ANCHORS:
getAnchors().clear();
return;
case UMLRpyPackage.ICOMMENT__DEPENDENCIES:
getDependencies().clear();
return;
case UMLRpyPackage.ICOMMENT__STEREOTYPES:
setStereotypes((IClassifier)null);
return;
case UMLRpyPackage.ICOMMENT__LAST_ID:
setLastID(LAST_ID_EDEFAULT);
return;
case UMLRpyPackage.ICOMMENT__CODE_UPDATE_CG_TIME:
getCodeUpdateCGTime().clear();
return;
case UMLRpyPackage.ICOMMENT__THE_MAIN_DIAGRAM:
setTheMainDiagram((IDiagram)null);
return;
case UMLRpyPackage.ICOMMENT__PROPERTIES:
setProperties((IPropertyContainer)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case UMLRpyPackage.ICOMMENT__MODIFIED_TIME_WEAK:
return modifiedTimeWeak != null && !modifiedTimeWeak.isEmpty();
case UMLRpyPackage.ICOMMENT__ID:
return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
case UMLRpyPackage.ICOMMENT__MY_STATE:
return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState);
case UMLRpyPackage.ICOMMENT__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
case UMLRpyPackage.ICOMMENT__HYPER_LINKS:
return hyperLinks != null && !hyperLinks.isEmpty();
case UMLRpyPackage.ICOMMENT__ANCHORS:
return anchors != null && !anchors.isEmpty();
case UMLRpyPackage.ICOMMENT__DEPENDENCIES:
return dependencies != null && !dependencies.isEmpty();
case UMLRpyPackage.ICOMMENT__STEREOTYPES:
return stereotypes != null;
case UMLRpyPackage.ICOMMENT__LAST_ID:
return LAST_ID_EDEFAULT == null ? lastID != null : !LAST_ID_EDEFAULT.equals(lastID);
case UMLRpyPackage.ICOMMENT__CODE_UPDATE_CG_TIME:
return codeUpdateCGTime != null && !codeUpdateCGTime.isEmpty();
case UMLRpyPackage.ICOMMENT__THE_MAIN_DIAGRAM:
return theMainDiagram != null;
case UMLRpyPackage.ICOMMENT__PROPERTIES:
return properties != null;
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
if (baseClass == ValueType.class) {
switch (derivedFeatureID) {
case UMLRpyPackage.ICOMMENT__MODIFIED_TIME_WEAK: return UMLRpyPackage.VALUE_TYPE__MODIFIED_TIME_WEAK;
case UMLRpyPackage.ICOMMENT__ID: return UMLRpyPackage.VALUE_TYPE__ID;
case UMLRpyPackage.ICOMMENT__MY_STATE: return UMLRpyPackage.VALUE_TYPE__MY_STATE;
case UMLRpyPackage.ICOMMENT__NAME: return UMLRpyPackage.VALUE_TYPE__NAME;
default: return -1;
}
}
return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
if (baseClass == ValueType.class) {
switch (baseFeatureID) {
case UMLRpyPackage.VALUE_TYPE__MODIFIED_TIME_WEAK: return UMLRpyPackage.ICOMMENT__MODIFIED_TIME_WEAK;
case UMLRpyPackage.VALUE_TYPE__ID: return UMLRpyPackage.ICOMMENT__ID;
case UMLRpyPackage.VALUE_TYPE__MY_STATE: return UMLRpyPackage.ICOMMENT__MY_STATE;
case UMLRpyPackage.VALUE_TYPE__NAME: return UMLRpyPackage.ICOMMENT__NAME;
default: return -1;
}
}
return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (modifiedTimeWeak: "); //$NON-NLS-1$
result.append(modifiedTimeWeak);
result.append(", id: "); //$NON-NLS-1$
result.append(id);
result.append(", myState: "); //$NON-NLS-1$
result.append(myState);
result.append(", name: "); //$NON-NLS-1$
result.append(name);
result.append(", lastID: "); //$NON-NLS-1$
result.append(lastID);
result.append(", codeUpdateCGTime: "); //$NON-NLS-1$
result.append(codeUpdateCGTime);
result.append(')');
return result.toString();
}
} //ICommentImpl