Class ElementStyleDefinitionXmlFactoryModule
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.parser.bundle.layout.ElementStyleDefinitionXmlFactoryModule
-
- All Implemented Interfaces:
org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
public class ElementStyleDefinitionXmlFactoryModule extends Object implements org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
-
-
Constructor Summary
Constructors Constructor Description ElementStyleDefinitionXmlFactoryModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 probability of whether this factory module would be able to handle the given data.
-
-
-
Method Detail
-
getDocumentSupport
public int getDocumentSupport(org.pentaho.reporting.libraries.xmlns.parser.XmlDocumentInfo documentInfo)
Checks the given document data to compute the probability of whether this factory module would be able to handle the given data.- Specified by:
getDocumentSupport
in interfaceorg.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 interfaceorg.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 interfaceorg.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
- Parameters:
documentInfo
- the document information.- Returns:
- the default namespace uri for the document.
-
-