scalarParameter.setDefaultValue( handle.getDefaultValue( ) );
scalarParameter.setDefaultValue( getValue(handle.getDefaultValue( ), handle.getDataType() ));
	public void visitScalarParameter( ScalarParameterHandle handle )	{		assert ( handle.getName( ) != null );		// Create Parameter		ScalarParameterDefn scalarParameter = new ScalarParameterDefn( );		setupReportElement( scalarParameter, handle );		scalarParameter.setAlignment( handle.getAlignment( ) );		scalarParameter.setAllowBlank( handle.allowBlank( ) );		scalarParameter.setAllowNull( handle.allowNull( ) );		scalarParameter.setControlType( handle.getControlType( ) );		scalarParameter.setDefaultValue( handle.getDefaultValue( ) );		//DE doesn't provide this method		scalarParameter.setDisplayName( handle.getDisplayNameKey( ), handle				.getDisplayName( ) );		/*		 * if ( handle.getExtends( ) != null ) { scalarParameter.setExtends(		 * handle.getExtends( ).getClass( ) .getName( ) ); }		 */		scalarParameter.setFormat( handle.getFormat( ) );		scalarParameter.setHelpText( handle.getHelpTextKey( ), handle				.getHelpText( ) );		scalarParameter.setIsHidden( handle.isHidden( ) );		//scalarParameter.setName( handle.getName( ) );		Iterator selectionIter = handle.choiceIterator( );		ParameterSelectionList paramList = new ParameterSelectionList( );		//TODO: MODEL should support fixOrder and mustExact		ArrayList values = new ArrayList( );		while ( selectionIter.hasNext( ) )		{			SelectionChoiceHandle selection = (SelectionChoiceHandle) selectionIter					.next( );			SelectionChoice selectionChoice = new SelectionChoice( design );			selectionChoice.setLabel( selection.getLabelKey( ), selection					.getLabel( ) );			selectionChoice.setValue( selection.getValue( ) );			values.add( selectionChoice );		}		paramList.setValues( values );		scalarParameter.setParameterSeclectionList( paramList );		String valueType = handle.getDataType( );		if ( DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equals( valueType ) )		{			scalarParameter.setValueType( IParameterDefn.TYPE_BOOLEAN );		}		else if ( DesignChoiceConstants.PARAM_TYPE_DATETIME.equals( valueType ) )		{			scalarParameter.setValueType( IParameterDefn.TYPE_DATE_TIME );		}		else if ( DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals( valueType ) )		{			scalarParameter.setValueType( IParameterDefn.TYPE_DECIMAL );		}		else if ( DesignChoiceConstants.PARAM_TYPE_FLOAT.equals( valueType ) )		{			scalarParameter.setValueType( IParameterDefn.TYPE_FLOAT );		}		else if ( DesignChoiceConstants.PARAM_TYPE_STRING.equals( valueType ) )		{			scalarParameter.setValueType( IParameterDefn.TYPE_STRING );		}		else		{			scalarParameter.setValueType( IParameterDefn.TYPE_ANY );		}		scalarParameter.setValueConcealed( handle.isConcealValue( ) );		currentElement = scalarParameter;	}