Bug 152542 Supports user-specified link of an ODA Data Set Parameter to a BIRT Report Parameter
BIRT 2.1 currently supports a small subset of the ODA parameter metadata (oda.design.ParameterDefinition) specified by a custom ODA designer, by mapping them to a ROM DataSetParam. However, although most attributes defined in an oda parameter design are also supported in BIRT report parameter, their values are not carried over to the report parameter. Thus BIRT users have to manually repeat the parameter attributes when defining a report parameter. This enhancement shall allow users to specify an explicit link from a ROM input Data Set Parameter to a Report Parameter in the Data Set Editor. This way, related attributes already specified in an oda parameter can be automatically applied via a ROM oda DataSetParam to its linked report parameter.
model/org.eclipse.birt.report.model.adapter.oda/src/org/eclipse/birt/report/model/adapter/oda/ReportParameterAdapter.java
{
		if ( nullability == null )
			return null;
		switch ( nullability.getValue( ) )
		{
			case ElementNullability.NULLABLE :
				return Boolean.TRUE;
			case ElementNullability.NOT_NULLABLE :
				return Boolean.FALSE;
			case ElementNullability.UNKNOWN :
				return null;
		}
		return null;
	}
	/**
	 * Refreshes property values of the given report parameter by the given data
	 * set design. This method first copies values from ROM data set parameter
	 * to report parameter, then copies values from DataSetDesign to the report
	 * parameter.
	 * <p>
	 * When copies values from DataSetDesign, cached value in
	 * OdaDataSetHandle.designerValues are also considerred.
	 * 
	 * 
	 * @param reportParam
	 *            the report parameter
	 * @param dataSetParam
	 *            the data set parameter
	 * @param dataSetDesign
	 *            the data set design