public static void createModulesOverview ( ) { Map < String , List < ClassField > > hmModules = HortonMachine . getInstance ( ) . moduleName2Fields ; Map < String , List < ClassField > > jggModules = JGrassGears . getInstance ( ) . moduleName2Fields ; Map < String , Class < ? > > hmModulesClasses = HortonMachine . getInstance ( ) . moduleName2Class ; Map < String , Class < ? > > jggModulesClasses = JGrassGears . getInstance ( ) . moduleName2Class ; Set < String > hmNames = hmModules . keySet ( ) ; String [ ] hmNamesArray = ( String [ ] ) hmNames . toArray ( new String [ hmNames . size ( ) ] ) ; Set < String > jggNames = jggModules . keySet ( ) ; String [ ] jggNamesArray = ( String [ ] ) jggNames . toArray ( new String [ jggNames . size ( ) ] ) ; Arrays . sort ( hmNamesArray ) ; Arrays . sort ( jggNamesArray ) ; StringBuilder sb = new StringBuilder ( ) ; sb . append ( "#summary An overview of the modules implemented in the HortonMachine\n\n" ) ; sb . append ( "<wiki:toc max_depth=\"4\" />\n\n" ) ; sb . append ( "= HortonMachine Modules Overview =\n" ) ; sb . append ( "== !HortonMachine Modules ==\n" ) ; String status = "CERTIFIED" ; sb . append ( "=== Release ready ==\n" ) ; dumpModules ( hmModules , hmModulesClasses , hmNamesArray , sb , status ) ; status = "TESTED" ; sb . append ( "=== Tested but not for upcoming release ==\n" ) ; dumpModules ( hmModules , hmModulesClasses , hmNamesArray , sb , status ) ; status = "DRAFT" ; sb . append ( "=== Module that are not passing the QA rules yet ==\n" ) ; dumpModules ( hmModules , hmModulesClasses , hmNamesArray , sb , status ) ; sb . append ( "\n<BR/><BR/><BR/>\n\n" ) ; sb . append ( "== Gears Modules ==\n" ) ; status = "CERTIFIED" ; sb . append ( "=== Release ready ==\n" ) ; dumpModules ( jggModules , jggModulesClasses , jggNamesArray , sb , status ) ; status = "TESTED" ; sb . append ( "=== Tested but not for upcoming release ==\n" ) ; dumpModules ( jggModules , jggModulesClasses , jggNamesArray , sb , status ) ; status = "DRAFT" ; sb . append ( "=== Module that are not passing the QA rules yet ==\n" ) ; dumpModules ( jggModules , jggModulesClasses , jggNamesArray , sb , status ) ; System . out . println ( sb . toString ( ) ) ; }
Creates an overview of all the OMS modules for the wiki site .