com.gisgraphy.domain.valueobject
Class GisFeatureDistance

java.lang.Object
  extended by com.gisgraphy.domain.valueobject.GisFeatureDistance

public class GisFeatureDistance
extends java.lang.Object

Value object that represents a gisFeature with a distance The JAXB node name is Constants.GISFEATUREDISTANCE_JAXB_NAME

Author:
David Masclet

Nested Class Summary
static class GisFeatureDistance.GisFeatureDistanceBuilder
           
 
Field Summary
protected static org.slf4j.Logger logger
           
 
Constructor Summary
GisFeatureDistance()
           
GisFeatureDistance(Adm adm, java.lang.Double distance)
           
GisFeatureDistance(Country country, java.lang.Double distance)
           
GisFeatureDistance(GisFeature gisFeature, java.lang.Double distance)
           
 
Method Summary
 void addZipCode(java.lang.String zipCode)
          add a zipcode to the list of zipcode
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAdm1Code()
           
 java.lang.String getAdm1Name()
           
 java.lang.String getAdm2Code()
           
 java.lang.String getAdm2Name()
           
 java.lang.String getAdm3Code()
           
 java.lang.String getAdm3Name()
           
 java.lang.String getAdm4Code()
           
 java.lang.String getAdm4Name()
           
 java.lang.Double getArea()
           
 java.lang.String getAsciiName()
           
 java.lang.String getCapitalName()
           
 java.lang.String getContinent()
           
 java.lang.String getCountry_flag_url()
           
 java.lang.String getCountryCode()
           
 java.lang.String getCurrencyCode()
           
 java.lang.String getCurrencyName()
           
 java.lang.Double getDistance()
           
 java.lang.Integer getElevation()
           
 java.lang.String getEquivalentFipsCode()
           
 java.lang.String getFeatureClass()
           
 java.lang.String getFeatureCode()
           
 java.lang.Long getFeatureId()
           
 java.lang.String getFipsCode()
           
 GisFeature getGisFeature()
           
 java.lang.String getGoogle_map_url()
           
 java.lang.Integer getGtopo30()
           
 java.lang.Long getId()
           
 java.lang.String getIso3166Alpha2Code()
           
 java.lang.String getIso3166Alpha3Code()
           
 java.lang.Integer getIso3166NumericCode()
           
 java.lang.Double getLat()
           
 java.lang.Integer getLevel()
           
 java.lang.Double getLng()
           
 com.vividsolutions.jts.geom.Point getLocation()
           
 java.lang.String getName()
           
 java.lang.String getPhonePrefix()
           
 java.lang.String getPlaceType()
           
 java.lang.Integer getPopulation()
           
 java.lang.String getPostalCodeMask()
           
 java.lang.String getPostalCodeRegex()
           
 java.lang.String getTimezone()
           
 java.lang.String getTld()
           
 java.lang.String getYahoo_map_url()
           
 java.util.List<java.lang.String> getZipCodes()
           
 int hashCode()
           
 void setZipCodes(java.util.List<java.lang.String> zipCodes)
          Set the zipcodes
 void updateFields()
          update the calculated fields (GoogleMapUrl,YahooMapURL,CountryFlag,...)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Constructor Detail

GisFeatureDistance

public GisFeatureDistance()

GisFeatureDistance

public GisFeatureDistance(GisFeature gisFeature,
                          java.lang.Double distance)
Parameters:
gisFeature - The gisFeature
distance - The distance

GisFeatureDistance

public GisFeatureDistance(Adm adm,
                          java.lang.Double distance)
Parameters:
adm - The adm
distance - The distance

GisFeatureDistance

public GisFeatureDistance(Country country,
                          java.lang.Double distance)
Parameters:
country - The country
distance - The distance
Method Detail

updateFields

public void updateFields()
update the calculated fields (GoogleMapUrl,YahooMapURL,CountryFlag,...)


getDistance

public java.lang.Double getDistance()
Returns:
The distance

getGisFeature

public GisFeature getGisFeature()
Returns:
The gisfeature

getName

public java.lang.String getName()
Returns:
the name

getLocation

public com.vividsolutions.jts.geom.Point getLocation()
Returns:
the location

getAdm1Code

public java.lang.String getAdm1Code()
Returns:
the adm1Code

getAdm2Code

public java.lang.String getAdm2Code()
Returns:
the adm2Code

getAdm3Code

public java.lang.String getAdm3Code()
Returns:
the adm3Code

getAdm4Code

public java.lang.String getAdm4Code()
Returns:
the adm4Code

getAdm1Name

public java.lang.String getAdm1Name()
Returns:
the adm1Name

getAdm2Name

public java.lang.String getAdm2Name()
Returns:
the adm2Name

getAdm3Name

public java.lang.String getAdm3Name()
Returns:
the adm3Name

getAdm4Name

public java.lang.String getAdm4Name()
Returns:
the adm4Name

getAsciiName

public java.lang.String getAsciiName()
Returns:
the asciiName

getCountryCode

public java.lang.String getCountryCode()
Returns:
the countryCode

getElevation

public java.lang.Integer getElevation()
Returns:
the elevation

getFeatureClass

public java.lang.String getFeatureClass()
Returns:
the featureClass

getFeatureCode

public java.lang.String getFeatureCode()
Returns:
the featureCode

getFeatureId

public java.lang.Long getFeatureId()
Returns:
the featureId

getGtopo30

public java.lang.Integer getGtopo30()
Returns:
the gtopo30

getPopulation

public java.lang.Integer getPopulation()
Returns:
the population

getTimezone

public java.lang.String getTimezone()
Returns:
the timezone

getLat

public java.lang.Double getLat()
Returns:
the lat

getLng

public java.lang.Double getLng()
Returns:
the lng

getZipCodes

public java.util.List<java.lang.String> getZipCodes()
Returns:
the zipCode

addZipCode

public void addZipCode(java.lang.String zipCode)
add a zipcode to the list of zipcode

Parameters:
zipCode - the zipcode to add

setZipCodes

public void setZipCodes(java.util.List<java.lang.String> zipCodes)
Set the zipcodes

Parameters:
zipCodes - the zipcodes to add

getPlaceType

public java.lang.String getPlaceType()
Returns:
the placeType

getGoogle_map_url

public java.lang.String getGoogle_map_url()
Returns:
the google_map_url

getYahoo_map_url

public java.lang.String getYahoo_map_url()
Returns:
the yahoo_map_url

getCountry_flag_url

public java.lang.String getCountry_flag_url()
Returns:
the country_flag_url

getLevel

public java.lang.Integer getLevel()
Returns:
the level

getArea

public java.lang.Double getArea()
Returns:
the area

getTld

public java.lang.String getTld()
Returns:
the tld

getCapitalName

public java.lang.String getCapitalName()
Returns:
the capitalName

getContinent

public java.lang.String getContinent()
Returns:
the continent

getPostalCodeRegex

public java.lang.String getPostalCodeRegex()
Returns:
the postalCodeRegex

getCurrencyCode

public java.lang.String getCurrencyCode()
Returns:
the currencyCode

getCurrencyName

public java.lang.String getCurrencyName()
Returns:
the currencyName

getEquivalentFipsCode

public java.lang.String getEquivalentFipsCode()
Returns:
the equivalentFipsCode

getFipsCode

public java.lang.String getFipsCode()
Returns:
the fipsCode

getIso3166Alpha2Code

public java.lang.String getIso3166Alpha2Code()
Returns:
the iso3166Alpha2Code

getIso3166Alpha3Code

public java.lang.String getIso3166Alpha3Code()
Returns:
the iso3166Alpha3Code

getIso3166NumericCode

public java.lang.Integer getIso3166NumericCode()
Returns:
the iso3166NumericCode

getPhonePrefix

public java.lang.String getPhonePrefix()
Returns:
the phonePrefix

getPostalCodeMask

public java.lang.String getPostalCodeMask()
Returns:
the postalCodeMask

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getId

public java.lang.Long getId()
Returns:
the id


Copyright © 2010. All Rights Reserved.