org.pentaho.chart.core.parser
Class ChartXmlFactoryModule
java.lang.Object
org.pentaho.chart.core.parser.ChartXmlFactoryModule
- All Implemented Interfaces:
- org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
public class ChartXmlFactoryModule
- extends Object
- implements org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
The factory class that will return the correct document read handler to the XML document parsing system.
- Author:
- David Kincade
Fields inherited from interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule |
NOT_RECOGNIZED, RECOGNIZED_BY_DTD, RECOGNIZED_BY_NAMESPACE, RECOGNIZED_BY_TAGNAME |
Method Summary |
org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler |
createReadHandler(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Returns the XML parsing handler based on the document info. |
String |
getDefaultNamespace(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Returns the default namespace to be used with this XML document based on the document information. |
int |
getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Indicates how this factory recognizes the XML document. |
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
ChartXmlFactoryModule
public ChartXmlFactoryModule()
getDocumentSupport
public int getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
- Indicates how this factory recognizes the XML document. Since this factory will read any XML document
as a chart document, it will use the strongest recognition possible.
- Specified by:
getDocumentSupport
in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
- Parameters:
documentInfo
- the document information used to recognize this document
- Returns:
- an indicator of how this document is recogniszed
getDefaultNamespace
public String getDefaultNamespace(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
- Returns the default namespace to be used with this XML document based on the document information.
- Specified by:
getDefaultNamespace
in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
createReadHandler
public org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler createReadHandler(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
- Returns the XML parsing handler based on the document info. All chart XML documents will be parsed
with the
ChartDocumentReadHandler
.
- Specified by:
createReadHandler
in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
- Parameters:
documentInfo
- the document inforation used to determine which read handlers to return
- Returns:
- the read handler for the specified document type