public abstract class AbstractXmlResourceFactory extends Object implements org.pentaho.reporting.libraries.resourceloader.ResourceFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENTBASE_KEY
A key for the content base.
|
| Modifier and Type | Method and 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.
|
void |
initializeDefaults()
Loads all XmlFactoryModule-implementations from the given configuration.
|
Object |
parseDirectly(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager,
InputSource input,
org.pentaho.reporting.libraries.resourceloader.ResourceKey context,
Map parameters)
A method to allow to invoke the parsing without accessing the LibLoader layer.
|
void |
registerModule(XmlFactoryModule factoryModule)
Registers a factory module for being used during the parsing.
|
public static final String CONTENTBASE_KEY
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
create in interface org.pentaho.reporting.libraries.resourceloader.ResourceFactorymanager - 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.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.public Object parseDirectly(org.pentaho.reporting.libraries.resourceloader.ResourceManager manager, InputSource input, org.pentaho.reporting.libraries.resourceloader.ResourceKey context, Map parameters) throws org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException, org.pentaho.reporting.libraries.resourceloader.ResourceCreationException, org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
manager - the resource manager used for all resource loading.input - the raw-data given as SAX-InputSource.context - the resource context used to resolve relative resource paths.parameters - the parse parameters.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.org.pentaho.reporting.libraries.resourceloader.ResourceKeyCreationException - if creating the context key failed.public void initializeDefaults()
initializeDefaults in interface org.pentaho.reporting.libraries.resourceloader.ResourceFactorygetConfiguration()public void registerModule(XmlFactoryModule factoryModule)
factoryModule - the factory module.NullPointerException - if the module given is null.