com.citygrid.content.places.search
Class CGPlacesSearchLocation

java.lang.Object
  extended by com.citygrid.content.places.search.CGPlacesSearchLocation
All Implemented Interfaces:
CGLocation, CGLocationDetailProvider, HasLocationIdAndImpressionId, Serializable

public class CGPlacesSearchLocation
extends Object
implements CGLocation, CGLocationDetailProvider, Serializable

See Also:
Serialized Form

Nested Class Summary
static class CGPlacesSearchLocation.Builder
           
 
Field Summary
private  CGBaseLocation baseLocation
           
private  String[] categories
           
private  String fax
           
private  boolean featured
           
private  boolean hasOffers
           
private  boolean hasVideo
           
private  String neighborhood
           
private  String offers
           
private  URI profile
           
private  String publicId
           
private  int reviews
           
private  String tagline
           
private  CGTag[] tags
           
private  URI website
           
 
Constructor Summary
private CGPlacesSearchLocation(CGPlacesSearchLocation.Builder builder)
           
 
Method Summary
 boolean equals(Object o)
           
 CGAddress getAddress()
           
 String[] getCategories()
           
 String getFax()
           
 URI getImage()
           
 String getImpressionId()
           
 CGLatLon getLatlon()
           
 int getLocationId()
           
 String getName()
           
 String getNeighborhood()
           
 String getOffers()
           
 String getPhone()
           
 URI getProfile()
           
 String getPublicId()
           
 int getRating()
           
 int getReviews()
           
 String getTagline()
           
 CGTag[] getTags()
           
 URI getWebsite()
           
 int hashCode()
           
 boolean isFeatured()
           
 boolean isHasOffers()
           
 boolean isHasVideo()
           
 CGPlacesDetail placesDetail()
          Convenience methods that returns a builder CGPlacesDetail for current location.
 CGPlacesDetailLocation placesDetailLocation()
          Convenience methods that returns details of current location.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

baseLocation

private CGBaseLocation baseLocation

featured

private boolean featured

publicId

private String publicId

neighborhood

private String neighborhood

fax

private String fax

profile

private URI profile

website

private URI website

hasVideo

private boolean hasVideo

hasOffers

private boolean hasOffers

offers

private String offers

reviews

private int reviews

categories

private String[] categories

tagline

private String tagline

tags

private CGTag[] tags
Constructor Detail

CGPlacesSearchLocation

private CGPlacesSearchLocation(CGPlacesSearchLocation.Builder builder)
Method Detail

isFeatured

public boolean isFeatured()

getPublicId

public String getPublicId()

getNeighborhood

public String getNeighborhood()

getFax

public String getFax()

getProfile

public URI getProfile()

getWebsite

public URI getWebsite()

isHasVideo

public boolean isHasVideo()

isHasOffers

public boolean isHasOffers()

getOffers

public String getOffers()

getReviews

public int getReviews()

getCategories

public String[] getCategories()

getTagline

public String getTagline()

getTags

public CGTag[] getTags()

getLocationId

public int getLocationId()
Specified by:
getLocationId in interface HasLocationIdAndImpressionId

getImpressionId

public String getImpressionId()
Specified by:
getImpressionId in interface HasLocationIdAndImpressionId

getName

public String getName()
Specified by:
getName in interface CGLocation

getAddress

public CGAddress getAddress()
Specified by:
getAddress in interface CGLocation

getLatlon

public CGLatLon getLatlon()
Specified by:
getLatlon in interface CGLocation

getImage

public URI getImage()
Specified by:
getImage in interface CGLocation

getPhone

public String getPhone()
Specified by:
getPhone in interface CGLocation

getRating

public int getRating()
Specified by:
getRating in interface CGLocation

placesDetail

public CGPlacesDetail placesDetail()
Convenience methods that returns a builder CGPlacesDetail for current location.

Specified by:
placesDetail in interface CGLocationDetailProvider
Returns:

placesDetailLocation

public CGPlacesDetailLocation placesDetailLocation()
                                            throws CGException
Convenience methods that returns details of current location.

Specified by:
placesDetailLocation in interface CGLocationDetailProvider
Returns:
Throws:
CGException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.