Package org.hibernate.tool.hbm2x.doc

Examples of org.hibernate.tool.hbm2x.doc.DocFile


        Iterator packages = packageList.iterator();
       
        while (packages.hasNext() ) {
            String packageName = (String) packages.next();

            DocFile summaryDocFile = docFileManager.getPackageSummaryDocFile(packageName);
            Map parameters = new HashMap();
            parameters.put("docFile", summaryDocFile);
            parameters.put("package", packageName);          
            parameters.put("classList", docHelper.getClasses(packageName));                      

            processTemplate(parameters, FTL_ENTITIES_PACKAGE_SUMMARY,
                    summaryDocFile.getFile() );
        }
    }   
View Full Code Here


    /**
     * Generate a file with a list of all the schemas in the configuration.
     */
    public void generateTablesAllSchemasList() {
        DocFile docFile = docFileManager.getAllSchemasDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("schemaList", docHelper.getSchemas() );

View Full Code Here

    /**
     * Generate a file with a list of all the tables in the configuration.
     */
    public void generateTablesAllTablesList() {
        DocFile docFile = docFileManager.getAllTablesDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("tableList", docHelper.getTables() );

View Full Code Here

        Iterator schemas = docHelper.getSchemas().iterator();

        while (schemas.hasNext() ) {
            String schemaName = (String) schemas.next();

            DocFile docFile = docFileManager.getSchemaTableListDocFile(schemaName);

            File file = docFile.getFile();

            Map parameters = new HashMap();
            parameters.put("docFile", docFile);
            parameters.put("title", schemaName);
            parameters.put("tableList", docHelper.getTables(schemaName) );
View Full Code Here

    public void generateTablesSchemaDetailedInfo() {
        Iterator schemas = docHelper.getSchemas().iterator();
        while (schemas.hasNext() ) {
            String schemaName = (String) schemas.next();

            DocFile summaryDocFile = docFileManager.getSchemaSummaryDocFile(schemaName);

            Map parameters = new HashMap();
            parameters.put("docFile", summaryDocFile);
            parameters.put("schema", schemaName);

            processTemplate(parameters, FTL_TABLES_SCHEMA_SUMMARY,
                    summaryDocFile.getFile() );

            DocFile tableListDocFile = docFileManager.getSchemaSummaryDocFile(schemaName);

            parameters = new HashMap();
            parameters.put("docFile", tableListDocFile);
            parameters.put("schema", schemaName);

            processTemplate(parameters, FTL_TABLES_SCHEMA_SUMMARY,
                    tableListDocFile.getFile() );
           
            //processTemplate( new HashMap(), templateName, outputFile );
        }
    }
View Full Code Here

    /**
     * Generate common files and copy assets.
     */
    public void generateCommmonAndAssets() {
        try {
            DocFile cssStylesDocFile = docFileManager.getCssStylesDocFile();

            processTemplate(Collections.EMPTY_MAP, FILE_CSS_DEFINITION, cssStylesDocFile.getFile());

            DocFile hibernateLogoDocFile = docFileManager.getHibernateImageDocFile();

            DocFileManager.copy(this.getClass().getClassLoader(), FILE_HIBERNATE_IMAGE,
                    hibernateLogoDocFile.getFile() );

            DocFile extendsImageDocFile = docFileManager.getExtendsImageDocFile();
                       
            DocFileManager.copy(this.getClass().getClassLoader(), FILE_EXTENDS_IMAGE, extendsImageDocFile.getFile());
           
            DocFile mainIndexDocFile = docFileManager.getMainIndexDocFile();

            processTemplate(Collections.EMPTY_MAP, FILE_INDEX, mainIndexDocFile.getFile() );
        }
        catch (IOException ioe) {
            throw new RuntimeException("Error while copying files.", ioe);
        }
    }
View Full Code Here

    /**
     * Generate the index file of the table documentation.
     */
    public void generateTablesIndex() {
        DocFile docFile = docFileManager.getTableIndexDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);

        processTemplate(parameters, FTL_TABLES_INDEX, file);
View Full Code Here

   
    /**
     * Generate the index file of the class documentation
     */
    public void generateEntitiesIndex(){
      DocFile docFile = docFileManager.getClassIndexDocFile();
      File file = docFile.getFile();
      Map parameters = new HashMap();
      parameters.put("docFile", docFile);
      processTemplate(parameters, FTL_ENTITIES_INDEX, file );
    }
View Full Code Here

    /**
     * Generate a file with an summary of all the tables.
     * @param graphsGenerated
     */
    public void generateTablesSummary(boolean graphsGenerated) {
        DocFile docFile = docFileManager.getTableSummaryDocFile();

        File file = docFileManager.getTableSummaryDocFile().getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
View Full Code Here

    /**
     * Generate summary (summaty.html) to show all the packages
     *
     */
    public void generatePackageSummary(boolean graphsGenerated){
      DocFile docFile = docFileManager.getClassSummaryFile();
      File file = docFile.getFile();
     
      Map parameters = new HashMap();
      parameters.put("docFile", docFile);
     
        List list = docHelper.getPackages();
View Full Code Here

TOP

Related Classes of org.hibernate.tool.hbm2x.doc.DocFile

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.