org.pentaho.chart.core.parser
Class ChartXMLParser

java.lang.Object
  extended by org.pentaho.chart.core.parser.ChartXMLParser

public class ChartXMLParser
extends Object

Parses the chart XML document into the internal representation of the chart document.

Author:
David Kincade

Constructor Summary
ChartXMLParser()
          Initializes the chart parser by creating a default ResourceManager
ChartXMLParser(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
          Initializes the chart parser with a ResourceManager
 
Method Summary
 org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
          Returns the ResourceManager used by this instance of the chart parser
 ChartDocument parseChartDocument(URL chartDefinitionURL)
          Parses the chart definition file into a ChartDocument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartXMLParser

public ChartXMLParser()
Initializes the chart parser by creating a default ResourceManager


ChartXMLParser

public ChartXMLParser(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager)
Initializes the chart parser with a ResourceManager

Parameters:
resourceManager - the ResourceManager to use while parsing a chart definition
Method Detail

parseChartDocument

public ChartDocument parseChartDocument(URL chartDefinitionURL)
                                 throws org.pentaho.reporting.libraries.resourceloader.ResourceException
Parses the chart definition file into a ChartDocument. NOTE: this method is protected for unit testing

Parameters:
chartDefinitionURL - the location of the chart definition file
Returns:
a ChartDocument that was created from the chart definition
Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceException - indeicates an error occurred loading the chart defintion

getResourceManager

public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
Returns the ResourceManager used by this instance of the chart parser