com.evdb.javaapi.operations
Class LocationOperations

java.lang.Object
  extended by com.evdb.javaapi.operations.BaseOperations
      extended by com.evdb.javaapi.operations.LocationOperations

public class LocationOperations
extends BaseOperations

Class encapsulating location operations

Sample code for dealing with events:

        //Create our operation objects
        LocationOperations lo = new LocationOperations();
        Location l = lo.search("Los Angeles");

        assertEquals(l.getRegion(), "California");
        assertEquals(l.getMetro(), "Los Angeles");
        

Author:
tylerv

Field Summary
 
Fields inherited from class com.evdb.javaapi.operations.BaseOperations
serverCommunication
 
Constructor Summary
LocationOperations()
           
 
Method Summary
 Location search(java.lang.String location)
          Search for a location and resolve it to a metro/city/region
 
Methods inherited from class com.evdb.javaapi.operations.BaseOperations
addComment, addImage, addLink, addProperty, deleteComment, deleteImage, deleteLink, deleteProperty, getUnmarshaller, listProperties, listTags, modifyComment, modifyTags, unmarshallRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationOperations

public LocationOperations()
Method Detail

search

public Location search(java.lang.String location)
                throws EVDBRuntimeException,
                       EVDBAPIException
Search for a location and resolve it to a metro/city/region

Parameters:
location - The location to search for
Returns:
The resolved location, or null if no location could be resolved
Throws:
EVDBRuntimeException
EVDBAPIException


Copyright © 2007 Eventful Inc. All Rights Reserved.