jadex.webservice.examples.rs.chart.SizeStringMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-webservice Show documentation
Show all versions of jadex-applications-webservice Show documentation
The Jadex web service applications package contains several example applications, benchmarks and testcases using web service integration.
package jadex.webservice.examples.rs.chart;
import java.util.Iterator;
import jadex.commons.SReflect;
import jadex.extension.rs.publish.mapper.IValueMapper;
/**
*
*/
public class SizeStringMapper implements IValueMapper
{
public Object convertValue(Object value) throws Exception
{
Iterator it = SReflect.getIterator(value);
Integer width = it.next();
Integer height = it.next();
return width+"x"+height;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy