com.hammurapi.party.impl
Class USAddressImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by com.hammurapi.party.impl.USAddressImpl
All Implemented Interfaces:
Address, ContactInfo, DateEffectiveObject, Tagged, USAddress, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class USAddressImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements USAddress

An implementation of the model object 'US Address'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  String category
          The cached value of the 'Category' attribute.
protected static String CATEGORY_EDEFAULT
          The default value of the 'Category' attribute.
protected  String city
          The cached value of the 'City' attribute.
protected static String CITY_EDEFAULT
          The default value of the 'City' attribute.
protected  String comment
          The cached value of the 'Comment' attribute.
protected static String COMMENT_EDEFAULT
          The default value of the 'Comment' attribute.
protected  String country
          The cached value of the 'Country' attribute.
protected static String COUNTRY_EDEFAULT
          The default value of the 'Country' attribute.
protected  Date end
          The cached value of the 'End' attribute.
protected static Date END_EDEFAULT
          The default value of the 'End' attribute.
protected  String recipient
          The cached value of the 'Recipient' attribute.
protected static String RECIPIENT_EDEFAULT
          The default value of the 'Recipient' attribute.
protected  Date start
          The cached value of the 'Start' attribute.
protected static Date START_EDEFAULT
          The default value of the 'Start' attribute.
protected  String state
          The cached value of the 'State' attribute.
protected static String STATE_EDEFAULT
          The default value of the 'State' attribute.
protected  String street1
          The cached value of the 'Street1' attribute.
protected static String STREET1_EDEFAULT
          The default value of the 'Street1' attribute.
protected  String street2
          The cached value of the 'Street2' attribute.
protected static String STREET2_EDEFAULT
          The default value of the 'Street2' attribute.
protected  org.eclipse.emf.common.util.EList<Tag> tags
          The cached value of the 'Tags' containment reference list.
protected  String zip
          The cached value of the 'Zip' attribute.
protected static String ZIP_EDEFAULT
          The default value of the 'Zip' attribute.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected USAddressImpl()
           
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetOwner(Party newOwner, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 String getCategory()
           
 String getCity()
           
 String getComment()
           
 String getCountry()
           
 Date getEnd()
           
 Party getOwner()
           
 String getRecipient()
           
 Date getStart()
           
 String getState()
           
 String getStreet1()
           
 String getStreet2()
           
 org.eclipse.emf.common.util.EList<Tag> getTags()
           
 String getZip()
           
 boolean isEffective(Date date)
           
 boolean isEffectiveNow()
           
 void setCategory(String newCategory)
           
 void setCity(String newCity)
           
 void setComment(String newComment)
           
 void setCountry(String newCountry)
           
 void setEnd(Date newEnd)
           
 void setOwner(Party newOwner)
           
 void setRecipient(String newRecipient)
           
 void setStart(Date newStart)
           
 void setState(String newState)
           
 void setStreet1(String newStreet1)
           
 void setStreet2(String newStreet2)
           
 void setZip(String newZip)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

tags

protected org.eclipse.emf.common.util.EList<Tag> tags
The cached value of the 'Tags' containment reference list.

See Also:
getTags()

COMMENT_EDEFAULT

protected static final String COMMENT_EDEFAULT
The default value of the 'Comment' attribute.

See Also:
getComment()

comment

protected String comment
The cached value of the 'Comment' attribute.

See Also:
getComment()

START_EDEFAULT

protected static final Date START_EDEFAULT
The default value of the 'Start' attribute.

See Also:
getStart()

start

protected Date start
The cached value of the 'Start' attribute.

See Also:
getStart()

END_EDEFAULT

protected static final Date END_EDEFAULT
The default value of the 'End' attribute.

See Also:
getEnd()

end

protected Date end
The cached value of the 'End' attribute.

See Also:
getEnd()

CATEGORY_EDEFAULT

protected static final String CATEGORY_EDEFAULT
The default value of the 'Category' attribute.

See Also:
getCategory()

category

protected String category
The cached value of the 'Category' attribute.

See Also:
getCategory()

COUNTRY_EDEFAULT

protected static final String COUNTRY_EDEFAULT
The default value of the 'Country' attribute.

See Also:
getCountry()

country

protected String country
The cached value of the 'Country' attribute.

See Also:
getCountry()

RECIPIENT_EDEFAULT

protected static final String RECIPIENT_EDEFAULT
The default value of the 'Recipient' attribute.

See Also:
getRecipient()

recipient

protected String recipient
The cached value of the 'Recipient' attribute.

See Also:
getRecipient()

STREET1_EDEFAULT

protected static final String STREET1_EDEFAULT
The default value of the 'Street1' attribute.

See Also:
getStreet1()

street1

protected String street1
The cached value of the 'Street1' attribute.

See Also:
getStreet1()

STREET2_EDEFAULT

protected static final String STREET2_EDEFAULT
The default value of the 'Street2' attribute.

See Also:
getStreet2()

street2

protected String street2
The cached value of the 'Street2' attribute.

See Also:
getStreet2()

CITY_EDEFAULT

protected static final String CITY_EDEFAULT
The default value of the 'City' attribute.

See Also:
getCity()

city

protected String city
The cached value of the 'City' attribute.

See Also:
getCity()

STATE_EDEFAULT

protected static final String STATE_EDEFAULT
The default value of the 'State' attribute.

See Also:
getState()

state

protected String state
The cached value of the 'State' attribute.

See Also:
getState()

ZIP_EDEFAULT

protected static final String ZIP_EDEFAULT
The default value of the 'Zip' attribute.

See Also:
getZip()

zip

protected String zip
The cached value of the 'Zip' attribute.

See Also:
getZip()
Constructor Detail

USAddressImpl

protected USAddressImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImpl

getTags

public org.eclipse.emf.common.util.EList<Tag> getTags()

Specified by:
getTags in interface Tagged
Returns:
the value of the 'Tags' containment reference list.
See Also:
PartyPackage.getTagged_Tags()

getComment

public String getComment()

Specified by:
getComment in interface Tagged
Returns:
the value of the 'Comment' attribute.
See Also:
Tagged.setComment(String), PartyPackage.getTagged_Comment()

setComment

public void setComment(String newComment)

Specified by:
setComment in interface Tagged
Parameters:
newComment - the new value of the 'Comment' attribute.
See Also:
Tagged.getComment()

getStart

public Date getStart()

Specified by:
getStart in interface DateEffectiveObject
Returns:
the value of the 'Start' attribute.
See Also:
DateEffectiveObject.setStart(Date), PartyPackage.getDateEffectiveObject_Start()

setStart

public void setStart(Date newStart)

Specified by:
setStart in interface DateEffectiveObject
Parameters:
newStart - the new value of the 'Start' attribute.
See Also:
DateEffectiveObject.getStart()

getEnd

public Date getEnd()

Specified by:
getEnd in interface DateEffectiveObject
Returns:
the value of the 'End' attribute.
See Also:
DateEffectiveObject.setEnd(Date), PartyPackage.getDateEffectiveObject_End()

setEnd

public void setEnd(Date newEnd)

Specified by:
setEnd in interface DateEffectiveObject
Parameters:
newEnd - the new value of the 'End' attribute.
See Also:
DateEffectiveObject.getEnd()

getCategory

public String getCategory()

Specified by:
getCategory in interface ContactInfo
Returns:
the value of the 'Category' attribute.
See Also:
ContactInfo.setCategory(String), PartyPackage.getContactInfo_Category()

setCategory

public void setCategory(String newCategory)

Specified by:
setCategory in interface ContactInfo
Parameters:
newCategory - the new value of the 'Category' attribute.
See Also:
ContactInfo.getCategory()

getOwner

public Party getOwner()

Specified by:
getOwner in interface ContactInfo
Returns:
the value of the 'Owner' container reference.
See Also:
ContactInfo.setOwner(Party), PartyPackage.getContactInfo_Owner(), Party.getContactInfo()

basicSetOwner

public org.eclipse.emf.common.notify.NotificationChain basicSetOwner(Party newOwner,
                                                                     org.eclipse.emf.common.notify.NotificationChain msgs)


setOwner

public void setOwner(Party newOwner)

Specified by:
setOwner in interface ContactInfo
Parameters:
newOwner - the new value of the 'Owner' container reference.
See Also:
ContactInfo.getOwner()

getCountry

public String getCountry()

Specified by:
getCountry in interface Address
Returns:
the value of the 'Country' attribute.
See Also:
Address.setCountry(String), PartyPackage.getAddress_Country()

setCountry

public void setCountry(String newCountry)

Specified by:
setCountry in interface Address
Parameters:
newCountry - the new value of the 'Country' attribute.
See Also:
Address.getCountry()

getRecipient

public String getRecipient()

Specified by:
getRecipient in interface USAddress
Returns:
the value of the 'Recipient' attribute.
See Also:
USAddress.setRecipient(String), PartyPackage.getUSAddress_Recipient()

setRecipient

public void setRecipient(String newRecipient)

Specified by:
setRecipient in interface USAddress
Parameters:
newRecipient - the new value of the 'Recipient' attribute.
See Also:
USAddress.getRecipient()

getStreet1

public String getStreet1()

Specified by:
getStreet1 in interface USAddress
Returns:
the value of the 'Street1' attribute.
See Also:
USAddress.setStreet1(String), PartyPackage.getUSAddress_Street1()

setStreet1

public void setStreet1(String newStreet1)

Specified by:
setStreet1 in interface USAddress
Parameters:
newStreet1 - the new value of the 'Street1' attribute.
See Also:
USAddress.getStreet1()

getStreet2

public String getStreet2()

Specified by:
getStreet2 in interface USAddress
Returns:
the value of the 'Street2' attribute.
See Also:
USAddress.setStreet2(String), PartyPackage.getUSAddress_Street2()

setStreet2

public void setStreet2(String newStreet2)

Specified by:
setStreet2 in interface USAddress
Parameters:
newStreet2 - the new value of the 'Street2' attribute.
See Also:
USAddress.getStreet2()

getCity

public String getCity()

Specified by:
getCity in interface USAddress
Returns:
the value of the 'City' attribute.
See Also:
USAddress.setCity(String), PartyPackage.getUSAddress_City()

setCity

public void setCity(String newCity)

Specified by:
setCity in interface USAddress
Parameters:
newCity - the new value of the 'City' attribute.
See Also:
USAddress.getCity()

getState

public String getState()

Specified by:
getState in interface USAddress
Returns:
the value of the 'State' attribute.
See Also:
USAddress.setState(String), PartyPackage.getUSAddress_State()

setState

public void setState(String newState)

Specified by:
setState in interface USAddress
Parameters:
newState - the new value of the 'State' attribute.
See Also:
USAddress.getState()

getZip

public String getZip()

Specified by:
getZip in interface USAddress
Returns:
the value of the 'Zip' attribute.
See Also:
USAddress.setZip(String), PartyPackage.getUSAddress_Zip()

setZip

public void setZip(String newZip)

Specified by:
setZip in interface USAddress
Parameters:
newZip - the new value of the 'Zip' attribute.
See Also:
USAddress.getZip()

isEffectiveNow

public boolean isEffectiveNow()

Specified by:
isEffectiveNow in interface DateEffectiveObject

isEffective

public boolean isEffective(Date date)

Specified by:
isEffective in interface DateEffectiveObject
Parameters:
date - Date for which effectiveness is checked.

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eBasicRemoveFromContainerFeature

public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl