Examples of DocFile


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

    /**
     * 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

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

    /**
     * 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

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

   
    /**
     * 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

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

    /**
     * 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

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

    /**
     * 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

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

    public void generateTablesDetails() {
        Iterator tables = getConfiguration().getTableMappings();
        while (tables.hasNext() ) {
            Table table = (Table) tables.next();

            DocFile docFile = docFileManager.getTableDocFile(table);
            if(docFile!=null) {
              File file = docFile.getFile();

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

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

      Iterator classes = docHelper.getClasses().iterator();
      while(classes.hasNext()){
        POJOClass pcObj = (POJOClass)classes.next()
       
        pcObj.getPropertiesForMinimalConstructor();   
        DocFile docFile = docFileManager.getEntityDocFile(pcObj);
        File file = docFile.getFile();
       
        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        parameters.put("class", pcObj);       
        processTemplate(parameters, FTL_ENTITIES_ENTITY, file);
View Full Code Here

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

    /**
     * Generates the html file containig list of packages (allpackages.html)
     *
     */
    public void generateEntitiesAllPackagesList() {
        DocFile docFile = docFileManager.getAllPackagesDocFile();

        File file = docFile.getFile();

        Map parameters = new HashMap();
        parameters.put("docFile", docFile);
        List list = docHelper.getPackages();
        if (list.size() > 0){
View Full Code Here

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

    /**
     * Generates the html file containing list of classes (allclases.html)
     *
     */
    public void generateEntitiesAllEntitiesList() {
        DocFile docFile = docFileManager.getAllEntitiesDocFile();

        File file = docFile.getFile();  

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

View Full Code Here

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

        while (packages.hasNext() ) {
            String packageName = (String) packages.next();
           
            if(!packageName.equals(DocHelper.DEFAULT_NO_PACKAGE)){
                DocFile docFile = docFileManager.getPackageEntityListDocFile(packageName);
                File file = docFile.getFile();

                Map parameters = new HashMap();
                parameters.put("docFile", docFile);
                parameters.put("title", packageName);
                parameters.put("classList", docHelper.getClasses(packageName));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.