Class TocHierarchyCreator


  • public class TocHierarchyCreator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean containsTocHierarchyItems​(java.util.List<java.lang.String> runtimePackages)
      Checks if a list of packages contains hierarchy information.
      static IRuntimeRepository createRuntimeRepository​(java.util.List<java.lang.String> runtimePackages, java.lang.ClassLoader clazzLoader)
      Creates a IRuntimeRepository with a hierarchy from a list of runtime packages.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createRuntimeRepository

        public static IRuntimeRepository createRuntimeRepository​(java.util.List<java.lang.String> runtimePackages,
                                                                 java.lang.ClassLoader clazzLoader)
        Creates a IRuntimeRepository with a hierarchy from a list of runtime packages. Supports flat and nested packages.

               Basis
              /     \
           Sparte   VO
              \     /
             Produkte
         
        flat packages:

        Produkte-toc.xml, Sparte-toc.xml, VO-toc.xml, Basis-toc.xml

        nested packages:

        Produkte-toc.xml
        Sparte-toc.xml[<Base-toc.xml>]
        VO-toc.xml[<Base-toc.xml>]

        Parameters:
        runtimePackages - the runtime packages
        clazzLoader - the ClassLoader to use
        Returns:
        a IRuntimeRepository with additional directly referenced repositories or null
      • containsTocHierarchyItems

        public static boolean containsTocHierarchyItems​(java.util.List<java.lang.String> runtimePackages)
        Checks if a list of packages contains hierarchy information.
        Parameters:
        runtimePackages - the runtime packages
        Returns:
        true if a package contains >, <, [ or ]