Class TocProvider


  • public class TocProvider
    extends Object
    The TocProvider loads the table of content and provide it as object of ReadonlyTableOfContents or as content data of type String. 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 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