All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nasdanika.models.party.impl.WebAddressImpl Maven / Gradle / Ivy

/**
 */
package org.nasdanika.models.party.impl;

import org.eclipse.emf.ecore.EClass;

import org.nasdanika.models.party.PartyPackage;
import org.nasdanika.models.party.WebAddress;

/**
 * 
 * An implementation of the model object 'Web Address'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.party.impl.WebAddressImpl#getUrl Url}
  • *
* * @generated */ public class WebAddressImpl extends ContactMethodImpl implements WebAddress { /** * The default value of the '{@link #getUrl() Url}' attribute. * * * @see #getUrl() * @generated * @ordered */ protected static final String URL_EDEFAULT = null; /** * * * @generated */ protected WebAddressImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return PartyPackage.Literals.WEB_ADDRESS; } /** * * * @generated */ @Override public String getUrl() { return (String)eDynamicGet(PartyPackage.WEB_ADDRESS__URL, PartyPackage.Literals.WEB_ADDRESS__URL, true, true); } /** * * * @generated */ @Override public void setUrl(String newUrl) { eDynamicSet(PartyPackage.WEB_ADDRESS__URL, PartyPackage.Literals.WEB_ADDRESS__URL, newUrl); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PartyPackage.WEB_ADDRESS__URL: return getUrl(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PartyPackage.WEB_ADDRESS__URL: setUrl((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PartyPackage.WEB_ADDRESS__URL: setUrl(URL_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case PartyPackage.WEB_ADDRESS__URL: return URL_EDEFAULT == null ? getUrl() != null : !URL_EDEFAULT.equals(getUrl()); } return super.eIsSet(featureID); } } //WebAddressImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy