Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.documentation.plugin/src-gen/org/eclipse/papyrus/documentation/plugin/documentation/impl/PersonImpl.java')
-rw-r--r--plugins/developer/org.eclipse.papyrus.documentation.plugin/src-gen/org/eclipse/papyrus/documentation/plugin/documentation/impl/PersonImpl.java132
1 files changed, 79 insertions, 53 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.documentation.plugin/src-gen/org/eclipse/papyrus/documentation/plugin/documentation/impl/PersonImpl.java b/plugins/developer/org.eclipse.papyrus.documentation.plugin/src-gen/org/eclipse/papyrus/documentation/plugin/documentation/impl/PersonImpl.java
index fb826266397..446b83a7a04 100644
--- a/plugins/developer/org.eclipse.papyrus.documentation.plugin/src-gen/org/eclipse/papyrus/documentation/plugin/documentation/impl/PersonImpl.java
+++ b/plugins/developer/org.eclipse.papyrus.documentation.plugin/src-gen/org/eclipse/papyrus/documentation/plugin/documentation/impl/PersonImpl.java
@@ -7,12 +7,9 @@
package org.eclipse.papyrus.documentation.plugin.documentation.impl;
import org.eclipse.emf.common.notify.Notification;
-
import org.eclipse.emf.ecore.EClass;
-
import org.eclipse.emf.ecore.impl.EModelElementImpl;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-
import org.eclipse.papyrus.documentation.plugin.documentation.DocumentationPackage;
import org.eclipse.papyrus.documentation.plugin.documentation.Person;
@@ -23,10 +20,10 @@ import org.eclipse.papyrus.documentation.plugin.documentation.Person;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getFirstName <em>First Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getLastName <em>Last Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getEMail <em>EMail</em>}</li>
- * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getCurrentCompany <em>Current Company</em>}</li>
+ * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getFirstName <em>First Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getLastName <em>Last Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getEMail <em>EMail</em>}</li>
+ * <li>{@link org.eclipse.papyrus.documentation.plugin.documentation.impl.PersonImpl#getCurrentCompany <em>Current Company</em>}</li>
* </ul>
* </p>
*
@@ -37,6 +34,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The default value of the '{@link #getFirstName() <em>First Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFirstName()
* @generated
* @ordered
@@ -47,6 +45,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The cached value of the '{@link #getFirstName() <em>First Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getFirstName()
* @generated
* @ordered
@@ -57,6 +56,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The default value of the '{@link #getLastName() <em>Last Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getLastName()
* @generated
* @ordered
@@ -67,6 +67,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The cached value of the '{@link #getLastName() <em>Last Name</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getLastName()
* @generated
* @ordered
@@ -77,6 +78,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The default value of the '{@link #getEMail() <em>EMail</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEMail()
* @generated
* @ordered
@@ -87,6 +89,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The cached value of the '{@link #getEMail() <em>EMail</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getEMail()
* @generated
* @ordered
@@ -97,6 +100,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The default value of the '{@link #getCurrentCompany() <em>Current Company</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getCurrentCompany()
* @generated
* @ordered
@@ -107,6 +111,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
* The cached value of the '{@link #getCurrentCompany() <em>Current Company</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @see #getCurrentCompany()
* @generated
* @ordered
@@ -116,6 +121,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected PersonImpl() {
@@ -125,6 +131,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -135,6 +142,7 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getFirstName() {
@@ -144,18 +152,21 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setFirstName(String newFirstName) {
String oldFirstName = firstName;
firstName = newFirstName;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, DocumentationPackage.PERSON__FIRST_NAME, oldFirstName, firstName));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getLastName() {
@@ -165,18 +176,21 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setLastName(String newLastName) {
String oldLastName = lastName;
lastName = newLastName;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, DocumentationPackage.PERSON__LAST_NAME, oldLastName, lastName));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getEMail() {
@@ -186,18 +200,21 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setEMail(String newEMail) {
String oldEMail = eMail;
eMail = newEMail;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, DocumentationPackage.PERSON__EMAIL, oldEMail, eMail));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public String getCurrentCompany() {
@@ -207,31 +224,34 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public void setCurrentCompany(String newCurrentCompany) {
String oldCurrentCompany = currentCompany;
currentCompany = newCurrentCompany;
- if (eNotificationRequired())
+ if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, DocumentationPackage.PERSON__CURRENT_COMPANY, oldCurrentCompany, currentCompany));
+ }
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case DocumentationPackage.PERSON__FIRST_NAME:
- return getFirstName();
- case DocumentationPackage.PERSON__LAST_NAME:
- return getLastName();
- case DocumentationPackage.PERSON__EMAIL:
- return getEMail();
- case DocumentationPackage.PERSON__CURRENT_COMPANY:
- return getCurrentCompany();
+ case DocumentationPackage.PERSON__FIRST_NAME:
+ return getFirstName();
+ case DocumentationPackage.PERSON__LAST_NAME:
+ return getLastName();
+ case DocumentationPackage.PERSON__EMAIL:
+ return getEMail();
+ case DocumentationPackage.PERSON__CURRENT_COMPANY:
+ return getCurrentCompany();
}
return super.eGet(featureID, resolve, coreType);
}
@@ -239,23 +259,24 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case DocumentationPackage.PERSON__FIRST_NAME:
- setFirstName((String)newValue);
- return;
- case DocumentationPackage.PERSON__LAST_NAME:
- setLastName((String)newValue);
- return;
- case DocumentationPackage.PERSON__EMAIL:
- setEMail((String)newValue);
- return;
- case DocumentationPackage.PERSON__CURRENT_COMPANY:
- setCurrentCompany((String)newValue);
- return;
+ case DocumentationPackage.PERSON__FIRST_NAME:
+ setFirstName((String) newValue);
+ return;
+ case DocumentationPackage.PERSON__LAST_NAME:
+ setLastName((String) newValue);
+ return;
+ case DocumentationPackage.PERSON__EMAIL:
+ setEMail((String) newValue);
+ return;
+ case DocumentationPackage.PERSON__CURRENT_COMPANY:
+ setCurrentCompany((String) newValue);
+ return;
}
super.eSet(featureID, newValue);
}
@@ -263,23 +284,24 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case DocumentationPackage.PERSON__FIRST_NAME:
- setFirstName(FIRST_NAME_EDEFAULT);
- return;
- case DocumentationPackage.PERSON__LAST_NAME:
- setLastName(LAST_NAME_EDEFAULT);
- return;
- case DocumentationPackage.PERSON__EMAIL:
- setEMail(EMAIL_EDEFAULT);
- return;
- case DocumentationPackage.PERSON__CURRENT_COMPANY:
- setCurrentCompany(CURRENT_COMPANY_EDEFAULT);
- return;
+ case DocumentationPackage.PERSON__FIRST_NAME:
+ setFirstName(FIRST_NAME_EDEFAULT);
+ return;
+ case DocumentationPackage.PERSON__LAST_NAME:
+ setLastName(LAST_NAME_EDEFAULT);
+ return;
+ case DocumentationPackage.PERSON__EMAIL:
+ setEMail(EMAIL_EDEFAULT);
+ return;
+ case DocumentationPackage.PERSON__CURRENT_COMPANY:
+ setCurrentCompany(CURRENT_COMPANY_EDEFAULT);
+ return;
}
super.eUnset(featureID);
}
@@ -287,19 +309,20 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case DocumentationPackage.PERSON__FIRST_NAME:
- return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName);
- case DocumentationPackage.PERSON__LAST_NAME:
- return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName);
- case DocumentationPackage.PERSON__EMAIL:
- return EMAIL_EDEFAULT == null ? eMail != null : !EMAIL_EDEFAULT.equals(eMail);
- case DocumentationPackage.PERSON__CURRENT_COMPANY:
- return CURRENT_COMPANY_EDEFAULT == null ? currentCompany != null : !CURRENT_COMPANY_EDEFAULT.equals(currentCompany);
+ case DocumentationPackage.PERSON__FIRST_NAME:
+ return FIRST_NAME_EDEFAULT == null ? firstName != null : !FIRST_NAME_EDEFAULT.equals(firstName);
+ case DocumentationPackage.PERSON__LAST_NAME:
+ return LAST_NAME_EDEFAULT == null ? lastName != null : !LAST_NAME_EDEFAULT.equals(lastName);
+ case DocumentationPackage.PERSON__EMAIL:
+ return EMAIL_EDEFAULT == null ? eMail != null : !EMAIL_EDEFAULT.equals(eMail);
+ case DocumentationPackage.PERSON__CURRENT_COMPANY:
+ return CURRENT_COMPANY_EDEFAULT == null ? currentCompany != null : !CURRENT_COMPANY_EDEFAULT.equals(currentCompany);
}
return super.eIsSet(featureID);
}
@@ -307,11 +330,14 @@ public class PersonImpl extends EModelElementImpl implements Person {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String toString() {
- if (eIsProxy()) return super.toString();
+ if (eIsProxy()) {
+ return super.toString();
+ }
StringBuffer result = new StringBuffer(super.toString());
result.append(" (firstName: ");
@@ -326,4 +352,4 @@ public class PersonImpl extends EModelElementImpl implements Person {
return result.toString();
}
-} //PersonImpl
+} // PersonImpl

Back to the top