test_class.file: plugin/face-rest/face-rest/src/test/java/org/geomajas/rest/server/mvc/StringToEnvelopeConverterTest.java
test_class.identifier: StringToEnvelopeConverterTest
test_case.body: @Test
  	public void testConvertWithWhitespace() {
  		StringToEnvelopeConverter converter= new StringToEnvelopeConverter();
  		Envelope result = converter.convert(" \n  1.1,     2.2\t,\n3.3333  ,4 \n \t ");
  		Assert.assertEquals(new Envelope(1.1,2.2,3.3333,4), result);
  	}
test_case.class_method_signature: StringToEnvelopeConverterTest.testConvertWithWhitespace()
test_case.full_signature: @Test public void testConvertWithWhitespace()
test_case.identifier: testConvertWithWhitespace
test_case.invocations: convert assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertWithWhitespace()
focal_class.file: plugin/face-rest/face-rest/src/main/java/org/geomajas/rest/server/mvc/StringToEnvelopeConverter.java
focal_class.identifier: StringToEnvelopeConverter
focal_class.interfaces: implements Converter<String, Envelope>
focal_class.class_method_signature: StringToEnvelopeConverter.convert(String source)
focal_class.full_signature: public Envelope convert(String source)
focal_class.identifier: convert
focal_class.modifiers: public
focal_class.parameters: (String source)
focal_class.return: Envelope
focal_class.signature: Envelope convert(String source)
focal_method.body: public Envelope convert(String source) {
  		if (source == null) {
  			return null;
  		} else {
  			String[] args = source.trim().split("[\\s,]+");
  			if (args.length != 4) {
  				throw new IllegalArgumentException("Cannot parse envelope from " + source
  						+ ", expected format is \"xmin,ymin,xmax,ymax\"");
  			} else {
  				double[] coords = new double[4];
  				try {
  					for (int i = 0; i < coords.length; i++) {
  						coords[i] = Double.parseDouble(args[i]);
  					}
  					return new Envelope(coords[0], coords[1], coords[2], coords[3]);
  				} catch (NumberFormatException nfe) {
  					throw new IllegalArgumentException("Cannot parse envelope from " + source
  							+ ", expected format is \"xmin,ymin,xmax,ymax\"", nfe);
  				}
  			}
  		}
  	}
focal_method.class_method_signature: StringToEnvelopeConverter.convert(String source)
focal_method.full_signature: public Envelope convert(String source)
focal_method.identifier: convert
focal_method.invocations: split trim parseDouble
focal_method.modifiers: public
focal_method.parameters: (String source)
focal_method.return: Envelope
focal_method.signature: Envelope convert(String source)