test_class.declarator: geocoder
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private YahooPlaceFinderGeocoderService geocoder;
test_class.type: YahooPlaceFinderGeocoderService
test_class.var_name: geocoder
test_class.declarator: geoService
test_class.modifier: @Autowired
  	private
test_class.original_string: @Autowired
  	private GeoService geoService;
test_class.type: GeoService
test_class.var_name: geoService
test_class.declarator: list
test_class.modifier: private
test_class.original_string: private List<String> list;
test_class.type: List<String>
test_class.var_name: list
test_class.declarator: result
test_class.modifier: private
test_class.original_string: private GetLocationResult[] result;
test_class.type: GetLocationResult[]
test_class.var_name: result
test_class.file: plugin/geocoder/geocoder/src/test/java/org/geomajas/plugin/geocoder/service/YahooPlaceFinderGeocoderServiceTest.java
test_class.identifier: YahooPlaceFinderGeocoderServiceTest
test_case.body: @Test
  	public void testTranslatedLocale() {
  		list.add("booischot");
  		// french locale reports "Aucune erreur" vs "No error" for nl_be
  		result = geocoder.getLocation(list, 50, new Locale("fr"));
  		Assert.assertNotNull(result);
  		Assert.assertEquals(1,result.length);
  		Assert.assertNotNull(result[0].getCoordinate());
  		Assert.assertEquals(4.77397, result[0].getCoordinate().x, .00001);
  		Assert.assertEquals(51.05125, result[0].getCoordinate().y, .00001);
  		Assert.assertEquals(2, result[0].getCanonicalStrings().size());
  		Assert.assertEquals("Belgique", result[0].getCanonicalStrings().get(0));
  		Assert.assertEquals("2221 Booischot", result[0].getCanonicalStrings().get(1));
  		Assert.assertEquals(4.75513, result[0].getEnvelope().getMinX(), .00001);
  		Assert.assertEquals(4.79043, result[0].getEnvelope().getMaxX(), .00001);
  		Assert.assertEquals(51.031898, result[0].getEnvelope().getMinY(), .00001);
  		Assert.assertEquals(51.05677, result[0].getEnvelope().getMaxY(), .00001);
  	}
test_case.class_method_signature: YahooPlaceFinderGeocoderServiceTest.testTranslatedLocale()
test_case.full_signature: @Test public void testTranslatedLocale()
test_case.identifier: testTranslatedLocale
test_case.invocations: add getLocation assertNotNull assertEquals assertNotNull getCoordinate assertEquals getCoordinate assertEquals getCoordinate assertEquals size getCanonicalStrings assertEquals get getCanonicalStrings assertEquals get getCanonicalStrings assertEquals getMinX getEnvelope assertEquals getMaxX getEnvelope assertEquals getMinY getEnvelope assertEquals getMaxY getEnvelope
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTranslatedLocale()
focal_class.declarator: log = LoggerFactory
  			.getLogger(YahooPlaceFinderGeocoderService.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory
  			.getLogger(YahooPlaceFinderGeocoderService.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: DELTA = 1e-20
focal_class.modifier: private static final
focal_class.original_string: private static final double DELTA = 1e-20;
focal_class.type: double
focal_class.var_name: DELTA
focal_class.declarator: USER_AGENT = "Geomajas Yahoo! PlaceFinder geocoder service"
focal_class.modifier: private static final
focal_class.original_string: private static final String USER_AGENT = "Geomajas Yahoo! PlaceFinder geocoder service";
focal_class.type: String
focal_class.var_name: USER_AGENT
focal_class.declarator: READ_TIMEOUT = 120000
focal_class.modifier: private static final
focal_class.original_string: private static final int READ_TIMEOUT = 120000;
focal_class.type: int
focal_class.var_name: READ_TIMEOUT
focal_class.declarator: CONNECT_TIMEOUT = 10000
focal_class.modifier: private static final
focal_class.original_string: private static final int CONNECT_TIMEOUT = 10000;
focal_class.type: int
focal_class.var_name: CONNECT_TIMEOUT
focal_class.declarator: URL_BASE = "http://query.yahooapis.com/v1/public/yql?"
focal_class.modifier: private static final
focal_class.original_string: private static final String URL_BASE = "http://query.yahooapis.com/v1/public/yql?";
focal_class.type: String
focal_class.var_name: URL_BASE
focal_class.declarator: geoService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private GeoService geoService;
focal_class.type: GeoService
focal_class.var_name: geoService
focal_class.declarator: dtoConverterService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private DtoConverterService dtoConverterService;
focal_class.type: DtoConverterService
focal_class.var_name: dtoConverterService
focal_class.declarator: splitCommaReverseService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private SplitCommaReverseService splitCommaReverseService;
focal_class.type: SplitCommaReverseService
focal_class.var_name: splitCommaReverseService
focal_class.declarator: crs
focal_class.modifier: private
focal_class.original_string: private Crs crs;
focal_class.type: Crs
focal_class.var_name: crs
focal_class.declarator: name = "YahooPlaceFinder"
focal_class.modifier: private
focal_class.original_string: private String name = "YahooPlaceFinder";
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: appId
focal_class.modifier: private
focal_class.original_string: private String appId;
focal_class.type: String
focal_class.var_name: appId
focal_class.declarator: appIdProperty
focal_class.modifier: private
focal_class.original_string: private String appIdProperty;
focal_class.type: String
focal_class.var_name: appIdProperty
focal_class.declarator: skipAppIdCheck
focal_class.modifier: private
focal_class.original_string: private boolean skipAppIdCheck;
focal_class.type: boolean
focal_class.var_name: skipAppIdCheck
focal_class.file: plugin/geocoder/geocoder/src/main/java/org/geomajas/plugin/geocoder/service/YahooPlaceFinderGeocoderService.java
focal_class.identifier: YahooPlaceFinderGeocoderService
focal_class.interfaces: implements GeocoderService
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.initCrs()
focal_class.full_signature: @PostConstruct protected void initCrs()
focal_class.identifier: initCrs
focal_class.modifiers: @PostConstruct protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initCrs()
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.setName(String name)
focal_class.full_signature: @Api public void setName(String name)
focal_class.identifier: setName
focal_class.modifiers: @Api public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void setName(String name)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.setAppId(String appId)
focal_class.full_signature: @Api public void setAppId(String appId)
focal_class.identifier: setAppId
focal_class.modifiers: @Api public
focal_class.parameters: (String appId)
focal_class.return: void
focal_class.signature: void setAppId(String appId)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.setAppIdProperty(String appIdProperty)
focal_class.full_signature: @Api public void setAppIdProperty(String appIdProperty)
focal_class.identifier: setAppIdProperty
focal_class.modifiers: @Api public
focal_class.parameters: (String appIdProperty)
focal_class.return: void
focal_class.signature: void setAppIdProperty(String appIdProperty)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.setSkipAppIdCheck(boolean skipAppIdCheck)
focal_class.full_signature: @Api public void setSkipAppIdCheck(boolean skipAppIdCheck)
focal_class.identifier: setSkipAppIdCheck
focal_class.modifiers: @Api public
focal_class.parameters: (boolean skipAppIdCheck)
focal_class.return: void
focal_class.signature: void setSkipAppIdCheck(boolean skipAppIdCheck)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.getCrs()
focal_class.full_signature: @Override public CoordinateReferenceSystem getCrs()
focal_class.identifier: getCrs
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: CoordinateReferenceSystem
focal_class.signature: CoordinateReferenceSystem getCrs()
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.getLocation(List<String> location,
  			int maxAlternatives, Locale locale)
focal_class.full_signature: @Override public GetLocationResult[] getLocation(List<String> location,
  			int maxAlternatives, Locale locale)
focal_class.identifier: getLocation
focal_class.modifiers: @Override public
focal_class.parameters: (List<String> location,
  			int maxAlternatives, Locale locale)
focal_class.return: GetLocationResult[]
focal_class.signature: GetLocationResult[] getLocation(List<String> location,
  			int maxAlternatives, Locale locale)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.search(String q, int maxRows, Locale locale)
focal_class.full_signature: public List<GetLocationResult> search(String q, int maxRows, Locale locale)
focal_class.identifier: search
focal_class.modifiers: public
focal_class.parameters: (String q, int maxRows, Locale locale)
focal_class.return: List<GetLocationResult>
focal_class.signature: List<GetLocationResult> search(String q, int maxRows, Locale locale)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.connect(String url)
focal_class.full_signature: private InputStream connect(String url)
focal_class.identifier: connect
focal_class.modifiers: private
focal_class.parameters: (String url)
focal_class.return: InputStream
focal_class.signature: InputStream connect(String url)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.getLocationFromElement(Element locationElement)
focal_class.full_signature: private GetLocationResult getLocationFromElement(Element locationElement)
focal_class.identifier: getLocationFromElement
focal_class.modifiers: private
focal_class.parameters: (Element locationElement)
focal_class.return: GetLocationResult
focal_class.signature: GetLocationResult getLocationFromElement(Element locationElement)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.canonicalAdd(List<String> canonical, Element locationElement,
  			String tag)
focal_class.full_signature: private void canonicalAdd(List<String> canonical, Element locationElement,
  			String tag)
focal_class.identifier: canonicalAdd
focal_class.modifiers: private
focal_class.parameters: (List<String> canonical, Element locationElement,
  			String tag)
focal_class.return: void
focal_class.signature: void canonicalAdd(List<String> canonical, Element locationElement,
  			String tag)
focal_class.class_method_signature: YahooPlaceFinderGeocoderService.getBoudingBox(String woeid, GetLocationResult location)
focal_class.full_signature: private void getBoudingBox(String woeid, GetLocationResult location)
focal_class.identifier: getBoudingBox
focal_class.modifiers: private
focal_class.parameters: (String woeid, GetLocationResult location)
focal_class.return: void
focal_class.signature: void getBoudingBox(String woeid, GetLocationResult location)
focal_method.body: @Override
  	public GetLocationResult[] getLocation(List<String> location,
  			int maxAlternatives, Locale locale) {
  		// if (null == appId) {
  		// return null;
  		// }
  		try {
  			String query = splitCommaReverseService.combine(location);
  			List<GetLocationResult> locations = search(query, maxAlternatives,
  					locale);
  			return locations.toArray(new GetLocationResult[locations.size()]);
  		} catch (Exception ex) { // NOSONAR
  			log.error("Search failed", ex);
  			return null;
  		}
  	}
focal_method.class_method_signature: YahooPlaceFinderGeocoderService.getLocation(List<String> location,
  			int maxAlternatives, Locale locale)
focal_method.full_signature: @Override public GetLocationResult[] getLocation(List<String> location,
  			int maxAlternatives, Locale locale)
focal_method.identifier: getLocation
focal_method.invocations: combine search toArray size error
focal_method.modifiers: @Override public
focal_method.parameters: (List<String> location,
  			int maxAlternatives, Locale locale)
focal_method.return: GetLocationResult[]
focal_method.signature: GetLocationResult[] getLocation(List<String> location,
  			int maxAlternatives, Locale locale)