|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.BaseOpenmrsData org.openmrs.PersonAddress
public class PersonAddress
This class is the representation of a person's address. This class is many-to-one to the Person class, so a Person/Patient/User can have zero to n addresses
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from class org.openmrs.BaseOpenmrsData |
---|
creator |
Constructor Summary | |
---|---|
PersonAddress()
default constructor |
|
PersonAddress(java.lang.Integer personAddressId)
constructor with id |
Method Summary | |
---|---|
java.lang.Object |
clone()
bitwise copy of the personAddress object. |
int |
compareTo(PersonAddress other)
|
boolean |
equals(java.lang.Object obj)
Compares this address to the given object/address for similarity. |
boolean |
equalsContent(PersonAddress otherAddress)
Compares this PersonAddress object to the given otherAddress. |
java.lang.String |
getAddress1()
|
java.lang.String |
getAddress2()
|
java.lang.String |
getAddress3()
Added for compatibility reasons with 1.8+ |
java.lang.String |
getAddress4()
Added for compatibility reasons with 1.8+ |
java.lang.String |
getAddress5()
Added for compatibility reasons with 1.8+ |
java.lang.String |
getAddress6()
Added for compatibility reasons with 1.8+ |
java.lang.String |
getCityVillage()
|
java.lang.String |
getCountry()
|
java.lang.String |
getCountyDistrict()
|
java.lang.Integer |
getId()
|
java.lang.String |
getLatitude()
|
java.lang.String |
getLongitude()
|
java.lang.String |
getNeighborhoodCell()
|
Person |
getPerson()
|
java.lang.Integer |
getPersonAddressId()
|
java.lang.String |
getPostalCode()
|
java.lang.Boolean |
getPreferred()
|
java.lang.String |
getRegion()
|
java.lang.String |
getStateProvince()
|
java.lang.String |
getSubregion()
|
java.lang.String |
getTownshipDivision()
|
int |
hashCode()
|
boolean |
isBlank()
Convenience method to test whether any of the fields in this address are set |
java.lang.Boolean |
isPreferred()
|
void |
setAddress1(java.lang.String address1)
|
void |
setAddress2(java.lang.String address2)
|
void |
setAddress3(java.lang.String address3)
Added for compatibility reasons with 1.8+ |
void |
setAddress4(java.lang.String address4)
Added for compatibility reasons with 1.8+ |
void |
setAddress5(java.lang.String address5)
Added for compatibility reasons with 1.8+ |
void |
setAddress6(java.lang.String address6)
Added for compatibility reasons with 1.8+ |
void |
setCityVillage(java.lang.String cityVillage)
|
void |
setCountry(java.lang.String country)
|
void |
setCountyDistrict(java.lang.String countyDistrict)
|
void |
setId(java.lang.Integer id)
|
void |
setLatitude(java.lang.String latitude)
|
void |
setLongitude(java.lang.String longitude)
|
void |
setNeighborhoodCell(java.lang.String neighborhoodCell)
|
void |
setPerson(Person person)
|
void |
setPersonAddressId(java.lang.Integer personAddressId)
|
void |
setPostalCode(java.lang.String postalCode)
|
void |
setPreferred(java.lang.Boolean preferred)
|
void |
setRegion(java.lang.String region)
|
void |
setStateProvince(java.lang.String stateProvince)
|
void |
setSubregion(java.lang.String subregion)
|
void |
setTownshipDivision(java.lang.String townshipDivision)
|
java.lang.String |
toString()
|
Methods inherited from class org.openmrs.BaseOpenmrsData |
---|
getChangedBy, getCreator, getDateChanged, getDateCreated, getDateVoided, getVoided, getVoidedBy, getVoidReason, isVoided, setChangedBy, setCreator, setDateChanged, setDateCreated, setDateVoided, setVoided, setVoidedBy, setVoidReason |
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openmrs.OpenmrsObject |
---|
getUuid, setUuid |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public PersonAddress()
public PersonAddress(java.lang.Integer personAddressId)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object (Usually PersonAddress) with which to compare
Object.equals(java.lang.Object)
public boolean equalsContent(PersonAddress otherAddress)
equals(Object)
in that this method compares the inner fields of each address for
equality. Note: Null/empty fields on otherAddress
/will not/ cause a false value
to be returned
otherAddress
- PersonAddress with which to compare
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getAddress1()
getAddress1
in interface Address
public void setAddress1(java.lang.String address1)
setAddress1
in interface Address
address1
- The address1 to set.public java.lang.String getAddress2()
getAddress2
in interface Address
public void setAddress2(java.lang.String address2)
setAddress2
in interface Address
address2
- The address2 to set.public java.lang.String getCityVillage()
getCityVillage
in interface Address
public void setCityVillage(java.lang.String cityVillage)
setCityVillage
in interface Address
cityVillage
- The cityVillage to set.public java.lang.String getCountry()
getCountry
in interface Address
public void setCountry(java.lang.String country)
setCountry
in interface Address
country
- The country to set.public java.lang.Boolean isPreferred()
public java.lang.Boolean getPreferred()
public void setPreferred(java.lang.Boolean preferred)
preferred
- The preferred to set.public java.lang.String getLatitude()
getLatitude
in interface Address
public void setLatitude(java.lang.String latitude)
setLatitude
in interface Address
latitude
- The latitude to set.public java.lang.String getLongitude()
getLongitude
in interface Address
public void setLongitude(java.lang.String longitude)
setLongitude
in interface Address
longitude
- The longitude to set.public Person getPerson()
public void setPerson(Person person)
person
- The person to set.public java.lang.Integer getPersonAddressId()
public void setPersonAddressId(java.lang.Integer personAddressId)
personAddressId
- The personAddressId to set.public java.lang.String getPostalCode()
getPostalCode
in interface Address
public void setPostalCode(java.lang.String postalCode)
setPostalCode
in interface Address
postalCode
- The postalCode to set.public java.lang.String getStateProvince()
getStateProvince
in interface Address
public void setStateProvince(java.lang.String stateProvince)
setStateProvince
in interface Address
stateProvince
- The stateProvince to set.public java.lang.String getCountyDistrict()
getCountyDistrict
in interface Address
public void setCountyDistrict(java.lang.String countyDistrict)
setCountyDistrict
in interface Address
countyDistrict
- The countyDistrict to set.public java.lang.String getNeighborhoodCell()
public void setNeighborhoodCell(java.lang.String neighborhoodCell)
neighborhoodCell
- The neighborhoodCell to set.public boolean isBlank()
public java.lang.String getRegion()
public void setRegion(java.lang.String region)
region
- the region to setpublic java.lang.String getSubregion()
public void setSubregion(java.lang.String subregion)
subregion
- the subregion to setpublic java.lang.String getTownshipDivision()
public void setTownshipDivision(java.lang.String townshipDivision)
townshipDivision
- the townshipDivision to setpublic int compareTo(PersonAddress other)
compareTo
in interface java.lang.Comparable<PersonAddress>
Comparable.compareTo(java.lang.Object)
public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public java.lang.String getAddress3()
getAddress3
in interface Address
public void setAddress3(java.lang.String address3)
setAddress3
in interface Address
public java.lang.String getAddress4()
getAddress4
in interface Address
public void setAddress4(java.lang.String address4)
setAddress4
in interface Address
public java.lang.String getAddress5()
getAddress5
in interface Address
public void setAddress5(java.lang.String address5)
setAddress5
in interface Address
public void setAddress6(java.lang.String address6)
setAddress6
in interface Address
public java.lang.String getAddress6()
getAddress6
in interface Address
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |