BEA Systems, Inc.

com.beasys.commerce.axiom.contact
Class AddressImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.BelongingImpl
        |
        +--com.beasys.commerce.axiom.contact.AddressImpl
Direct Known Subclasses:
ContactAddressImpl

public class AddressImpl
extends BelongingImpl
implements Address

The Address represents a standard postal location. It is intended to be used for the purposes of billing, shipping or marketing.

See Also:
Address, AddressHome, Serialized Form

Field Summary
 java.lang.String city
          The city component of the address.
 java.lang.String country
          The country component of the address.
 java.lang.String county
           Containment: By Value Multiplicity: 1:1
 java.lang.String countyCode
          The County Code of Address when applicable Containment: By Value Multiplicity: 1:1
 java.lang.String description
          A description for the address that provide some clarification where needed..
 java.lang.String geoCode
           Containment: By Value Multiplicity: 1:1
 java.lang.String poBox
          The Post Office Box component of the address when applicable.
 java.lang.String postalCode
          The string that represents the postal code Containment: By Value Multiplicity: 1:1
 java.lang.String postalCodeType
          The format or type of the postal code.
 java.lang.String state
           Containment: By Value Multiplicity: 1:1
 java.lang.String street1
          The street component of the address.
 java.lang.String street2
           Containment: By Value Multiplicity: 1:1
 
Fields inherited from class com.beasys.commerce.foundation.BelongingImpl
__classIdentifier, __containingBelonging, __containingEntity, __mapKey, __sequenceNumber, _isDirty
 
Constructor Summary
AddressImpl()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compare this belonging to another
 java.lang.String getCity()
          Get the value of city
 java.lang.String getCountry()
          Get the value of country
 java.lang.String getCounty()
          Get the value of county
 java.lang.String getCountyCode()
          Get the value of county
 java.lang.String getDescription()
          Get the value of description
 java.lang.String getGeoCode()
          Get the value of geoCode
 java.lang.String getPoBox()
          Get the value of poBox
 java.lang.String getPostalCode()
          Get the value of postalCode
 java.lang.String getPostalCodeType()
          Get the value of postalCodeType
 java.lang.String getState()
          Get the value of state
 java.lang.String getStreet1()
          Get the value of street1
 java.lang.String getStreet2()
          Get the value of street2
 java.lang.String interfaceName()
          interfaceName() returns the unqualified name of the interface from the UML model
 void setByValue(Belonging value)
          It is possible to call set-by-value with a superclass.
 void setCity(java.lang.String city)
          Set the value of city
 void setCountry(java.lang.String country)
          Set the value of country
 void setCounty(java.lang.String county)
          Set the value of county
 void setCountyCode(java.lang.String countyCode)
          Set the value of countyCode
 void setDescription(java.lang.String description)
          Set the value of description
 void setGeoCode(java.lang.String geoCode)
          Set the value of geoCode
 void setPoBox(java.lang.String poBox)
          Set the value of poBox
 void setPostalCode(java.lang.String postalCode)
          Set the value of postalCode
 void setPostalCodeType(java.lang.String postalCodeType)
          Set the value of postalCodeType
 void setState(java.lang.String state)
          Set the value of state
 void setStreet1(java.lang.String street1)
          Set the value of street1
 void setStreet2(java.lang.String street2)
          Set the value of street2
 Belonging value()
          value() is a more typesafe implementation of clone()
 
Methods inherited from class com.beasys.commerce.foundation.BelongingImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clone, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, enumerateRelationalBinding, enumerateRelationalBinding, equals, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, getPersistenceHelperPlugin, hashCode, set__classIdentifier, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

street2

public java.lang.String street2

street1

public java.lang.String street1
The street component of the address.

description

public java.lang.String description
A description for the address that provide some clarification where needed.. i.e. "Primary Residence", "Delivery at Work".

city

public java.lang.String city
The city component of the address.

postalCodeType

public java.lang.String postalCodeType
The format or type of the postal code. Generally determined by the country (zip code in the US).

country

public java.lang.String country
The country component of the address.

state

public java.lang.String state

geoCode

public java.lang.String geoCode

poBox

public java.lang.String poBox
The Post Office Box component of the address when applicable.

county

public java.lang.String county

countyCode

public java.lang.String countyCode
The County Code of Address when applicable

postalCode

public java.lang.String postalCode
The string that represents the postal code
Constructor Detail

AddressImpl

public AddressImpl()
Method Detail

getStreet2

public java.lang.String getStreet2()
Get the value of street2
Specified by:
getStreet2 in interface Address
Returns:
street2.

setStreet2

public void setStreet2(java.lang.String street2)
Set the value of street2
Specified by:
setStreet2 in interface Address
Parameters:
street2 - street2 to be added

getStreet1

public java.lang.String getStreet1()
Get the value of street1
Specified by:
getStreet1 in interface Address
Returns:
street1.

setStreet1

public void setStreet1(java.lang.String street1)
Set the value of street1
Specified by:
setStreet1 in interface Address
Parameters:
street1 - street1 to be added

getDescription

public java.lang.String getDescription()
Get the value of description
Specified by:
getDescription in interface Address
Returns:
description.

setDescription

public void setDescription(java.lang.String description)
Set the value of description
Specified by:
setDescription in interface Address
Parameters:
description - description to be added

getCity

public java.lang.String getCity()
Get the value of city
Specified by:
getCity in interface Address
Returns:
city.

setCity

public void setCity(java.lang.String city)
Set the value of city
Specified by:
setCity in interface Address
Parameters:
city - city to be added

getPostalCodeType

public java.lang.String getPostalCodeType()
Get the value of postalCodeType
Specified by:
getPostalCodeType in interface Address
Returns:
postalCodeType.

setPostalCodeType

public void setPostalCodeType(java.lang.String postalCodeType)
Set the value of postalCodeType
Specified by:
setPostalCodeType in interface Address
Parameters:
postalCodeType - postalCodeType to be added

getCountry

public java.lang.String getCountry()
Get the value of country
Specified by:
getCountry in interface Address
Returns:
country.

setCountry

public void setCountry(java.lang.String country)
Set the value of country
Specified by:
setCountry in interface Address
Parameters:
country - country to be added

getState

public java.lang.String getState()
Get the value of state
Specified by:
getState in interface Address
Returns:
state.

setState

public void setState(java.lang.String state)
Set the value of state
Specified by:
setState in interface Address
Parameters:
state - state to be added

getGeoCode

public java.lang.String getGeoCode()
Get the value of geoCode
Specified by:
getGeoCode in interface Address
Returns:
geoCode.

setGeoCode

public void setGeoCode(java.lang.String geoCode)
Set the value of geoCode
Specified by:
setGeoCode in interface Address
Parameters:
geoCode - geoCode to be added

getPoBox

public java.lang.String getPoBox()
Get the value of poBox
Specified by:
getPoBox in interface Address
Returns:
poBox.

setPoBox

public void setPoBox(java.lang.String poBox)
Set the value of poBox
Specified by:
setPoBox in interface Address
Parameters:
poBox - poBox to be added

getCounty

public java.lang.String getCounty()
Get the value of county
Specified by:
getCounty in interface Address
Returns:
county.

setCounty

public void setCounty(java.lang.String county)
Set the value of county
Specified by:
setCounty in interface Address
Parameters:
county - county to be added

getCountyCode

public java.lang.String getCountyCode()
Get the value of county
Specified by:
getCountyCode in interface Address
Returns:
countyCode.

setCountyCode

public void setCountyCode(java.lang.String countyCode)
Set the value of countyCode
Specified by:
setCountyCode in interface Address
Parameters:
countyCode - countyCode to be added

getPostalCode

public java.lang.String getPostalCode()
Get the value of postalCode
Specified by:
getPostalCode in interface Address
Returns:
postalCode.

setPostalCode

public void setPostalCode(java.lang.String postalCode)
Set the value of postalCode
Specified by:
setPostalCode in interface Address
Parameters:
postalCode - postalCode to be added

value

public Belonging value()
value() is a more typesafe implementation of clone()
Returns:
a clone of this instance

interfaceName

public java.lang.String interfaceName()
interfaceName() returns the unqualified name of the interface from the UML model
Returns:
the unqualified name of the belonging interface from the UML model

setByValue

public void setByValue(Belonging value)
It is possible to call set-by-value with a superclass. If that is the case, only the fields in the superclass will be set in this instance. The remaining fields get the default values.

It is also possible to call set-by-value with a subclass. In this case, the specialized fields in the subclass will be ignored. The overridden fields in the subclass will be populated.

Overrides:
setByValue in class BelongingImpl
Tags copied from interface: Belonging
Parameters:
belonging - The Belonging to use for initialization.

compareTo

public int compareTo(java.lang.Object o)
Compare this belonging to another
Overrides:
compareTo in class BelongingImpl
Parameters:
o - target object for comparision
Returns:
0 objects are equal

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved