org.pentaho.reporting.engine.classic.core.metadata.parser
Class ElementMetaDataXmlFactoryModule
java.lang.Object
org.pentaho.reporting.engine.classic.core.metadata.parser.ElementMetaDataXmlFactoryModule
- All Implemented Interfaces:
- org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
public class ElementMetaDataXmlFactoryModule
- extends Object
- implements org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
Todo: Document Me
- Author:
- Thomas Morgner
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)
Creates an XmlReadHandler for the root-tag based on the given document information. |
String |
getDefaultNamespace(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Returns the default namespace for a document with the characteristics given in the XmlDocumentInfo. |
int |
getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Checks the given document data to compute the propability of whether this factory module would be able to handle
the given data. |
ElementMetaDataXmlFactoryModule
public ElementMetaDataXmlFactoryModule()
getDocumentSupport
public int getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
- Checks the given document data to compute the propability of whether this factory module would be able to handle
the given data.
- Specified by:
getDocumentSupport
in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
- Parameters:
documentInfo
- the document information collection.
- Returns:
- an integer value indicating how good the document matches the factories requirements.
createReadHandler
public org.pentaho.reporting.libraries.xmlns.parser.XmlReadHandler createReadHandler(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
- Creates an XmlReadHandler for the root-tag based on the given document information.
- Specified by:
createReadHandler
in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
- Parameters:
documentInfo
- the document information that has been extracted from the parser.
- Returns:
- the root handler or null.
getDefaultNamespace
public String getDefaultNamespace(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
- Returns the default namespace for a document with the characteristics given in the XmlDocumentInfo.
- Specified by:
getDefaultNamespace
in interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
- Parameters:
documentInfo
- the document information.
- Returns:
- the default namespace uri for the document.