Class DomTreeResourceFactory

java.lang.Object
org.pentaho.reporting.libraries.xmlns.parser.DomTreeResourceFactory
All Implemented Interfaces:
org.pentaho.reporting.libraries.resourceloader.ResourceFactory

public class DomTreeResourceFactory extends Object implements org.pentaho.reporting.libraries.resourceloader.ResourceFactory
  • Field Summary

    Fields inherited from interface org.pentaho.reporting.libraries.resourceloader.ResourceFactory

    CONFIG_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.pentaho.reporting.libraries.resourceloader.Resource
    create(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceData data, org.pentaho.reporting.libraries.resourceloader.ResourceKey context)
    Creates a resource by interpreting the data given in the resource-data object.
    Returns the expected result type.
    void
    Initializes the resource factory.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DomTreeResourceFactory

      public DomTreeResourceFactory()
  • Method Details

    • create

      public org.pentaho.reporting.libraries.resourceloader.Resource create(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, org.pentaho.reporting.libraries.resourceloader.ResourceData data, org.pentaho.reporting.libraries.resourceloader.ResourceKey context) throws org.pentaho.reporting.libraries.resourceloader.ResourceCreationException, org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
      Creates a resource by interpreting the data given in the resource-data object. If additional datastreams need to be parsed, the provided resource manager should be used.
      Specified by:
      create in interface org.pentaho.reporting.libraries.resourceloader.ResourceFactory
      Parameters:
      manager - the resource manager used for all resource loading.
      data - the resource-data from where the binary data is read.
      context - the resource context used to resolve relative resource paths.
      Returns:
      the parsed result, never null.
      Throws:
      org.pentaho.reporting.libraries.resourceloader.ResourceCreationException - if the resource could not be parsed due to syntaxctial or logical errors in the data.
      org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException - if the resource could not be accessed from the physical storage.
    • initializeDefaults

      public void initializeDefaults()
      Initializes the resource factory. This usually loads all system resources from the environment and maybe sets up and initializes any factories needed during the parsing.
      Specified by:
      initializeDefaults in interface org.pentaho.reporting.libraries.resourceloader.ResourceFactory
    • getFactoryType

      public Class getFactoryType()
      Returns the expected result type.
      Specified by:
      getFactoryType in interface org.pentaho.reporting.libraries.resourceloader.ResourceFactory
      Returns:
      the result type.