Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITypeImpl.java')
-rw-r--r--extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITypeImpl.java1535
1 files changed, 1535 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITypeImpl.java b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITypeImpl.java
new file mode 100644
index 00000000000..c7f156df4a3
--- /dev/null
+++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody.metamodel/src-gen/org/eclipse/papyrus/migration/rhapsody/rhapsodymetamodel/impl/ITypeImpl.java
@@ -0,0 +1,1535 @@
+/**
+ * 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.EObjectResolvingEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.DeclarativesType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.DependsOnType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ElementsType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IAttribute;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IDescription;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IDiagram;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IEnumerationLiteral;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IPropertyContainer;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ITag;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.IUnit;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.M_pModelObjectType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.M_subjectType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.TargetType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UMLRhapsodyPackage;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.UnknownType;
+import org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.ValueType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>IType</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getUmlDependencyID <em>Uml Dependency ID</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getObjectCreation <em>Object Creation</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getModifiedTimeWeak <em>Modified Time Weak</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getId <em>Id</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getMyState <em>My State</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getLastID <em>Last ID</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getLiterals <em>Literals</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getKind <em>Kind</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getProperties <em>Properties</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getDescription <em>Description</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getDeclaration <em>Declaration</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getStereotypes <em>Stereotypes</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getAttrs <em>Attrs</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getAssociationElements <em>Association Elements</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTags <em>Tags</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTypedefBaseType <em>Typedef Base Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTypedefMultiplicity <em>Typedef Multiplicity</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTypedefIsOrdered <em>Typedef Is Ordered</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTypedefIsReference <em>Typedef Is Reference</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTypedefIsConstant <em>Typedef Is Constant</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getRequiremenTracabilityHandle <em>Requiremen Tracability Handle</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getCodeUpdateCGTime <em>Code Update CG Time</em>}</li>
+ * <li>{@link org.eclipse.papyrus.migration.rhapsody.rhapsodymetamodel.impl.ITypeImpl#getTheMainDiagram <em>The Main Diagram</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ITypeImpl extends IClassifierImpl implements IType {
+ /**
+ * The default value of the '{@link #getUmlDependencyID() <em>Uml Dependency ID</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUmlDependencyID()
+ * @generated
+ * @ordered
+ */
+ protected static final String UML_DEPENDENCY_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUmlDependencyID() <em>Uml Dependency ID</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUmlDependencyID()
+ * @generated
+ * @ordered
+ */
+ protected String umlDependencyID = UML_DEPENDENCY_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getObjectCreation() <em>Object Creation</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getObjectCreation()
+ * @generated
+ * @ordered
+ */
+ protected static final String OBJECT_CREATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getObjectCreation() <em>Object Creation</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getObjectCreation()
+ * @generated
+ * @ordered
+ */
+ protected String objectCreation = OBJECT_CREATION_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 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 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 #getLiterals() <em>Literals</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getLiterals()
+ * @generated
+ * @ordered
+ */
+ protected EList<IEnumerationLiteral> literals;
+
+ /**
+ * The default value of the '{@link #getKind() <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKind()
+ * @generated
+ * @ordered
+ */
+ protected static final String KIND_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getKind() <em>Kind</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKind()
+ * @generated
+ * @ordered
+ */
+ protected String kind = KIND_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 default value of the '{@link #getDeclaration() <em>Declaration</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDeclaration()
+ * @generated
+ * @ordered
+ */
+ protected static final String DECLARATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDeclaration() <em>Declaration</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDeclaration()
+ * @generated
+ * @ordered
+ */
+ protected String declaration = DECLARATION_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getStereotypes() <em>Stereotypes</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStereotypes()
+ * @generated
+ * @ordered
+ */
+ protected IUnit stereotypes;
+
+ /**
+ * The cached value of the '{@link #getAttrs() <em>Attrs</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAttrs()
+ * @generated
+ * @ordered
+ */
+ protected EList<IAttribute> attrs;
+
+ /**
+ * The cached value of the '{@link #getAssociationElements() <em>Association Elements</em>}' reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAssociationElements()
+ * @generated
+ * @ordered
+ */
+ protected EList<UnknownType> associationElements;
+
+ /**
+ * The cached value of the '{@link #getTags() <em>Tags</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTags()
+ * @generated
+ * @ordered
+ */
+ protected EList<ITag> tags;
+
+ /**
+ * The cached value of the '{@link #getTypedefBaseType() <em>Typedef Base Type</em>}' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefBaseType()
+ * @generated
+ * @ordered
+ */
+ protected IUnit typedefBaseType;
+
+ /**
+ * The default value of the '{@link #getTypedefMultiplicity() <em>Typedef Multiplicity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefMultiplicity()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPEDEF_MULTIPLICITY_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTypedefMultiplicity() <em>Typedef Multiplicity</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefMultiplicity()
+ * @generated
+ * @ordered
+ */
+ protected String typedefMultiplicity = TYPEDEF_MULTIPLICITY_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTypedefIsOrdered() <em>Typedef Is Ordered</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefIsOrdered()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPEDEF_IS_ORDERED_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTypedefIsOrdered() <em>Typedef Is Ordered</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefIsOrdered()
+ * @generated
+ * @ordered
+ */
+ protected String typedefIsOrdered = TYPEDEF_IS_ORDERED_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTypedefIsReference() <em>Typedef Is Reference</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefIsReference()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPEDEF_IS_REFERENCE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTypedefIsReference() <em>Typedef Is Reference</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefIsReference()
+ * @generated
+ * @ordered
+ */
+ protected String typedefIsReference = TYPEDEF_IS_REFERENCE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTypedefIsConstant() <em>Typedef Is Constant</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefIsConstant()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPEDEF_IS_CONSTANT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTypedefIsConstant() <em>Typedef Is Constant</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTypedefIsConstant()
+ * @generated
+ * @ordered
+ */
+ protected String typedefIsConstant = TYPEDEF_IS_CONSTANT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRequiremenTracabilityHandle() <em>Requiremen Tracability Handle</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRequiremenTracabilityHandle()
+ * @generated
+ * @ordered
+ */
+ protected static final String REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRequiremenTracabilityHandle() <em>Requiremen Tracability Handle</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRequiremenTracabilityHandle()
+ * @generated
+ * @ordered
+ */
+ protected String requiremenTracabilityHandle = REQUIREMEN_TRACABILITY_HANDLE_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;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ITypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return UMLRhapsodyPackage.eINSTANCE.getIType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getUmlDependencyID() {
+ return umlDependencyID;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUmlDependencyID(String newUmlDependencyID) {
+ String oldUmlDependencyID = umlDependencyID;
+ umlDependencyID = newUmlDependencyID;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__UML_DEPENDENCY_ID, oldUmlDependencyID, umlDependencyID));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getObjectCreation() {
+ return objectCreation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setObjectCreation(String newObjectCreation) {
+ String oldObjectCreation = objectCreation;
+ objectCreation = newObjectCreation;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__OBJECT_CREATION, oldObjectCreation, objectCreation));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getModifiedTimeWeak() {
+ if (modifiedTimeWeak == null) {
+ modifiedTimeWeak = new EDataTypeEList<String>(String.class, this, UMLRhapsodyPackage.ITYPE__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, UMLRhapsodyPackage.ITYPE__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, UMLRhapsodyPackage.ITYPE__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, UMLRhapsodyPackage.ITYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- 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, UMLRhapsodyPackage.ITYPE__LAST_ID, oldLastID, lastID));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<IEnumerationLiteral> getLiterals() {
+ if (literals == null) {
+ literals = new EObjectContainmentEList.Resolving<IEnumerationLiteral>(IEnumerationLiteral.class, this, UMLRhapsodyPackage.ITYPE__LITERALS);
+ }
+ return literals;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getKind() {
+ return kind;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKind(String newKind) {
+ String oldKind = kind;
+ kind = newKind;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__KIND, oldKind, kind));
+ }
+
+ /**
+ * <!-- 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.ITYPE__PROPERTIES, null, null);
+ if (newProperties.eInternalContainer() == null) {
+ msgs = newProperties.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITYPE__PROPERTIES, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITYPE__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.ITYPE__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.ITYPE__PROPERTIES, null, msgs);
+ if (newProperties != null)
+ msgs = ((InternalEObject)newProperties).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITYPE__PROPERTIES, null, msgs);
+ msgs = basicSetProperties(newProperties, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__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.ITYPE__DESCRIPTION, null, null);
+ if (newDescription.eInternalContainer() == null) {
+ msgs = newDescription.eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITYPE__DESCRIPTION, null, msgs);
+ }
+ if (msgs != null) msgs.dispatch();
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITYPE__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.ITYPE__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.ITYPE__DESCRIPTION, null, msgs);
+ if (newDescription != null)
+ msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - UMLRhapsodyPackage.ITYPE__DESCRIPTION, null, msgs);
+ msgs = basicSetDescription(newDescription, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__DESCRIPTION, newDescription, newDescription));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDeclaration() {
+ return declaration;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDeclaration(String newDeclaration) {
+ String oldDeclaration = declaration;
+ declaration = newDeclaration;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__DECLARATION, oldDeclaration, declaration));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IUnit getStereotypes() {
+ if (stereotypes != null && stereotypes.eIsProxy()) {
+ InternalEObject oldStereotypes = (InternalEObject)stereotypes;
+ stereotypes = (IUnit)eResolveProxy(oldStereotypes);
+ if (stereotypes != oldStereotypes) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITYPE__STEREOTYPES, oldStereotypes, stereotypes));
+ }
+ }
+ return stereotypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IUnit basicGetStereotypes() {
+ return stereotypes;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStereotypes(IUnit newStereotypes) {
+ IUnit oldStereotypes = stereotypes;
+ stereotypes = newStereotypes;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__STEREOTYPES, oldStereotypes, stereotypes));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<IAttribute> getAttrs() {
+ if (attrs == null) {
+ attrs = new EObjectContainmentEList.Resolving<IAttribute>(IAttribute.class, this, UMLRhapsodyPackage.ITYPE__ATTRS);
+ }
+ return attrs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<UnknownType> getAssociationElements() {
+ if (associationElements == null) {
+ associationElements = new EObjectResolvingEList<UnknownType>(UnknownType.class, this, UMLRhapsodyPackage.ITYPE__ASSOCIATION_ELEMENTS);
+ }
+ return associationElements;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<ITag> getTags() {
+ if (tags == null) {
+ tags = new EObjectContainmentEList.Resolving<ITag>(ITag.class, this, UMLRhapsodyPackage.ITYPE__TAGS);
+ }
+ return tags;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IUnit getTypedefBaseType() {
+ if (typedefBaseType != null && typedefBaseType.eIsProxy()) {
+ InternalEObject oldTypedefBaseType = (InternalEObject)typedefBaseType;
+ typedefBaseType = (IUnit)eResolveProxy(oldTypedefBaseType);
+ if (typedefBaseType != oldTypedefBaseType) {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, UMLRhapsodyPackage.ITYPE__TYPEDEF_BASE_TYPE, oldTypedefBaseType, typedefBaseType));
+ }
+ }
+ return typedefBaseType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IUnit basicGetTypedefBaseType() {
+ return typedefBaseType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypedefBaseType(IUnit newTypedefBaseType) {
+ IUnit oldTypedefBaseType = typedefBaseType;
+ typedefBaseType = newTypedefBaseType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__TYPEDEF_BASE_TYPE, oldTypedefBaseType, typedefBaseType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTypedefMultiplicity() {
+ return typedefMultiplicity;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypedefMultiplicity(String newTypedefMultiplicity) {
+ String oldTypedefMultiplicity = typedefMultiplicity;
+ typedefMultiplicity = newTypedefMultiplicity;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__TYPEDEF_MULTIPLICITY, oldTypedefMultiplicity, typedefMultiplicity));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTypedefIsOrdered() {
+ return typedefIsOrdered;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypedefIsOrdered(String newTypedefIsOrdered) {
+ String oldTypedefIsOrdered = typedefIsOrdered;
+ typedefIsOrdered = newTypedefIsOrdered;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_ORDERED, oldTypedefIsOrdered, typedefIsOrdered));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTypedefIsReference() {
+ return typedefIsReference;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypedefIsReference(String newTypedefIsReference) {
+ String oldTypedefIsReference = typedefIsReference;
+ typedefIsReference = newTypedefIsReference;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_REFERENCE, oldTypedefIsReference, typedefIsReference));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTypedefIsConstant() {
+ return typedefIsConstant;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTypedefIsConstant(String newTypedefIsConstant) {
+ String oldTypedefIsConstant = typedefIsConstant;
+ typedefIsConstant = newTypedefIsConstant;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_CONSTANT, oldTypedefIsConstant, typedefIsConstant));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRequiremenTracabilityHandle() {
+ return requiremenTracabilityHandle;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRequiremenTracabilityHandle(String newRequiremenTracabilityHandle) {
+ String oldRequiremenTracabilityHandle = requiremenTracabilityHandle;
+ requiremenTracabilityHandle = newRequiremenTracabilityHandle;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, UMLRhapsodyPackage.ITYPE__REQUIREMEN_TRACABILITY_HANDLE, oldRequiremenTracabilityHandle, requiremenTracabilityHandle));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<String> getCodeUpdateCGTime() {
+ if (codeUpdateCGTime == null) {
+ codeUpdateCGTime = new EDataTypeEList<String>(String.class, this, UMLRhapsodyPackage.ITYPE__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, UMLRhapsodyPackage.ITYPE__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, UMLRhapsodyPackage.ITYPE__THE_MAIN_DIAGRAM, oldTheMainDiagram, theMainDiagram));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case UMLRhapsodyPackage.ITYPE__LITERALS:
+ return ((InternalEList<?>)getLiterals()).basicRemove(otherEnd, msgs);
+ case UMLRhapsodyPackage.ITYPE__PROPERTIES:
+ return basicSetProperties(null, msgs);
+ case UMLRhapsodyPackage.ITYPE__DESCRIPTION:
+ return basicSetDescription(null, msgs);
+ case UMLRhapsodyPackage.ITYPE__ATTRS:
+ return ((InternalEList<?>)getAttrs()).basicRemove(otherEnd, msgs);
+ case UMLRhapsodyPackage.ITYPE__TAGS:
+ return ((InternalEList<?>)getTags()).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 UMLRhapsodyPackage.ITYPE__UML_DEPENDENCY_ID:
+ return getUmlDependencyID();
+ case UMLRhapsodyPackage.ITYPE__OBJECT_CREATION:
+ return getObjectCreation();
+ case UMLRhapsodyPackage.ITYPE__MODIFIED_TIME_WEAK:
+ return getModifiedTimeWeak();
+ case UMLRhapsodyPackage.ITYPE__ID:
+ return getId();
+ case UMLRhapsodyPackage.ITYPE__MY_STATE:
+ return getMyState();
+ case UMLRhapsodyPackage.ITYPE__NAME:
+ return getName();
+ case UMLRhapsodyPackage.ITYPE__LAST_ID:
+ return getLastID();
+ case UMLRhapsodyPackage.ITYPE__LITERALS:
+ return getLiterals();
+ case UMLRhapsodyPackage.ITYPE__KIND:
+ return getKind();
+ case UMLRhapsodyPackage.ITYPE__PROPERTIES:
+ if (resolve) return getProperties();
+ return basicGetProperties();
+ case UMLRhapsodyPackage.ITYPE__DESCRIPTION:
+ if (resolve) return getDescription();
+ return basicGetDescription();
+ case UMLRhapsodyPackage.ITYPE__DECLARATION:
+ return getDeclaration();
+ case UMLRhapsodyPackage.ITYPE__STEREOTYPES:
+ if (resolve) return getStereotypes();
+ return basicGetStereotypes();
+ case UMLRhapsodyPackage.ITYPE__ATTRS:
+ return getAttrs();
+ case UMLRhapsodyPackage.ITYPE__ASSOCIATION_ELEMENTS:
+ return getAssociationElements();
+ case UMLRhapsodyPackage.ITYPE__TAGS:
+ return getTags();
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_BASE_TYPE:
+ if (resolve) return getTypedefBaseType();
+ return basicGetTypedefBaseType();
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_MULTIPLICITY:
+ return getTypedefMultiplicity();
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_ORDERED:
+ return getTypedefIsOrdered();
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_REFERENCE:
+ return getTypedefIsReference();
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_CONSTANT:
+ return getTypedefIsConstant();
+ case UMLRhapsodyPackage.ITYPE__REQUIREMEN_TRACABILITY_HANDLE:
+ return getRequiremenTracabilityHandle();
+ case UMLRhapsodyPackage.ITYPE__CODE_UPDATE_CG_TIME:
+ return getCodeUpdateCGTime();
+ case UMLRhapsodyPackage.ITYPE__THE_MAIN_DIAGRAM:
+ if (resolve) return getTheMainDiagram();
+ return basicGetTheMainDiagram();
+ }
+ 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.ITYPE__UML_DEPENDENCY_ID:
+ setUmlDependencyID((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__OBJECT_CREATION:
+ setObjectCreation((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__MODIFIED_TIME_WEAK:
+ getModifiedTimeWeak().clear();
+ getModifiedTimeWeak().addAll((Collection<? extends String>)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__ID:
+ setId((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__MY_STATE:
+ setMyState((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__NAME:
+ setName((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__LAST_ID:
+ setLastID((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__LITERALS:
+ getLiterals().clear();
+ getLiterals().addAll((Collection<? extends IEnumerationLiteral>)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__KIND:
+ setKind((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__PROPERTIES:
+ setProperties((IPropertyContainer)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__DESCRIPTION:
+ setDescription((IDescription)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__DECLARATION:
+ setDeclaration((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__STEREOTYPES:
+ setStereotypes((IUnit)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__ATTRS:
+ getAttrs().clear();
+ getAttrs().addAll((Collection<? extends IAttribute>)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__ASSOCIATION_ELEMENTS:
+ getAssociationElements().clear();
+ getAssociationElements().addAll((Collection<? extends UnknownType>)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TAGS:
+ getTags().clear();
+ getTags().addAll((Collection<? extends ITag>)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_BASE_TYPE:
+ setTypedefBaseType((IUnit)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_MULTIPLICITY:
+ setTypedefMultiplicity((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_ORDERED:
+ setTypedefIsOrdered((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_REFERENCE:
+ setTypedefIsReference((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_CONSTANT:
+ setTypedefIsConstant((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__REQUIREMEN_TRACABILITY_HANDLE:
+ setRequiremenTracabilityHandle((String)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__CODE_UPDATE_CG_TIME:
+ getCodeUpdateCGTime().clear();
+ getCodeUpdateCGTime().addAll((Collection<? extends String>)newValue);
+ return;
+ case UMLRhapsodyPackage.ITYPE__THE_MAIN_DIAGRAM:
+ setTheMainDiagram((IDiagram)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case UMLRhapsodyPackage.ITYPE__UML_DEPENDENCY_ID:
+ setUmlDependencyID(UML_DEPENDENCY_ID_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__OBJECT_CREATION:
+ setObjectCreation(OBJECT_CREATION_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__MODIFIED_TIME_WEAK:
+ getModifiedTimeWeak().clear();
+ return;
+ case UMLRhapsodyPackage.ITYPE__ID:
+ setId(ID_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__MY_STATE:
+ setMyState(MY_STATE_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__LAST_ID:
+ setLastID(LAST_ID_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__LITERALS:
+ getLiterals().clear();
+ return;
+ case UMLRhapsodyPackage.ITYPE__KIND:
+ setKind(KIND_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__PROPERTIES:
+ setProperties((IPropertyContainer)null);
+ return;
+ case UMLRhapsodyPackage.ITYPE__DESCRIPTION:
+ setDescription((IDescription)null);
+ return;
+ case UMLRhapsodyPackage.ITYPE__DECLARATION:
+ setDeclaration(DECLARATION_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__STEREOTYPES:
+ setStereotypes((IUnit)null);
+ return;
+ case UMLRhapsodyPackage.ITYPE__ATTRS:
+ getAttrs().clear();
+ return;
+ case UMLRhapsodyPackage.ITYPE__ASSOCIATION_ELEMENTS:
+ getAssociationElements().clear();
+ return;
+ case UMLRhapsodyPackage.ITYPE__TAGS:
+ getTags().clear();
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_BASE_TYPE:
+ setTypedefBaseType((IUnit)null);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_MULTIPLICITY:
+ setTypedefMultiplicity(TYPEDEF_MULTIPLICITY_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_ORDERED:
+ setTypedefIsOrdered(TYPEDEF_IS_ORDERED_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_REFERENCE:
+ setTypedefIsReference(TYPEDEF_IS_REFERENCE_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_CONSTANT:
+ setTypedefIsConstant(TYPEDEF_IS_CONSTANT_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__REQUIREMEN_TRACABILITY_HANDLE:
+ setRequiremenTracabilityHandle(REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT);
+ return;
+ case UMLRhapsodyPackage.ITYPE__CODE_UPDATE_CG_TIME:
+ getCodeUpdateCGTime().clear();
+ return;
+ case UMLRhapsodyPackage.ITYPE__THE_MAIN_DIAGRAM:
+ setTheMainDiagram((IDiagram)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case UMLRhapsodyPackage.ITYPE__UML_DEPENDENCY_ID:
+ return UML_DEPENDENCY_ID_EDEFAULT == null ? umlDependencyID != null : !UML_DEPENDENCY_ID_EDEFAULT.equals(umlDependencyID);
+ case UMLRhapsodyPackage.ITYPE__OBJECT_CREATION:
+ return OBJECT_CREATION_EDEFAULT == null ? objectCreation != null : !OBJECT_CREATION_EDEFAULT.equals(objectCreation);
+ case UMLRhapsodyPackage.ITYPE__MODIFIED_TIME_WEAK:
+ return modifiedTimeWeak != null && !modifiedTimeWeak.isEmpty();
+ case UMLRhapsodyPackage.ITYPE__ID:
+ return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id);
+ case UMLRhapsodyPackage.ITYPE__MY_STATE:
+ return MY_STATE_EDEFAULT == null ? myState != null : !MY_STATE_EDEFAULT.equals(myState);
+ case UMLRhapsodyPackage.ITYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case UMLRhapsodyPackage.ITYPE__LAST_ID:
+ return LAST_ID_EDEFAULT == null ? lastID != null : !LAST_ID_EDEFAULT.equals(lastID);
+ case UMLRhapsodyPackage.ITYPE__LITERALS:
+ return literals != null && !literals.isEmpty();
+ case UMLRhapsodyPackage.ITYPE__KIND:
+ return KIND_EDEFAULT == null ? kind != null : !KIND_EDEFAULT.equals(kind);
+ case UMLRhapsodyPackage.ITYPE__PROPERTIES:
+ return properties != null;
+ case UMLRhapsodyPackage.ITYPE__DESCRIPTION:
+ return description != null;
+ case UMLRhapsodyPackage.ITYPE__DECLARATION:
+ return DECLARATION_EDEFAULT == null ? declaration != null : !DECLARATION_EDEFAULT.equals(declaration);
+ case UMLRhapsodyPackage.ITYPE__STEREOTYPES:
+ return stereotypes != null;
+ case UMLRhapsodyPackage.ITYPE__ATTRS:
+ return attrs != null && !attrs.isEmpty();
+ case UMLRhapsodyPackage.ITYPE__ASSOCIATION_ELEMENTS:
+ return associationElements != null && !associationElements.isEmpty();
+ case UMLRhapsodyPackage.ITYPE__TAGS:
+ return tags != null && !tags.isEmpty();
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_BASE_TYPE:
+ return typedefBaseType != null;
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_MULTIPLICITY:
+ return TYPEDEF_MULTIPLICITY_EDEFAULT == null ? typedefMultiplicity != null : !TYPEDEF_MULTIPLICITY_EDEFAULT.equals(typedefMultiplicity);
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_ORDERED:
+ return TYPEDEF_IS_ORDERED_EDEFAULT == null ? typedefIsOrdered != null : !TYPEDEF_IS_ORDERED_EDEFAULT.equals(typedefIsOrdered);
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_REFERENCE:
+ return TYPEDEF_IS_REFERENCE_EDEFAULT == null ? typedefIsReference != null : !TYPEDEF_IS_REFERENCE_EDEFAULT.equals(typedefIsReference);
+ case UMLRhapsodyPackage.ITYPE__TYPEDEF_IS_CONSTANT:
+ return TYPEDEF_IS_CONSTANT_EDEFAULT == null ? typedefIsConstant != null : !TYPEDEF_IS_CONSTANT_EDEFAULT.equals(typedefIsConstant);
+ case UMLRhapsodyPackage.ITYPE__REQUIREMEN_TRACABILITY_HANDLE:
+ return REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT == null ? requiremenTracabilityHandle != null : !REQUIREMEN_TRACABILITY_HANDLE_EDEFAULT.equals(requiremenTracabilityHandle);
+ case UMLRhapsodyPackage.ITYPE__CODE_UPDATE_CG_TIME:
+ return codeUpdateCGTime != null && !codeUpdateCGTime.isEmpty();
+ case UMLRhapsodyPackage.ITYPE__THE_MAIN_DIAGRAM:
+ return theMainDiagram != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
+ if (baseClass == DeclarativesType.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == ElementsType.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == DependsOnType.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == M_subjectType.class) {
+ switch (derivedFeatureID) {
+ case UMLRhapsodyPackage.ITYPE__UML_DEPENDENCY_ID: return UMLRhapsodyPackage.MSUBJECT_TYPE__UML_DEPENDENCY_ID;
+ case UMLRhapsodyPackage.ITYPE__OBJECT_CREATION: return UMLRhapsodyPackage.MSUBJECT_TYPE__OBJECT_CREATION;
+ default: return -1;
+ }
+ }
+ if (baseClass == ValueType.class) {
+ switch (derivedFeatureID) {
+ case UMLRhapsodyPackage.ITYPE__MODIFIED_TIME_WEAK: return UMLRhapsodyPackage.VALUE_TYPE__MODIFIED_TIME_WEAK;
+ case UMLRhapsodyPackage.ITYPE__ID: return UMLRhapsodyPackage.VALUE_TYPE__ID;
+ case UMLRhapsodyPackage.ITYPE__MY_STATE: return UMLRhapsodyPackage.VALUE_TYPE__MY_STATE;
+ case UMLRhapsodyPackage.ITYPE__NAME: return UMLRhapsodyPackage.VALUE_TYPE__NAME;
+ default: return -1;
+ }
+ }
+ if (baseClass == TargetType.class) {
+ switch (derivedFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == M_pModelObjectType.class) {
+ switch (derivedFeatureID) {
+ 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 == DeclarativesType.class) {
+ switch (baseFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == ElementsType.class) {
+ switch (baseFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == DependsOnType.class) {
+ switch (baseFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == M_subjectType.class) {
+ switch (baseFeatureID) {
+ case UMLRhapsodyPackage.MSUBJECT_TYPE__UML_DEPENDENCY_ID: return UMLRhapsodyPackage.ITYPE__UML_DEPENDENCY_ID;
+ case UMLRhapsodyPackage.MSUBJECT_TYPE__OBJECT_CREATION: return UMLRhapsodyPackage.ITYPE__OBJECT_CREATION;
+ default: return -1;
+ }
+ }
+ if (baseClass == ValueType.class) {
+ switch (baseFeatureID) {
+ case UMLRhapsodyPackage.VALUE_TYPE__MODIFIED_TIME_WEAK: return UMLRhapsodyPackage.ITYPE__MODIFIED_TIME_WEAK;
+ case UMLRhapsodyPackage.VALUE_TYPE__ID: return UMLRhapsodyPackage.ITYPE__ID;
+ case UMLRhapsodyPackage.VALUE_TYPE__MY_STATE: return UMLRhapsodyPackage.ITYPE__MY_STATE;
+ case UMLRhapsodyPackage.VALUE_TYPE__NAME: return UMLRhapsodyPackage.ITYPE__NAME;
+ default: return -1;
+ }
+ }
+ if (baseClass == TargetType.class) {
+ switch (baseFeatureID) {
+ default: return -1;
+ }
+ }
+ if (baseClass == M_pModelObjectType.class) {
+ switch (baseFeatureID) {
+ 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(" (umlDependencyID: "); //$NON-NLS-1$
+ result.append(umlDependencyID);
+ result.append(", objectCreation: "); //$NON-NLS-1$
+ result.append(objectCreation);
+ 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(", kind: "); //$NON-NLS-1$
+ result.append(kind);
+ result.append(", declaration: "); //$NON-NLS-1$
+ result.append(declaration);
+ result.append(", typedefMultiplicity: "); //$NON-NLS-1$
+ result.append(typedefMultiplicity);
+ result.append(", typedefIsOrdered: "); //$NON-NLS-1$
+ result.append(typedefIsOrdered);
+ result.append(", typedefIsReference: "); //$NON-NLS-1$
+ result.append(typedefIsReference);
+ result.append(", typedefIsConstant: "); //$NON-NLS-1$
+ result.append(typedefIsConstant);
+ result.append(", requiremenTracabilityHandle: "); //$NON-NLS-1$
+ result.append(requiremenTracabilityHandle);
+ result.append(", codeUpdateCGTime: "); //$NON-NLS-1$
+ result.append(codeUpdateCGTime);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ITypeImpl

Back to the top