org.nasdanika.models.party.impl.EMailImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.models.party.impl;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.models.party.EMail;
import org.nasdanika.models.party.PartyPackage;
/**
*
* An implementation of the model object 'EMail'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.models.party.impl.EMailImpl#getEMailAddress EMail Address}
*
*
* @generated
*/
public class EMailImpl extends ContactMethodImpl implements EMail {
/**
* The default value of the '{@link #getEMailAddress() EMail Address}' attribute.
*
*
* @see #getEMailAddress()
* @generated
* @ordered
*/
protected static final String EMAIL_ADDRESS_EDEFAULT = null;
/**
*
*
* @generated
*/
protected EMailImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return PartyPackage.Literals.EMAIL;
}
/**
*
*
* @generated
*/
@Override
public String getEMailAddress() {
return (String)eDynamicGet(PartyPackage.EMAIL__EMAIL_ADDRESS, PartyPackage.Literals.EMAIL__EMAIL_ADDRESS, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setEMailAddress(String newEMailAddress) {
eDynamicSet(PartyPackage.EMAIL__EMAIL_ADDRESS, PartyPackage.Literals.EMAIL__EMAIL_ADDRESS, newEMailAddress);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case PartyPackage.EMAIL__EMAIL_ADDRESS:
return getEMailAddress();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case PartyPackage.EMAIL__EMAIL_ADDRESS:
setEMailAddress((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case PartyPackage.EMAIL__EMAIL_ADDRESS:
setEMailAddress(EMAIL_ADDRESS_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case PartyPackage.EMAIL__EMAIL_ADDRESS:
return EMAIL_ADDRESS_EDEFAULT == null ? getEMailAddress() != null : !EMAIL_ADDRESS_EDEFAULT.equals(getEMailAddress());
}
return super.eIsSet(featureID);
}
} //EMailImpl