Package org.faktorips.runtime.test
Class TocHierarchyCreator
java.lang.Object
org.faktorips.runtime.test.TocHierarchyCreator
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsTocHierarchyItems(List<String> runtimePackages) Checks if a list of packages contains hierarchy information.static IRuntimeRepositorycreateRuntimeRepository(List<String> runtimePackages, ClassLoader clazzLoader) Creates aIRuntimeRepositorywith a hierarchy from a list of runtime packages.
-
Method Details
-
createRuntimeRepository
public static IRuntimeRepository createRuntimeRepository(List<String> runtimePackages, 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
Checks if a list of packages contains hierarchy information.- Parameters:
runtimePackages- the runtime packages- Returns:
trueif a package contains >, <, [ or ]
-