SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class representing an address.
Author: JANConstructor Summary | |
IWAddress()
Creates a new address. |
Method Summary | |
boolean
|
equals(anotherAddress)
Compares this address with another. |
String
|
getCity()
Returns the city. |
IWCoordinate
|
getCoordinate()
Returns the coordinate of the geocoded address. |
String
|
getCountry()
Returns the full name of the country. |
String
|
getCountryCode()
Returns the country code. |
IWCoordinate
|
getDegree()
Returns the coordinate of the geocoded address. |
Stiring
|
getDistrict()
Returns the name of the district. |
String
|
getHouseNumber()
Returns the housenumber. |
IWCoordinate
|
getLCC()
Returns the coordinate of the geocoded address. |
IWCoordinate
|
getMeter()
Returns the coordinate of the geocoded address. |
String
|
getPart()
Returns the part (district in town) of the address. |
String
|
getStreet()
Returns the street of the address. |
IWCoordinate
|
getWGS84()
Returns the coordinate of the geocoded address. |
String
|
getZipCode()
Returns the zip code of the address. |
boolean
|
hasHouseNumber()
Returns true if the housenumber attribute is not empty. |
void
|
setCity(newCity)
Sets the city of the address. |
void
|
setCoordinate(newCoordinate)
Sets the coordinate on which the address has been located. |
void
|
setCountry(newCountry)
Sets the full name of the country. |
void
|
setCountryCode(newCountryCode)
Sets the country code of the address. |
void
|
setDegree(newCoordinate)
Sets the coordinate on which the address has been located. |
void
|
setDistrict(newDistrict)
Sets the district name of the located address. |
void
|
setHouseNumber(newHouseNumber)
Sets the housenumber of the address. |
void
|
setLCC(newCoordinate)
Sets the coordinate on which the address has been located. |
void
|
setMeter(newCoordinate)
Sets the coordinate on which the address has been located. |
void
|
setPart()
Sets the part (district in town) of the address. |
void
|
setStreet(newStreet)
Sets the street of the address. |
void
|
setWGS84(newCoordinate)
Sets the coordinate on which the address has been located. |
void
|
setZipCode(newZipCode)
Sets the zipcode of the address. |
String
|
toFormattedString()
Returns a string representation of the address. This consists of street, house number, zip code, and city. Example: Riemenschneiderstr. |
String
|
toFullFormattedString()
Returns a detailed string representation of the address. Additional to IWAddress.toFormattedString() city parts, districts and country code are returned if present.
Example: Riemenschneiderstr., 53175 Bonn / Plittersdorf D |
String
|
toString()
Returns a string representation of this address. |
Constructor Detail |
IWAddress()
Method Detail |
boolean equals(anotherAddress)
IWAddress anotherAddress
boolean
String getCity()
String
IWCoordinate getCoordinate()
IWCoordinate
the coordinate
String getCountry()
String
String getCountryCode()
String
IWCoordinate getDegree()
IWCoordinate
the coordinate
Stiring getDistrict()
Stiring
the name of the district
String getHouseNumber()
String
IWCoordinate getLCC()
IWCoordinate
the coordinate
IWCoordinate getMeter()
IWCoordinate
the coordinate
String getPart()
String
String getStreet()
String
IWCoordinate getWGS84()
IWCoordinate
the coordinate
String getZipCode()
String
boolean hasHouseNumber()
boolean
void setCity(newCity)
String newCity
- name of the city
void
void setCoordinate(newCoordinate)
IWCoordinate newCoordinate
- the coordinate
void
void setCountry(newCountry)
String newCountry
- the full country name, e.g. 'Germany'
void
void setCountryCode(newCountryCode)
String newCountryCode
- the country code
void
void setDegree(newCoordinate)
IWCoordinate newCoordinate
- the coordinate
void
void setDistrict(newDistrict)
String newDistrict
- the name of the district
void
void setHouseNumber(newHouseNumber)
String newHouseNumber
- the house number
void
void setLCC(newCoordinate)
IWCoordinate newCoordinate
- the coordinate
void
void setMeter(newCoordinate)
IWCoordinate newCoordinate
- the coordinate
void
void setPart()
- (String}
newPart
void
void setStreet(newStreet)
String newStreet
- name of the street
void
void setWGS84(newCoordinate)
IWCoordinate newCoordinate
- the coordinate
void
void setZipCode(newZipCode)
String newZipCode
- the zipcode
void
String toFormattedString()
String
the address string
String toFullFormattedString()
IWAddress.toFormattedString()
city parts, districts and country code are returned if present.
String
the address string
String toString()
String