public class ClassLoaderProductDataProvider extends AbstractProductDataProvider
ClassLoaderProductDataProvider is an implementation of IProductDataProvider
normally for testing purpose.
It loads data similar as the ClassloaderRuntimeRepository.
Modification is checked by checking the modification date of the TOC resource.
MODIFIED_EXCEPTION_MESSAGE| Constructor and Description |
|---|
ClassLoaderProductDataProvider(ClassLoaderDataSource dataSource,
String tocResourcePath,
boolean checkTocModifications) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseVersion()
Getting the really actual version of the product data.
|
InputStream |
getEnumContentAsStream(EnumContentTocEntry tocEntry)
Getting the input stream of enum content for given tocEntry.
|
Element |
getProductCmptData(ProductCmptTocEntry tocEntry)
Getting the product component data element for given tocEntry.
|
Element |
getProductCmptGenerationData(GenerationTocEntry tocEntry)
Getting the product component generation data element for given tocEntry.
|
InputStream |
getTableContentAsStream(TableContentTocEntry tocEntry)
Getting the input stream of table content for given tocEntry.
|
Element |
getTestcaseElement(TestCaseTocEntry tocEntry)
Getting the test case data element for given tocEntry.
|
ReadonlyTableOfContents |
getToc()
Getting the toc in the product data provider and returns it.
|
<T> Element |
getTocEntryData(CustomTocEntryObject<T> tocEntry)
Getting the data element for the given tocEntry.
|
String |
getVersion()
Getting the version of the product data provider.
|
getDocumentBuilder, getVersionChecker, isCompatibleToBaseVersionpublic ClassLoaderProductDataProvider(ClassLoaderDataSource dataSource, String tocResourcePath, boolean checkTocModifications)
public String getBaseVersion()
AbstractProductDataProvidergetBaseVersion in class AbstractProductDataProviderpublic Element getProductCmptData(ProductCmptTocEntry tocEntry) throws DataModifiedException
IProductDataProviderDataModifiedException. To update the modification time you have
to reload the toc.tocEntry - The toc entry for the product component you want to loadDataModifiedException - when toc data was modifiedpublic Element getTestcaseElement(TestCaseTocEntry tocEntry) throws DataModifiedException
IProductDataProviderDataModifiedException. To update the modification time you have to
reload the toc.tocEntry - The toc entry for the test case element you want to loadDataModifiedException - when toc data was modifiedpublic Element getProductCmptGenerationData(GenerationTocEntry tocEntry) throws DataModifiedException
IProductDataProviderDataModifiedException. To update the modification time
you have to reload the toc.tocEntry - The toc entry for the product component generation you want to loadDataModifiedException - when toc data was modifiedpublic InputStream getTableContentAsStream(TableContentTocEntry tocEntry) throws DataModifiedException
IProductDataProviderDataModifiedException. To update the modification time you have
to reload the toc.tocEntry - The toc entry for the table content you want to loadDataModifiedException - when toc data was modifiedpublic InputStream getEnumContentAsStream(EnumContentTocEntry tocEntry) throws DataModifiedException
IProductDataProviderDataModifiedException. To update the modification time you have
to reload the toc.tocEntry - The toc entry for the enum content you want to loadDataModifiedException - when toc data was modifiedpublic ReadonlyTableOfContents getToc()
IProductDataProviderpublic String getVersion()
IProductDataProviderIProductDataProvider was created. The version should be final. Once product
data has changed this IProductDataProvider getting useless and a new one should be
created.public <T> Element getTocEntryData(CustomTocEntryObject<T> tocEntry) throws DataModifiedException
IProductDataProviderDataModifiedException. To update the modification time you have to reload
the toc.T - the class of the runtime object you want to loadtocEntry - The toc entry for the runtime object of class T you want to loadDataModifiedException - when toc data was modifiedCopyright © 2017. All rights reserved.