Bug 207120 Please model provide an API for data type conversion.
Currently, there're two data types: column data type and parameter data type. But they're inconsistent. Could model provide APIs for conversion between the two types. Thanks. In addition: please check the code into head and 2.2.1 branch, because we have a 2.2.1 bug to fix.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleUtil.java
import org.eclipse.birt.report.model.util.XMLParserException;
import org.eclipse.birt.report.model.util.XMLParserHandler;
import org.eclipse.birt.report.model.writer.IndentableXMLWriter;
import org.eclipse.birt.report.model.writer.ModuleWriter;
import org.xml.sax.Attributes;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import com.ibm.icu.util.ULocale;
/**
 * Provides some tool methods about the modules.
 */
public class ModuleUtil
{
	/**
	 * The library type.
	 */
	public final static int LIBRARY = 0;
	/**
	 * The report design type.
	 */
	public final static int REPORT_DESIGN = 1;
	/**
	 * The invalid module.
	 */
	public final static int INVALID_MODULE = 2;
	/**
	 * Parser handler used to parse only the Action part of the design. The
	 * existing action state and property validating is reused.
	 */
	private static class ActionParserHandler extends ModuleParserHandler