diff options
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITagImpl.java')
-rw-r--r-- | extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITagImpl.java | 1022 |
1 files changed, 1022 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITagImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITagImpl.java new file mode 100644 index 00000000000..6ea02e81f19 --- /dev/null +++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITagImpl.java @@ -0,0 +1,1022 @@ +/** + * 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.migration.rhapsody.rhapsodymetamodel.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.migration.rhapsody.rhapsodymetamodel.IDescription; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IMHyperLink; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IModelElement; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IPropertyContainer; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ITag; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IUnit; +import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage; + +/** + * <!-- 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.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getId <em>Id</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getName <em>Name</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getModifiedTimeWeak <em>Modified Time Weak</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getValueSpecifications <em>Value Specifications</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getTypeOf <em>Type Of</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getMyState <em>My State</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getMultiplicity <em>Multiplicity</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getProperties <em>Properties</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getDescription <em>Description</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getHyperLinks <em>Hyper Links</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getBase <em>Base</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getMetaClass <em>Meta Class</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getDefaultValue <em>Default Value</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getCodeUpdateCGTime <em>Code Update CG Time</em>}</li> + * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITagImpl#getDisplayName <em>Display Name</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; + + /** + * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplayName() + * @generated + * @ordered + */ + protected static final String DISPLAY_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getDisplayName() + * @generated + * @ordered + */ + protected String displayName = DISPLAY_NAME_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected ITagImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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 - UMLRhapsodyPackage.ITAG__PROPERTIES, null, null); + if (newProperties.eInternalContainer() == null) { + msgs = newProperties.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITAG__PROPERTIES, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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 - UMLRhapsodyPackage.ITAG__PROPERTIES, null, msgs); + if (newProperties != null) + msgs = ((InternalEObject)newProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITAG__PROPERTIES, null, msgs); + msgs = basicSetProperties(newProperties, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.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 - UMLRhapsodyPackage.ITAG__DESCRIPTION, null, null); + if (newDescription.eInternalContainer() == null) { + msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITAG__DESCRIPTION, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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 - UMLRhapsodyPackage.ITAG__DESCRIPTION, null, msgs); + if (newDescription != null) + msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITAG__DESCRIPTION, null, msgs); + msgs = basicSetDescription(newDescription, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.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 - UMLRhapsodyPackage.ITAG__HYPER_LINKS, null, null); + if (newHyperLinks.eInternalContainer() == null) { + msgs = newHyperLinks.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITAG__HYPER_LINKS, null, msgs); + } + if (msgs != null) msgs.dispatch(); + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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 - UMLRhapsodyPackage.ITAG__HYPER_LINKS, null, msgs); + if (newHyperLinks != null) + msgs = ((InternalEObject)newHyperLinks).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITAG__HYPER_LINKS, null, msgs); + msgs = basicSetHyperLinks(newHyperLinks, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.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, UMLRhapsodyPackage.ITAG__CODE_UPDATE_CG_TIME); + } + return codeUpdateCGTime; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getDisplayName() { + return displayName; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setDisplayName(String newDisplayName) { + String oldDisplayName = displayName; + displayName = newDisplayName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITAG__DISPLAY_NAME, oldDisplayName, displayName)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { + switch (featureID) { + case UMLRhapsodyPackage.ITAG__VALUE_SPECIFICATIONS: + return ((InternalEList<?>)getValueSpecifications()).basicRemove(otherEnd, msgs); + case UMLRhapsodyPackage.ITAG__PROPERTIES: + return basicSetProperties(null, msgs); + case UMLRhapsodyPackage.ITAG__DESCRIPTION: + return basicSetDescription(null, msgs); + case UMLRhapsodyPackage.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 UMLRhapsodyPackage.ITAG__ID: + return getId(); + case UMLRhapsodyPackage.ITAG__NAME: + return getName(); + case UMLRhapsodyPackage.ITAG__MODIFIED_TIME_WEAK: + return getModifiedTimeWeak(); + case UMLRhapsodyPackage.ITAG__VALUE_SPECIFICATIONS: + return getValueSpecifications(); + case UMLRhapsodyPackage.ITAG__TYPE_OF: + if (resolve) return getTypeOf(); + return basicGetTypeOf(); + case UMLRhapsodyPackage.ITAG__MY_STATE: + return getMyState(); + case UMLRhapsodyPackage.ITAG__MULTIPLICITY: + return getMultiplicity(); + case UMLRhapsodyPackage.ITAG__PROPERTIES: + if (resolve) return getProperties(); + return basicGetProperties(); + case UMLRhapsodyPackage.ITAG__DESCRIPTION: + if (resolve) return getDescription(); + return basicGetDescription(); + case UMLRhapsodyPackage.ITAG__HYPER_LINKS: + if (resolve) return getHyperLinks(); + return basicGetHyperLinks(); + case UMLRhapsodyPackage.ITAG__BASE: + if (resolve) return getBase(); + return basicGetBase(); + case UMLRhapsodyPackage.ITAG__META_CLASS: + return getMetaClass(); + case UMLRhapsodyPackage.ITAG__DEFAULT_VALUE: + return getDefaultValue(); + case UMLRhapsodyPackage.ITAG__CODE_UPDATE_CG_TIME: + return getCodeUpdateCGTime(); + case UMLRhapsodyPackage.ITAG__DISPLAY_NAME: + return getDisplayName(); + } + 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 UMLRhapsodyPackage.ITAG__ID: + setId((String)newValue); + return; + case UMLRhapsodyPackage.ITAG__NAME: + setName((String)newValue); + return; + case UMLRhapsodyPackage.ITAG__MODIFIED_TIME_WEAK: + getModifiedTimeWeak().clear(); + getModifiedTimeWeak().addAll((Collection<? extends String>)newValue); + return; + case UMLRhapsodyPackage.ITAG__VALUE_SPECIFICATIONS: + getValueSpecifications().clear(); + getValueSpecifications().addAll((Collection<? extends IModelElement>)newValue); + return; + case UMLRhapsodyPackage.ITAG__TYPE_OF: + setTypeOf((IUnit)newValue); + return; + case UMLRhapsodyPackage.ITAG__MY_STATE: + setMyState((String)newValue); + return; + case UMLRhapsodyPackage.ITAG__MULTIPLICITY: + setMultiplicity((String)newValue); + return; + case UMLRhapsodyPackage.ITAG__PROPERTIES: + setProperties((IPropertyContainer)newValue); + return; + case UMLRhapsodyPackage.ITAG__DESCRIPTION: + setDescription((IDescription)newValue); + return; + case UMLRhapsodyPackage.ITAG__HYPER_LINKS: + setHyperLinks((IMHyperLink)newValue); + return; + case UMLRhapsodyPackage.ITAG__BASE: + setBase((IUnit)newValue); + return; + case UMLRhapsodyPackage.ITAG__META_CLASS: + setMetaClass((String)newValue); + return; + case UMLRhapsodyPackage.ITAG__DEFAULT_VALUE: + setDefaultValue((String)newValue); + return; + case UMLRhapsodyPackage.ITAG__CODE_UPDATE_CG_TIME: + getCodeUpdateCGTime().clear(); + getCodeUpdateCGTime().addAll((Collection<? extends String>)newValue); + return; + case UMLRhapsodyPackage.ITAG__DISPLAY_NAME: + setDisplayName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.ITAG__ID: + setId(ID_EDEFAULT); + return; + case UMLRhapsodyPackage.ITAG__NAME: + setName(NAME_EDEFAULT); + return; + case UMLRhapsodyPackage.ITAG__MODIFIED_TIME_WEAK: + getModifiedTimeWeak().clear(); + return; + case UMLRhapsodyPackage.ITAG__VALUE_SPECIFICATIONS: + getValueSpecifications().clear(); + return; + case UMLRhapsodyPackage.ITAG__TYPE_OF: + setTypeOf((IUnit)null); + return; + case UMLRhapsodyPackage.ITAG__MY_STATE: + setMyState(MY_STATE_EDEFAULT); + return; + case UMLRhapsodyPackage.ITAG__MULTIPLICITY: + setMultiplicity(MULTIPLICITY_EDEFAULT); + return; + case UMLRhapsodyPackage.ITAG__PROPERTIES: + setProperties((IPropertyContainer)null); + return; + case UMLRhapsodyPackage.ITAG__DESCRIPTION: + setDescription((IDescription)null); + return; + case UMLRhapsodyPackage.ITAG__HYPER_LINKS: + setHyperLinks((IMHyperLink)null); + return; + case UMLRhapsodyPackage.ITAG__BASE: + setBase((IUnit)null); + return; + case UMLRhapsodyPackage.ITAG__META_CLASS: + setMetaClass(META_CLASS_EDEFAULT); + return; + case UMLRhapsodyPackage.ITAG__DEFAULT_VALUE: + setDefaultValue(DEFAULT_VALUE_EDEFAULT); + return; + case UMLRhapsodyPackage.ITAG__CODE_UPDATE_CG_TIME: + getCodeUpdateCGTime().clear(); + return; + case UMLRhapsodyPackage.ITAG__DISPLAY_NAME: + setDisplayName(DISPLAY_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case UMLRhapsodyPackage.ITAG__ID: + return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); + case UMLRhapsodyPackage.ITAG__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case UMLRhapsodyPackage.ITAG__MODIFIED_TIME_WEAK: + return modifiedTimeWeak != null && !modifiedTimeWeak.isEmpty(); + case UMLRhapsodyPackage.ITAG__VALUE_SPECIFICATIONS: + return valueSpecifications != null && !valueSpecifications.isEmpty(); + case UMLRhapsodyPackage.ITAG__TYPE_OF: + return typeOf != null; + case UMLRhapsodyPackage.ITAG__MY_STATE: + return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState); + case UMLRhapsodyPackage.ITAG__MULTIPLICITY: + return MULTIPLICITY_EDEFAULT == null ? multiplicity != null : !MULTIPLICITY_EDEFAULT.equals(multiplicity); + case UMLRhapsodyPackage.ITAG__PROPERTIES: + return properties != null; + case UMLRhapsodyPackage.ITAG__DESCRIPTION: + return description != null; + case UMLRhapsodyPackage.ITAG__HYPER_LINKS: + return hyperLinks != null; + case UMLRhapsodyPackage.ITAG__BASE: + return base != null; + case UMLRhapsodyPackage.ITAG__META_CLASS: + return META_CLASS_EDEFAULT == null ? metaClass != null : !META_CLASS_EDEFAULT.equals(metaClass); + case UMLRhapsodyPackage.ITAG__DEFAULT_VALUE: + return DEFAULT_VALUE_EDEFAULT == null ? defaultValue != null : !DEFAULT_VALUE_EDEFAULT.equals(defaultValue); + case UMLRhapsodyPackage.ITAG__CODE_UPDATE_CG_TIME: + return codeUpdateCGTime != null && !codeUpdateCGTime.isEmpty(); + case UMLRhapsodyPackage.ITAG__DISPLAY_NAME: + return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName); + } + 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(", displayName: "); //$NON-NLS-1$ + result.append(displayName); + result.append(')'); + return result.toString(); + } + +} //ITagImpl |