public void generateSearchPage(List<ApiService> services){
  List<ApiMethod> allMethods=new ArrayList<ApiMethod>();
  for (  ApiService service : services) {
    allMethods.addAll(service.methods);
  }
  int key=0;
  for (  ApiMethod method : allMethods) {
    method.indexKey="" + key++;
  }
  Map<String,Object> parameters=new HashMap<String,Object>();
  parameters.put("apiMethods",allMethods);
  parameters.put("title","API Reference Search");
  addCommonTemplateParameters(parameters);
  TemplateEngine.generateFileFromTemplate(KnownPaths.getTemplateFile(SEARCH_TEMPLATE),KnownPaths.getHtmlOutputFile(SEARCH_TEMPLATE),parameters);
}

public void generateSearchPage ( List < ApiService > services ) { List < ApiMethod > allMethods = new ArrayList < ApiMethod > ( ) ; for ( ApiService service : services ) { allMethods . addAll ( service . methods ) ; } int key = 0 ; for ( ApiMethod method : allMethods ) { method . indexKey = "" + key ++ ; } Map < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "apiMethods" , allMethods ) ; parameters . put ( "title" , "API Reference Search" ) ; addCommonTemplateParameters ( parameters ) ; TemplateEngine . generateFileFromTemplate ( KnownPaths . getTemplateFile ( SEARCH_TEMPLATE ) , KnownPaths . getHtmlOutputFile ( SEARCH_TEMPLATE ) , parameters ) ; }
generates the search page
