Bug 159514 BPS66 - Chart Simple API
This project aims to simplify the chart model API and make it accessible from scripting. It will only expose a set of clear interfaces that determine what can be changed using scripting.
chart/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemImpl.java
if ( !isJavaClassName( string ) )
		{
			Context cx = Context.enter();
			cx.compileString(string, "chartScript", 1, null); 
		}
	}
	protected boolean isJavaClassName( String string )
	{
		return ( string.matches( "\\w+(\\.\\w*)*" ) ); 
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.model.extension.IElement#validate()
	 */
	public List validate( )
	{
		logger.log( ILogger.INFORMATION,
				Messages.getString( "ChartReportItemImpl.log.validate" ) ); 
		List list = new ArrayList( );
		if ( cm != null )
		{
			try
			{
				checkScriptSyntax( cm.getScript( ) );
			}
			catch (RhinoException e )
			{
				logger.log( e );
				ExtendedElementException extendedException  = new ExtendedElementException( this.getHandle( ).getElement( ),