Package org.faktorips.productdataservice
Class TocProvider
- java.lang.Object
-
- org.faktorips.productdataservice.TocProvider
-
public class TocProvider extends Object
The TocProvider loads the table of content and provide it as object ofReadonlyTableOfContentsor as content data of typeString. You also could get the modification time of the loaded toc. Once loaded the table of content will never be reloaded! We assume that the service using these classes creates new instances after deploying new product data.- Author:
- dirmeier
-
-
Constructor Summary
Constructors Constructor Description TocProvider(URL tocUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProductDataVersion()Getting the last modification time stamp of the already loaded table of content or 0 if no table of content is loaded.org.faktorips.runtime.internal.toc.ReadonlyTableOfContentsgetTableOfContents()Get the table of contentbyte[]getTableOfContentsData()Get the string content of the table of content
-
-
-
Constructor Detail
-
TocProvider
public TocProvider(URL tocUrl)
-
-
Method Detail
-
getTableOfContents
public org.faktorips.runtime.internal.toc.ReadonlyTableOfContents getTableOfContents()
Get the table of content- Returns:
- the table of content
-
getTableOfContentsData
public byte[] getTableOfContentsData()
Get the string content of the table of content- Returns:
- the XML representation of the table of content
-
getProductDataVersion
public String getProductDataVersion()
Getting the last modification time stamp of the already loaded table of content or 0 if no table of content is loaded. Does not look for modifications in file because we assume that this instance is recreated after deploying new product data
-
-