Class RepositoryResourceBundleData
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
-
- org.pentaho.reporting.libraries.docbundle.bundleloader.RepositoryResourceBundleData
-
- All Implemented Interfaces:
Serializable,org.pentaho.reporting.libraries.resourceloader.ResourceBundleData,org.pentaho.reporting.libraries.resourceloader.ResourceData
public class RepositoryResourceBundleData extends org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData implements org.pentaho.reporting.libraries.resourceloader.ResourceBundleDataA resource-bundle data implementation that uses a LibRepository repository as backend.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryResourceBundleData(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.repository.Repository repository, org.pentaho.reporting.libraries.resourceloader.ResourceKey mainKey, boolean failOnMissingData)Creates a new RepositoryResourceBundleData object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pentaho.reporting.libraries.resourceloader.ResourceBundleDataderiveData(org.pentaho.reporting.libraries.resourceloader.ResourceKey key)org.pentaho.reporting.libraries.resourceloader.ResourceManagerderiveManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager parent)ObjectgetAttribute(String key)org.pentaho.reporting.libraries.resourceloader.ResourceKeygetBundleKey()org.pentaho.reporting.libraries.resourceloader.ResourceKeygetKey()org.pentaho.reporting.libraries.repository.RepositorygetRepository()InputStreamgetResourceAsStream(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller)longgetVersion(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller)-
Methods inherited from class org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
getLength, getResource, getResource
-
-
-
-
Constructor Detail
-
RepositoryResourceBundleData
public RepositoryResourceBundleData(org.pentaho.reporting.libraries.resourceloader.ResourceKey bundleKey, org.pentaho.reporting.libraries.repository.Repository repository, org.pentaho.reporting.libraries.resourceloader.ResourceKey mainKey, boolean failOnMissingData) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingExceptionCreates a new RepositoryResourceBundleData object.- Parameters:
bundleKey- points to the physical location of the document bundle.repository- the repository object loaded from the bundle-key.mainKey- the bundles main entry.failOnMissingData- a flag indicating whether to fail on missing entries.- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
-
Method Detail
-
getRepository
public org.pentaho.reporting.libraries.repository.Repository getRepository()
-
deriveData
public org.pentaho.reporting.libraries.resourceloader.ResourceBundleData deriveData(org.pentaho.reporting.libraries.resourceloader.ResourceKey key) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException- Specified by:
deriveDatain interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
getResourceAsStream
public InputStream getResourceAsStream(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
- Specified by:
getResourceAsStreamin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
getBundleKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getBundleKey()
- Specified by:
getBundleKeyin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData
-
getAttribute
public Object getAttribute(String key)
- Specified by:
getAttributein interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
-
getKey
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getKey()
- Specified by:
getKeyin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData
-
getVersion
public long getVersion(org.pentaho.reporting.libraries.resourceloader.ResourceManager caller) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException- Specified by:
getVersionin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceData- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
deriveManager
public org.pentaho.reporting.libraries.resourceloader.ResourceManager deriveManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager parent) throws org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException- Specified by:
deriveManagerin interfaceorg.pentaho.reporting.libraries.resourceloader.ResourceBundleData- Throws:
org.pentaho.reporting.libraries.resourceloader.ResourceLoadingException
-
-