SimpleDateFormat sdf = new SimpleDateFormat( "MM/dd/yyyy", Locale.getDefault( ) ); NumberFormat nf = NumberFormat.getNumberInstance( Locale.getDefault( ) );
SimpleDateFormat sdf = new SimpleDateFormat( "MM/dd/yyyy" ); NumberFormat nf = NumberFormat.getNumberInstance( );
	private DataElement getTypedDataElement( String strDataElement )	{		Axis axis = getAxisForProcessing( );		if ( strDataElement.trim( ).length( ) == 0 )		{			if ( axis.getType( ).equals( AxisType.DATE_TIME_LITERAL )					&& !axis.isCategoryAxis( ) )			{				Date dateElement = new Date( );				Calendar cal = Calendar.getInstance( TimeZone.getDefault( ),						Locale.getDefault( ) );				cal.setTime( dateElement );				return DateTimeDataElementImpl.create( cal );			}			return NumberDataElementImpl.create( 0.0 );		}		SimpleDateFormat sdf = new SimpleDateFormat( "MM/dd/yyyy", Locale.getDefault( ) ); //$NON-NLS-1$		NumberFormat nf = NumberFormat.getNumberInstance( Locale.getDefault( ) );		if ( axis.getType( ).equals( AxisType.DATE_TIME_LITERAL )				&& !axis.isCategoryAxis( ) )		{			try			{				Date dateElement = sdf.parse( strDataElement );				Calendar cal = Calendar.getInstance( TimeZone.getDefault( ),						Locale.getDefault( ) );				cal.setTime( dateElement );				return DateTimeDataElementImpl.create( cal );			}			catch ( ParseException e )			{				return DateTimeDataElementImpl.create( new Date( ).getTime( ) );			}		}		try		{			Number numberElement = nf.parse( strDataElement );			return NumberDataElementImpl.create( numberElement.doubleValue( ) );		}		catch ( ParseException e1 )		{			return NumberDataElementImpl.create( 0.0 );		}	}