Package com.devbliss.doctest.items

Examples of com.devbliss.doctest.items.FileDocItem


    public void render(List<DocItem> listItems, String name) throws Exception {
        String nameWithExtension = helper.getCompleteFileName(INDEX, HTML_EXTENSION);
        List<LinkDocItem> files = getListOfFileAsString(nameWithExtension, INDEX);
        MenuDocItem menu = new MenuDocItem("List of doctest files", files);
        String body = htmlItems.getListFilesTemplate(menu);
        FileDocItem index = new FileDocItem(name, body);
        helper.writeFile(nameWithExtension, htmlItems.getIndexTemplate(index));
    }
View Full Code Here


    }

    public void render(List<DocItem> listTemplates, String name) throws Exception {
        if (listTemplates != null && !listTemplates.isEmpty()) {
            String items = appendItemsToBuffer(listTemplates);
            FileDocItem report = new FileDocItem(name, items);
            String nameWithExtension = helper.getCompleteFileName(name, HTML_EXTENSION);
            helper.writeFile(nameWithExtension, htmlItems.getReportTemplate(report));

            indexFileGenerator.render(null, INDEX);
        }
View Full Code Here

TOP

Related Classes of com.devbliss.doctest.items.FileDocItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.