org.pentaho.reporting.libraries.xmlns.parser
public abstract class AbstractXmlResourceFactory extends Object implements ResourceFactory
Field Summary | |
---|---|
static String | CONTENTBASE_KEY
A key for the content base. |
Method Summary | |
---|---|
Resource | create(ResourceManager manager, ResourceData data, 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(ResourceManager manager, InputSource input, 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. |
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: ResourceCreationException if the resource could not be parsed due to syntaxctial or logical errors in the data. ResourceLoadingException if the resource could not be accessed from the physical storage.
See Also: getConfiguration
Parameters: 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.
Returns: the parsed result, never null.
Throws: ResourceCreationException if the resource could not be parsed due to syntaxctial or logical errors in the data. ResourceLoadingException if the resource could not be accessed from the physical storage. ResourceKeyCreationException if creating the context key failed.
Parameters: factoryModule the factory module.
Throws: NullPointerException if the module given is null.