SiLeBAT/FSK-Lab

View on GitHub
de.bund.bfr.knime.fsklab.metadata.model/gen/metadata/impl/ContactImpl.java

Summary

Maintainability
F
1 wk
Test Coverage
/**
 */
package metadata.impl;

import metadata.Contact;
import metadata.MetadataPackage;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Contact</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * </p>
 * <ul>
 *   <li>{@link metadata.impl.ContactImpl#getTitle <em>Title</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getFamilyName <em>Family Name</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getGivenName <em>Given Name</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getEmail <em>Email</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getTelephone <em>Telephone</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getStreetAddress <em>Street Address</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getCountry <em>Country</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getCity <em>City</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getZipCode <em>Zip Code</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getRegion <em>Region</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getTimeZone <em>Time Zone</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getGender <em>Gender</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getNote <em>Note</em>}</li>
 *   <li>{@link metadata.impl.ContactImpl#getOrganization <em>Organization</em>}</li>
 * </ul>
 *
 * @generated
 */
public class ContactImpl extends MinimalEObjectImpl.Container implements Contact {
    /**
     * The default value of the '{@link #getTitle() <em>Title</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getTitle()
     * @generated
     * @ordered
     */
    protected static final String TITLE_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getTitle() <em>Title</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getTitle()
     * @generated
     * @ordered
     */
    protected String title = TITLE_EDEFAULT;

    /**
     * The default value of the '{@link #getFamilyName() <em>Family Name</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getFamilyName()
     * @generated
     * @ordered
     */
    protected static final String FAMILY_NAME_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getFamilyName() <em>Family Name</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getFamilyName()
     * @generated
     * @ordered
     */
    protected String familyName = FAMILY_NAME_EDEFAULT;

    /**
     * The default value of the '{@link #getGivenName() <em>Given Name</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getGivenName()
     * @generated
     * @ordered
     */
    protected static final String GIVEN_NAME_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getGivenName() <em>Given Name</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getGivenName()
     * @generated
     * @ordered
     */
    protected String givenName = GIVEN_NAME_EDEFAULT;

    /**
     * The default value of the '{@link #getEmail() <em>Email</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getEmail()
     * @generated
     * @ordered
     */
    protected static final String EMAIL_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getEmail() <em>Email</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getEmail()
     * @generated
     * @ordered
     */
    protected String email = EMAIL_EDEFAULT;

    /**
     * The default value of the '{@link #getTelephone() <em>Telephone</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getTelephone()
     * @generated
     * @ordered
     */
    protected static final String TELEPHONE_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getTelephone() <em>Telephone</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getTelephone()
     * @generated
     * @ordered
     */
    protected String telephone = TELEPHONE_EDEFAULT;

    /**
     * The default value of the '{@link #getStreetAddress() <em>Street Address</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getStreetAddress()
     * @generated
     * @ordered
     */
    protected static final String STREET_ADDRESS_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getStreetAddress() <em>Street Address</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getStreetAddress()
     * @generated
     * @ordered
     */
    protected String streetAddress = STREET_ADDRESS_EDEFAULT;

    /**
     * The default value of the '{@link #getCountry() <em>Country</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCountry()
     * @generated
     * @ordered
     */
    protected static final String COUNTRY_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getCountry() <em>Country</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCountry()
     * @generated
     * @ordered
     */
    protected String country = COUNTRY_EDEFAULT;

    /**
     * The default value of the '{@link #getCity() <em>City</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCity()
     * @generated
     * @ordered
     */
    protected static final String CITY_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getCity() <em>City</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getCity()
     * @generated
     * @ordered
     */
    protected String city = CITY_EDEFAULT;

    /**
     * The default value of the '{@link #getZipCode() <em>Zip Code</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getZipCode()
     * @generated
     * @ordered
     */
    protected static final String ZIP_CODE_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getZipCode() <em>Zip Code</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getZipCode()
     * @generated
     * @ordered
     */
    protected String zipCode = ZIP_CODE_EDEFAULT;

    /**
     * The default value of the '{@link #getRegion() <em>Region</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getRegion()
     * @generated
     * @ordered
     */
    protected static final String REGION_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getRegion() <em>Region</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getRegion()
     * @generated
     * @ordered
     */
    protected String region = REGION_EDEFAULT;

    /**
     * The default value of the '{@link #getTimeZone() <em>Time Zone</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getTimeZone()
     * @generated
     * @ordered
     */
    protected static final String TIME_ZONE_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getTimeZone() <em>Time Zone</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getTimeZone()
     * @generated
     * @ordered
     */
    protected String timeZone = TIME_ZONE_EDEFAULT;

    /**
     * The default value of the '{@link #getGender() <em>Gender</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getGender()
     * @generated
     * @ordered
     */
    protected static final String GENDER_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getGender() <em>Gender</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getGender()
     * @generated
     * @ordered
     */
    protected String gender = GENDER_EDEFAULT;

    /**
     * The default value of the '{@link #getNote() <em>Note</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getNote()
     * @generated
     * @ordered
     */
    protected static final String NOTE_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getNote() <em>Note</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getNote()
     * @generated
     * @ordered
     */
    protected String note = NOTE_EDEFAULT;

    /**
     * The default value of the '{@link #getOrganization() <em>Organization</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getOrganization()
     * @generated
     * @ordered
     */
    protected static final String ORGANIZATION_EDEFAULT = null;

    /**
     * The cached value of the '{@link #getOrganization() <em>Organization</em>}' attribute.
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @see #getOrganization()
     * @generated
     * @ordered
     */
    protected String organization = ORGANIZATION_EDEFAULT;

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    protected ContactImpl() {
        super();
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    protected EClass eStaticClass() {
        return MetadataPackage.Literals.CONTACT;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getTitle() {
        return title;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setTitle(String newTitle) {
        String oldTitle = title;
        title = newTitle;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__TITLE, oldTitle, title));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getFamilyName() {
        return familyName;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setFamilyName(String newFamilyName) {
        String oldFamilyName = familyName;
        familyName = newFamilyName;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__FAMILY_NAME, oldFamilyName, familyName));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getGivenName() {
        return givenName;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setGivenName(String newGivenName) {
        String oldGivenName = givenName;
        givenName = newGivenName;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__GIVEN_NAME, oldGivenName, givenName));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getEmail() {
        return email;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setEmail(String newEmail) {
        String oldEmail = email;
        email = newEmail;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__EMAIL, oldEmail, email));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getTelephone() {
        return telephone;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setTelephone(String newTelephone) {
        String oldTelephone = telephone;
        telephone = newTelephone;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__TELEPHONE, oldTelephone, telephone));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getStreetAddress() {
        return streetAddress;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setStreetAddress(String newStreetAddress) {
        String oldStreetAddress = streetAddress;
        streetAddress = newStreetAddress;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__STREET_ADDRESS, oldStreetAddress, streetAddress));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getCountry() {
        return country;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setCountry(String newCountry) {
        String oldCountry = country;
        country = newCountry;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__COUNTRY, oldCountry, country));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getCity() {
        return city;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setCity(String newCity) {
        String oldCity = city;
        city = newCity;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__CITY, oldCity, city));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getZipCode() {
        return zipCode;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setZipCode(String newZipCode) {
        String oldZipCode = zipCode;
        zipCode = newZipCode;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__ZIP_CODE, oldZipCode, zipCode));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getRegion() {
        return region;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setRegion(String newRegion) {
        String oldRegion = region;
        region = newRegion;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__REGION, oldRegion, region));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getTimeZone() {
        return timeZone;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setTimeZone(String newTimeZone) {
        String oldTimeZone = timeZone;
        timeZone = newTimeZone;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__TIME_ZONE, oldTimeZone, timeZone));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getGender() {
        return gender;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setGender(String newGender) {
        String oldGender = gender;
        gender = newGender;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__GENDER, oldGender, gender));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getNote() {
        return note;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setNote(String newNote) {
        String oldNote = note;
        note = newNote;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__NOTE, oldNote, note));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public String getOrganization() {
        return organization;
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public void setOrganization(String newOrganization) {
        String oldOrganization = organization;
        organization = newOrganization;
        if (eNotificationRequired())
            eNotify(new ENotificationImpl(this, Notification.SET, MetadataPackage.CONTACT__ORGANIZATION, oldOrganization, organization));
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public Object eGet(int featureID, boolean resolve, boolean coreType) {
        switch (featureID) {
            case MetadataPackage.CONTACT__TITLE:
                return getTitle();
            case MetadataPackage.CONTACT__FAMILY_NAME:
                return getFamilyName();
            case MetadataPackage.CONTACT__GIVEN_NAME:
                return getGivenName();
            case MetadataPackage.CONTACT__EMAIL:
                return getEmail();
            case MetadataPackage.CONTACT__TELEPHONE:
                return getTelephone();
            case MetadataPackage.CONTACT__STREET_ADDRESS:
                return getStreetAddress();
            case MetadataPackage.CONTACT__COUNTRY:
                return getCountry();
            case MetadataPackage.CONTACT__CITY:
                return getCity();
            case MetadataPackage.CONTACT__ZIP_CODE:
                return getZipCode();
            case MetadataPackage.CONTACT__REGION:
                return getRegion();
            case MetadataPackage.CONTACT__TIME_ZONE:
                return getTimeZone();
            case MetadataPackage.CONTACT__GENDER:
                return getGender();
            case MetadataPackage.CONTACT__NOTE:
                return getNote();
            case MetadataPackage.CONTACT__ORGANIZATION:
                return getOrganization();
        }
        return super.eGet(featureID, resolve, coreType);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eSet(int featureID, Object newValue) {
        switch (featureID) {
            case MetadataPackage.CONTACT__TITLE:
                setTitle((String)newValue);
                return;
            case MetadataPackage.CONTACT__FAMILY_NAME:
                setFamilyName((String)newValue);
                return;
            case MetadataPackage.CONTACT__GIVEN_NAME:
                setGivenName((String)newValue);
                return;
            case MetadataPackage.CONTACT__EMAIL:
                setEmail((String)newValue);
                return;
            case MetadataPackage.CONTACT__TELEPHONE:
                setTelephone((String)newValue);
                return;
            case MetadataPackage.CONTACT__STREET_ADDRESS:
                setStreetAddress((String)newValue);
                return;
            case MetadataPackage.CONTACT__COUNTRY:
                setCountry((String)newValue);
                return;
            case MetadataPackage.CONTACT__CITY:
                setCity((String)newValue);
                return;
            case MetadataPackage.CONTACT__ZIP_CODE:
                setZipCode((String)newValue);
                return;
            case MetadataPackage.CONTACT__REGION:
                setRegion((String)newValue);
                return;
            case MetadataPackage.CONTACT__TIME_ZONE:
                setTimeZone((String)newValue);
                return;
            case MetadataPackage.CONTACT__GENDER:
                setGender((String)newValue);
                return;
            case MetadataPackage.CONTACT__NOTE:
                setNote((String)newValue);
                return;
            case MetadataPackage.CONTACT__ORGANIZATION:
                setOrganization((String)newValue);
                return;
        }
        super.eSet(featureID, newValue);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public void eUnset(int featureID) {
        switch (featureID) {
            case MetadataPackage.CONTACT__TITLE:
                setTitle(TITLE_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__FAMILY_NAME:
                setFamilyName(FAMILY_NAME_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__GIVEN_NAME:
                setGivenName(GIVEN_NAME_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__EMAIL:
                setEmail(EMAIL_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__TELEPHONE:
                setTelephone(TELEPHONE_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__STREET_ADDRESS:
                setStreetAddress(STREET_ADDRESS_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__COUNTRY:
                setCountry(COUNTRY_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__CITY:
                setCity(CITY_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__ZIP_CODE:
                setZipCode(ZIP_CODE_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__REGION:
                setRegion(REGION_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__TIME_ZONE:
                setTimeZone(TIME_ZONE_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__GENDER:
                setGender(GENDER_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__NOTE:
                setNote(NOTE_EDEFAULT);
                return;
            case MetadataPackage.CONTACT__ORGANIZATION:
                setOrganization(ORGANIZATION_EDEFAULT);
                return;
        }
        super.eUnset(featureID);
    }

    /**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    @Override
    public boolean eIsSet(int featureID) {
        switch (featureID) {
            case MetadataPackage.CONTACT__TITLE:
                return TITLE_EDEFAULT == null ? title != null : !TITLE_EDEFAULT.equals(title);
            case MetadataPackage.CONTACT__FAMILY_NAME:
                return FAMILY_NAME_EDEFAULT == null ? familyName != null : !FAMILY_NAME_EDEFAULT.equals(familyName);
            case MetadataPackage.CONTACT__GIVEN_NAME:
                return GIVEN_NAME_EDEFAULT == null ? givenName != null : !GIVEN_NAME_EDEFAULT.equals(givenName);
            case MetadataPackage.CONTACT__EMAIL:
                return EMAIL_EDEFAULT == null ? email != null : !EMAIL_EDEFAULT.equals(email);
            case MetadataPackage.CONTACT__TELEPHONE:
                return TELEPHONE_EDEFAULT == null ? telephone != null : !TELEPHONE_EDEFAULT.equals(telephone);
            case MetadataPackage.CONTACT__STREET_ADDRESS:
                return STREET_ADDRESS_EDEFAULT == null ? streetAddress != null : !STREET_ADDRESS_EDEFAULT.equals(streetAddress);
            case MetadataPackage.CONTACT__COUNTRY:
                return COUNTRY_EDEFAULT == null ? country != null : !COUNTRY_EDEFAULT.equals(country);
            case MetadataPackage.CONTACT__CITY:
                return CITY_EDEFAULT == null ? city != null : !CITY_EDEFAULT.equals(city);
            case MetadataPackage.CONTACT__ZIP_CODE:
                return ZIP_CODE_EDEFAULT == null ? zipCode != null : !ZIP_CODE_EDEFAULT.equals(zipCode);
            case MetadataPackage.CONTACT__REGION:
                return REGION_EDEFAULT == null ? region != null : !REGION_EDEFAULT.equals(region);
            case MetadataPackage.CONTACT__TIME_ZONE:
                return TIME_ZONE_EDEFAULT == null ? timeZone != null : !TIME_ZONE_EDEFAULT.equals(timeZone);
            case MetadataPackage.CONTACT__GENDER:
                return GENDER_EDEFAULT == null ? gender != null : !GENDER_EDEFAULT.equals(gender);
            case MetadataPackage.CONTACT__NOTE:
                return NOTE_EDEFAULT == null ? note != null : !NOTE_EDEFAULT.equals(note);
            case MetadataPackage.CONTACT__ORGANIZATION:
                return ORGANIZATION_EDEFAULT == null ? organization != null : !ORGANIZATION_EDEFAULT.equals(organization);
        }
        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(" (title: ");
        result.append(title);
        result.append(", familyName: ");
        result.append(familyName);
        result.append(", givenName: ");
        result.append(givenName);
        result.append(", email: ");
        result.append(email);
        result.append(", telephone: ");
        result.append(telephone);
        result.append(", streetAddress: ");
        result.append(streetAddress);
        result.append(", country: ");
        result.append(country);
        result.append(", city: ");
        result.append(city);
        result.append(", zipCode: ");
        result.append(zipCode);
        result.append(", region: ");
        result.append(region);
        result.append(", timeZone: ");
        result.append(timeZone);
        result.append(", gender: ");
        result.append(gender);
        result.append(", note: ");
        result.append(note);
        result.append(", organization: ");
        result.append(organization);
        result.append(')');
        return result.toString();
    }

} //ContactImpl