|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a service object that can find businesses in a given area that match either a name or category. This interface is used for classes implemented for specific external providers. The general management class YPFinderImpl implements another interface, YPFinder, that extends this interface. Any class implementing this interface should be thread-safe.
Method Summary | |
java.lang.Boolean |
anyBusinessesInCity(YPCategory category, java.lang.String country, java.lang.String state, java.lang.String city) Deprecated. |
java.lang.Boolean |
anyBusinessesInPCode(YPCategory category, java.lang.String country, java.lang.String postalCode) Deprecated. |
java.lang.Boolean |
anyBusinessesInRadius(YPCategory category, Point location, double metersRadius) Deprecated. |
java.lang.Boolean |
anyBusinessesInSameCity(YPCategory category, Location loc) Deprecated. |
java.lang.Boolean |
anyBusinessesInSamePCode(YPCategory category, Location loc) Deprecated. |
java.lang.Boolean |
anyBusinessesInSameState(YPCategory category, Location loc) Deprecated. |
java.lang.Boolean |
anyBusinessesInState(YPCategory category, java.lang.String country, java.lang.String state) Deprecated. |
YPBusiness[] |
getBusinessesAnywhere(java.lang.String businessName, java.util.Locale locale) This returns all businesses matching a specified name. |
YPBusiness[] |
getBusinessesAnywhere(java.lang.String businessName, YPCategory category, java.util.Locale locale) This returns all businesses conforming to a specified name and category. |
YPBusiness[] |
getBusinessesAnywhere(YPCategory category, java.util.Locale locale) This returns all businesses in a specified category. |
YPBusiness[] |
getBusinessesInCity(java.lang.String businessName, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale) This returns all businesses matching a specified name in a specified city. |
YPBusiness[] |
getBusinessesInCity(java.lang.String businessName, YPCategory category, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale) This returns all businesses conforming to a specified name, category and city. |
YPBusiness[] |
getBusinessesInCity(YPCategory category, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale) This returns all businesses in a specified category and a specified city. |
YPBusiness[] |
getBusinessesInCorridor(java.lang.String businessName, Point[] corridor, double metersRadius, java.util.Locale locale) This returns all businesses matching a specified name in a specified corridor. |
YPBusiness[] |
getBusinessesInCorridor(java.lang.String businessName, YPCategory category, Point[] corridor, double metersRadius, java.util.Locale locale) This returns all businesses conforming to a specified name, category and corridor. |
YPBusiness[] |
getBusinessesInCorridor(YPCategory category, Point[] corridor, double metersRadius, java.util.Locale locale) This returns all businesses in a specified category and corridor. |
YPBusiness[] |
getBusinessesInPCode(java.lang.String businessName, java.lang.String country, java.lang.String postalCode, java.util.Locale locale) This returns all businesses matching a specified name in a specified postal code. |
YPBusiness[] |
getBusinessesInPCode(java.lang.String businessName, YPCategory category, java.lang.String country, java.lang.String postalCode, java.util.Locale locale) This returns all businesses conforming to a specified name, category and postal code. |
YPBusiness[] |
getBusinessesInPCode(YPCategory category, java.lang.String country, java.lang.String postalCode, java.util.Locale locale) This returns all businesses in a specified category and a specified postal code. |
YPBusiness[] |
getBusinessesInRadius(java.lang.String businessName, Point location, double metersRadius, java.util.Locale locale) This returns all businesses matching a specified name in a specified radius. |
YPBusiness[] |
getBusinessesInRadius(java.lang.String businessName, YPCategory category, Point location, double metersRadius, java.util.Locale locale) This returns all businesses conforming to a specified name, category, center point and radius. |
YPBusiness[] |
getBusinessesInRadius(YPCategory category, Point location, double metersRadius, java.util.Locale locale) This returns all businesses in a specified category and a specified radius. |
YPBusiness[] |
getBusinessesInSameCity(java.lang.String businessName, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSameCity(java.lang.String businessName, YPCategory category, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSameCity(YPCategory category, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSamePCode(java.lang.String businessName, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSamePCode(java.lang.String businessName, YPCategory category, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSamePCode(YPCategory category, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSameState(java.lang.String businessName, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSameState(java.lang.String businessName, YPCategory category, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInSameState(YPCategory category, Location loc, java.util.Locale locale) Deprecated. |
YPBusiness[] |
getBusinessesInState(java.lang.String businessName, java.lang.String country, java.lang.String state, java.util.Locale locale) This returns all businesses matching a specified name in a specified state. |
YPBusiness[] |
getBusinessesInState(java.lang.String businessName, YPCategory category, java.lang.String country, java.lang.String state, java.util.Locale locale) This returns all businesses conforming to a specified name, category and state. |
YPBusiness[] |
getBusinessesInState(YPCategory category, java.lang.String country, java.lang.String state, java.util.Locale locale) This returns all businesses in a specified category and a specified state. |
YPBusiness[] |
getKeywordRelatedBusinessesInCity(java.lang.String keyword, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale) This returns all businesses matching a specified keyword in a specified city. |
YPBusiness[] |
getKeywordRelatedBusinessesInCorridor(java.lang.String keyword, Point[] corridor, double metersRadius, java.util.Locale locale) This returns all businesses matching a specified keyword in a specified corridor. |
YPBusiness[] |
getKeywordRelatedBusinessesInPCode(java.lang.String keyword, java.lang.String country, java.lang.String postalCode, java.util.Locale locale) This returns all businesses matching a specified keyword in a specified postal code. |
YPBusiness[] |
getKeywordRelatedBusinessesInRadius(java.lang.String keyword, Point location, double metersRadius, java.util.Locale locale) This returns all businesses matching a specified keyword in a specified radius. |
YPBusiness[] |
getKeywordRelatedBusinessesInState(java.lang.String keyword, java.lang.String country, java.lang.String state, java.util.Locale locale) This returns all businesses matching a specified keyword in a specified state. |
YPBusiness[] |
getNearestNBusinesses(java.lang.String businessName, Point location, int n, java.util.Locale locale) This returns the N businesses closest to a given center point. |
YPBusiness[] |
getNearestNBusinesses(java.lang.String businessName, YPCategory category, Point location, int n, java.util.Locale locale) This returns the N businesses closest to a given center point. |
YPBusiness[] |
getNearestNBusinesses(YPCategory category, Point location, int n, java.util.Locale locale) This returns the N businesses closest to a given center point. |
YPBusiness[] |
getNearestNKeywordRelatedBusinesses(java.lang.String keyword, Point location, int n, java.util.Locale locale) This returns the N businesses closest to a given center point. |
java.lang.String |
xmlYP(org.w3c.dom.Document xmlRequest) This function performs geocoding based on an XML request (eLocation XML). |
Method Detail |
public java.lang.Boolean anyBusinessesInCity(YPCategory category, java.lang.String country, java.lang.String state, java.lang.String city)
category
- a YPCategory object representing the category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)city
- a String representing the city (must not be null)public java.lang.Boolean anyBusinessesInState(YPCategory category, java.lang.String country, java.lang.String state)
category
- a YPCategory object representing the category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)public java.lang.Boolean anyBusinessesInPCode(YPCategory category, java.lang.String country, java.lang.String postalCode)
category
- a YPCategory object representing the category (must not be null)country
- a String representing the country (must not be null)postalCode
- a String representing the postal code (must not be null)public java.lang.Boolean anyBusinessesInRadius(YPCategory category, Point location, double metersRadius)
category
- a YPCategory object representing the category (must not be null)location
- a PointImpl representing the center point of the circle (must not be null)metersRadius
- a double representing the radius in meters (must not be null)public YPBusiness[] getBusinessesInCity(java.lang.String businessName, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)city
- a String representing the city (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInState(java.lang.String businessName, java.lang.String country, java.lang.String state, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInRadius(java.lang.String businessName, Point location, double metersRadius, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)location
- a PointImpl representing the center of the circle (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInPCode(java.lang.String businessName, java.lang.String country, java.lang.String postalCode, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)country
- a String representing the country (must not be null)postalCode
- a String representing the postal code (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInCity(YPCategory category, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)city
- a String representing the city (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInState(YPCategory category, java.lang.String country, java.lang.String state, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInRadius(YPCategory category, Point location, double metersRadius, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)location
- a PointImpl representing the center of the circle (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInPCode(YPCategory category, java.lang.String country, java.lang.String postalCode, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)country
- a String representing the country (must not be null)postalCode
- a String representing the postal code (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public java.lang.Boolean anyBusinessesInSameCity(YPCategory category, Location loc)
category
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the city in which businesses are queriedpublic java.lang.Boolean anyBusinessesInSameState(YPCategory category, Location loc)
category
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the state in which businesses are queriedpublic java.lang.Boolean anyBusinessesInSamePCode(YPCategory category, Location loc)
category
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the postal code in which businesses are queriedpublic YPBusiness[] getBusinessesInSameCity(java.lang.String businessName, Location loc, java.util.Locale locale)
businessName
- a String representing the name of businesses that are queriedloc
- a Location that serves to determine the city in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSameState(java.lang.String businessName, Location loc, java.util.Locale locale)
businessName
- a String representing the name of businesses that are queriedloc
- a Location that serves to determine the state in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSamePCode(java.lang.String businessName, Location loc, java.util.Locale locale)
businessName
- a String representing the name of businesses that are queriedloc
- a Location that serves to determine the postal code in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSameCity(YPCategory category, Location loc, java.util.Locale locale)
category
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the city in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSameState(YPCategory category, Location loc, java.util.Locale locale)
category
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the state in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSamePCode(YPCategory category, Location loc, java.util.Locale locale)
category
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the postal code in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSameCity(java.lang.String businessName, YPCategory category, Location loc, java.util.Locale locale)
businessName
- a String representing the name of businesses that are queriedcategory
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the city in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSameState(java.lang.String businessName, YPCategory category, Location loc, java.util.Locale locale)
businessName
- a String representing the name of businesses that are queriedcategory
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the state in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInSamePCode(java.lang.String businessName, YPCategory category, Location loc, java.util.Locale locale)
businessName
- a String representing the name of businesses that are queriedcategory
- a YPCategory representing the category in which businesses are queriedloc
- a Location that serves to determine the postal code in which businesses are queriedlocale
- a Locale that can affect preferences, such as language settingspublic YPBusiness[] getBusinessesInCity(java.lang.String businessName, YPCategory category, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)city
- a String representing the city (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInState(java.lang.String businessName, YPCategory category, java.lang.String country, java.lang.String state, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInRadius(java.lang.String businessName, YPCategory category, Point location, double metersRadius, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)location
- a PointImpl representing the center of the circle (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInPCode(java.lang.String businessName, YPCategory category, java.lang.String country, java.lang.String postalCode, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)country
- a String representing the country (must not be null)postalCode
- a String representing the postal code (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getNearestNBusinesses(java.lang.String businessName, Point location, int n, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)location
- a Point representing the center point of the query (must not be null)n
- an int representing the number of businesses ("closest N")locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getNearestNBusinesses(YPCategory category, Point location, int n, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)location
- a Point representing the center point of the query (must not be null)n
- an int representing the number of businesses ("closest N")locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getNearestNBusinesses(java.lang.String businessName, YPCategory category, Point location, int n, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)location
- a Point representing the center point of the query (must not be null)n
- an int representing the number of businesses ("closest N")locale
- a Locale object that can affect language, measures of distance, ... (may be null)public java.lang.String xmlYP(org.w3c.dom.Document xmlRequest)
xmlRequest
- a Document object representing the XMl document of the yp request.public YPBusiness[] getBusinessesInCorridor(java.lang.String businessName, Point[] corridor, double metersRadius, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)corridor
- an array of Point representing the corridor (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInCorridor(java.lang.String businessName, YPCategory category, Point[] corridor, double metersRadius, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)corridor
- an array of Point representing the corridor (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesInCorridor(YPCategory category, Point[] corridor, double metersRadius, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)corridor
- an array of Point representing the corridor (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesAnywhere(java.lang.String businessName, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesAnywhere(java.lang.String businessName, YPCategory category, java.util.Locale locale)
businessName
- a String representing the business name (must not be null)category
- a YPCategory object representing the requested category (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getBusinessesAnywhere(YPCategory category, java.util.Locale locale)
category
- a YPCategory object representing the requested category (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInCity(java.lang.String keyword, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale)
keyword
- a String representing a keyword that might be either in a business name or a category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)city
- a String representing the city (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInState(java.lang.String keyword, java.lang.String country, java.lang.String state, java.util.Locale locale)
keyword
- a String representing a keyword that might be either in a business name or a category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInRadius(java.lang.String keyword, Point location, double metersRadius, java.util.Locale locale)
keyword
- a String representing a keyword that might be either in a business name or a category (must not be null)location
- a Point representing the center of the circle (must not be null)metersRadius
- a double representing the radius in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInCorridor(java.lang.String keyword, Point[] corridor, double metersRadius, java.util.Locale locale)
keyword
- a String representing a keyword that might be either in a business name or a category (must not be null)corridor
- an array of Point representing the corridor (must not be null)metersRadius
- a double representing the radius / half width of corridor in meters (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInPCode(java.lang.String keyword, java.lang.String country, java.lang.String postalCode, java.util.Locale locale)
keyword
- a String representing a keyword that might be either in a business name or a category (must not be null)country
- a String representing the country (must not be null)postalCode
- a String representing the postal code (must not be null)locale
- a Locale object that can affect language, measures of distance, ... (may be null)public YPBusiness[] getNearestNKeywordRelatedBusinesses(java.lang.String keyword, Point location, int n, java.util.Locale locale)
keyword
- a String representing a keyword that might be either in a business name or a category (must not be null)location
- a Point representing the center point of the query (must not be null)n
- an int representing the number of businesses ("closest N")locale
- a Locale object that can affect language, measures of distance, ... (may be null)
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |