Package org.faktorips.runtime.test
Class TocHierarchyCreator
- java.lang.Object
-
- org.faktorips.runtime.test.TocHierarchyCreator
-
public class TocHierarchyCreator extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontainsTocHierarchyItems(java.util.List<java.lang.String> runtimePackages)Checks if a list of packages contains hierarchy information.static IRuntimeRepositorycreateRuntimeRepository(java.util.List<java.lang.String> runtimePackages, java.lang.ClassLoader clazzLoader)Creates aIRuntimeRepositorywith a hierarchy from a list of runtime packages.
-
-
-
Method Detail
-
createRuntimeRepository
public static IRuntimeRepository createRuntimeRepository(java.util.List<java.lang.String> runtimePackages, java.lang.ClassLoader clazzLoader)
Creates aIRuntimeRepositorywith a hierarchy from a list of runtime packages. Supports flat and nested packages.Basis / \ Sparte VO \ / Produkteflat 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 packagesclazzLoader- theClassLoaderto use- Returns:
- a
IRuntimeRepositorywith additional directly referenced repositories ornull
-
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:
trueif a package contains >, <, [ or ]
-
-