|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.productdataprovider.AbstractProductDataProvider
org.faktorips.runtime.productdataprovider.ClassLoaderProductDataProvider
public class ClassLoaderProductDataProvider
The 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.
| Field Summary |
|---|
| Fields inherited from class org.faktorips.runtime.productdataprovider.AbstractProductDataProvider |
|---|
MODIFIED_EXCEPTION_MESSAGE |
| Constructor Summary | |
|---|---|
ClassLoaderProductDataProvider(ClassLoaderDataSource dataSource,
String tocResourcePath,
boolean checkTocModifications)
|
|
| Method Summary | ||
|---|---|---|
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. |
|
|
getTocEntryData(CustomTocEntryObject<T> tocEntry)
Getting the data element for the given tocEntry. |
|
String |
getVersion()
Getting the version of the product data provider. |
|
| Methods inherited from class org.faktorips.runtime.productdataprovider.AbstractProductDataProvider |
|---|
getDocumentBuilder, getVersionChecker, isCompatibleToBaseVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderProductDataProvider(ClassLoaderDataSource dataSource,
String tocResourcePath,
boolean checkTocModifications)
| Method Detail |
|---|
public String getBaseVersion()
AbstractProductDataProvider
getBaseVersion in class AbstractProductDataProvider
public 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 load
DataModifiedException - when toc data was modified
public 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 load
DataModifiedException - when toc data was modified
public 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 load
DataModifiedException - when toc data was modified
public 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 load
DataModifiedException - when toc data was modified
public 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 load
DataModifiedException - when toc data was modifiedpublic ReadonlyTableOfContents getToc()
IProductDataProvider
public 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 load
DataModifiedException - when toc data was modified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||