private IRenderer buildRenderer ( File outputDirectory , ApplicationTemplate applicationTemplate , File applicationDirectory , Renderer renderer , Map < String , String > typeAnnotations ) { IRenderer result = null ; switch ( renderer ) { case HTML : result = new HtmlRenderer ( outputDirectory , applicationTemplate , applicationDirectory , typeAnnotations ) ; break ; case MARKDOWN : result = new MarkdownRenderer ( outputDirectory , applicationTemplate , applicationDirectory , typeAnnotations ) ; break ; case FOP : result = new FopRenderer ( outputDirectory , applicationTemplate , applicationDirectory , typeAnnotations ) ; break ; case PDF : result = new PdfRenderer ( outputDirectory , applicationTemplate , applicationDirectory , typeAnnotations ) ; break ; default : break ; } return result ; }
Builds the right renderer .