Class TocHierarchyCreator

java.lang.Object
org.faktorips.runtime.test.TocHierarchyCreator

public class TocHierarchyCreator extends Object
  • Method Details

    • createRuntimeRepository

      public static IRuntimeRepository createRuntimeRepository(List<String> runtimePackages, 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(List<String> runtimePackages)
      Checks if a list of packages contains hierarchy information.
      Parameters:
      runtimePackages - the runtime packages
      Returns:
      true if a package contains >, <, [ or ]