Class StyleDefinitionXmlFactoryModule

  • All Implemented Interfaces:
    org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule

    public class StyleDefinitionXmlFactoryModule
    extends Object
    implements org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule
    • Field Summary

      • Fields inherited from interface org.pentaho.reporting.libraries.xmlns.parser.XmlFactoryModule

        NOT_RECOGNIZED, RECOGNIZED_BY_DTD, RECOGNIZED_BY_NAMESPACE, RECOGNIZED_BY_TAGNAME
    • 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.
    • Constructor Detail

      • StyleDefinitionXmlFactoryModule

        public StyleDefinitionXmlFactoryModule()
    • 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 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.