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

org.nasdanika.models.party.impl.PostalAddressImpl 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.PostalAddress;

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

* The following features are implemented: *

*
    *
  • {@link org.nasdanika.models.party.impl.PostalAddressImpl#getCountry Country}
  • *
  • {@link org.nasdanika.models.party.impl.PostalAddressImpl#getStateProvince State Province}
  • *
  • {@link org.nasdanika.models.party.impl.PostalAddressImpl#getCity City}
  • *
  • {@link org.nasdanika.models.party.impl.PostalAddressImpl#getPostalCode Postal Code}
  • *
  • {@link org.nasdanika.models.party.impl.PostalAddressImpl#getLine1 Line1}
  • *
  • {@link org.nasdanika.models.party.impl.PostalAddressImpl#getLine2 Line2}
  • *
* * @generated */ public class PostalAddressImpl extends ContactMethodImpl implements PostalAddress { /** * The default value of the '{@link #getCountry() Country}' attribute. * * * @see #getCountry() * @generated * @ordered */ protected static final String COUNTRY_EDEFAULT = null; /** * The default value of the '{@link #getStateProvince() State Province}' attribute. * * * @see #getStateProvince() * @generated * @ordered */ protected static final String STATE_PROVINCE_EDEFAULT = null; /** * The default value of the '{@link #getCity() City}' attribute. * * * @see #getCity() * @generated * @ordered */ protected static final String CITY_EDEFAULT = null; /** * The default value of the '{@link #getPostalCode() Postal Code}' attribute. * * * @see #getPostalCode() * @generated * @ordered */ protected static final String POSTAL_CODE_EDEFAULT = null; /** * The default value of the '{@link #getLine1() Line1}' attribute. * * * @see #getLine1() * @generated * @ordered */ protected static final String LINE1_EDEFAULT = null; /** * The default value of the '{@link #getLine2() Line2}' attribute. * * * @see #getLine2() * @generated * @ordered */ protected static final String LINE2_EDEFAULT = null; /** * * * @generated */ protected PostalAddressImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return PartyPackage.Literals.POSTAL_ADDRESS; } /** * * * @generated */ @Override public String getCountry() { return (String)eDynamicGet(PartyPackage.POSTAL_ADDRESS__COUNTRY, PartyPackage.Literals.POSTAL_ADDRESS__COUNTRY, true, true); } /** * * * @generated */ @Override public void setCountry(String newCountry) { eDynamicSet(PartyPackage.POSTAL_ADDRESS__COUNTRY, PartyPackage.Literals.POSTAL_ADDRESS__COUNTRY, newCountry); } /** * * * @generated */ @Override public String getStateProvince() { return (String)eDynamicGet(PartyPackage.POSTAL_ADDRESS__STATE_PROVINCE, PartyPackage.Literals.POSTAL_ADDRESS__STATE_PROVINCE, true, true); } /** * * * @generated */ @Override public void setStateProvince(String newStateProvince) { eDynamicSet(PartyPackage.POSTAL_ADDRESS__STATE_PROVINCE, PartyPackage.Literals.POSTAL_ADDRESS__STATE_PROVINCE, newStateProvince); } /** * * * @generated */ @Override public String getCity() { return (String)eDynamicGet(PartyPackage.POSTAL_ADDRESS__CITY, PartyPackage.Literals.POSTAL_ADDRESS__CITY, true, true); } /** * * * @generated */ @Override public void setCity(String newCity) { eDynamicSet(PartyPackage.POSTAL_ADDRESS__CITY, PartyPackage.Literals.POSTAL_ADDRESS__CITY, newCity); } /** * * * @generated */ @Override public String getPostalCode() { return (String)eDynamicGet(PartyPackage.POSTAL_ADDRESS__POSTAL_CODE, PartyPackage.Literals.POSTAL_ADDRESS__POSTAL_CODE, true, true); } /** * * * @generated */ @Override public void setPostalCode(String newPostalCode) { eDynamicSet(PartyPackage.POSTAL_ADDRESS__POSTAL_CODE, PartyPackage.Literals.POSTAL_ADDRESS__POSTAL_CODE, newPostalCode); } /** * * * @generated */ @Override public String getLine1() { return (String)eDynamicGet(PartyPackage.POSTAL_ADDRESS__LINE1, PartyPackage.Literals.POSTAL_ADDRESS__LINE1, true, true); } /** * * * @generated */ @Override public void setLine1(String newLine1) { eDynamicSet(PartyPackage.POSTAL_ADDRESS__LINE1, PartyPackage.Literals.POSTAL_ADDRESS__LINE1, newLine1); } /** * * * @generated */ @Override public String getLine2() { return (String)eDynamicGet(PartyPackage.POSTAL_ADDRESS__LINE2, PartyPackage.Literals.POSTAL_ADDRESS__LINE2, true, true); } /** * * * @generated */ @Override public void setLine2(String newLine2) { eDynamicSet(PartyPackage.POSTAL_ADDRESS__LINE2, PartyPackage.Literals.POSTAL_ADDRESS__LINE2, newLine2); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PartyPackage.POSTAL_ADDRESS__COUNTRY: return getCountry(); case PartyPackage.POSTAL_ADDRESS__STATE_PROVINCE: return getStateProvince(); case PartyPackage.POSTAL_ADDRESS__CITY: return getCity(); case PartyPackage.POSTAL_ADDRESS__POSTAL_CODE: return getPostalCode(); case PartyPackage.POSTAL_ADDRESS__LINE1: return getLine1(); case PartyPackage.POSTAL_ADDRESS__LINE2: return getLine2(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PartyPackage.POSTAL_ADDRESS__COUNTRY: setCountry((String)newValue); return; case PartyPackage.POSTAL_ADDRESS__STATE_PROVINCE: setStateProvince((String)newValue); return; case PartyPackage.POSTAL_ADDRESS__CITY: setCity((String)newValue); return; case PartyPackage.POSTAL_ADDRESS__POSTAL_CODE: setPostalCode((String)newValue); return; case PartyPackage.POSTAL_ADDRESS__LINE1: setLine1((String)newValue); return; case PartyPackage.POSTAL_ADDRESS__LINE2: setLine2((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PartyPackage.POSTAL_ADDRESS__COUNTRY: setCountry(COUNTRY_EDEFAULT); return; case PartyPackage.POSTAL_ADDRESS__STATE_PROVINCE: setStateProvince(STATE_PROVINCE_EDEFAULT); return; case PartyPackage.POSTAL_ADDRESS__CITY: setCity(CITY_EDEFAULT); return; case PartyPackage.POSTAL_ADDRESS__POSTAL_CODE: setPostalCode(POSTAL_CODE_EDEFAULT); return; case PartyPackage.POSTAL_ADDRESS__LINE1: setLine1(LINE1_EDEFAULT); return; case PartyPackage.POSTAL_ADDRESS__LINE2: setLine2(LINE2_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case PartyPackage.POSTAL_ADDRESS__COUNTRY: return COUNTRY_EDEFAULT == null ? getCountry() != null : !COUNTRY_EDEFAULT.equals(getCountry()); case PartyPackage.POSTAL_ADDRESS__STATE_PROVINCE: return STATE_PROVINCE_EDEFAULT == null ? getStateProvince() != null : !STATE_PROVINCE_EDEFAULT.equals(getStateProvince()); case PartyPackage.POSTAL_ADDRESS__CITY: return CITY_EDEFAULT == null ? getCity() != null : !CITY_EDEFAULT.equals(getCity()); case PartyPackage.POSTAL_ADDRESS__POSTAL_CODE: return POSTAL_CODE_EDEFAULT == null ? getPostalCode() != null : !POSTAL_CODE_EDEFAULT.equals(getPostalCode()); case PartyPackage.POSTAL_ADDRESS__LINE1: return LINE1_EDEFAULT == null ? getLine1() != null : !LINE1_EDEFAULT.equals(getLine1()); case PartyPackage.POSTAL_ADDRESS__LINE2: return LINE2_EDEFAULT == null ? getLine2() != null : !LINE2_EDEFAULT.equals(getLine2()); } return super.eIsSet(featureID); } } //PostalAddressImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy