langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/builders/ModuleSummaryBuilder.java
author jjg
Mon, 22 Aug 2016 16:32:40 -0700
changeset 40587 1c355ea550ed
parent 40303 96a1226aca18
child 40605 926c13175b67
permissions -rw-r--r--
8164130: Simplify doclet IOException handling Reviewed-by: bpatel, ksrini
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     1
/*
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     2
 * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     4
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    10
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    15
 * accompanied this code).
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    16
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    20
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    23
 * questions.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    24
 */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    25
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    26
package jdk.javadoc.internal.doclets.toolkit.builders;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    27
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    28
import javax.lang.model.element.ModuleElement;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    29
import javax.lang.model.element.PackageElement;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    30
import javax.tools.StandardLocation;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    31
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    32
import jdk.javadoc.internal.doclets.toolkit.Content;
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
    33
import jdk.javadoc.internal.doclets.toolkit.DocletException;
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    34
import jdk.javadoc.internal.doclets.toolkit.ModuleSummaryWriter;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    35
import jdk.javadoc.internal.doclets.toolkit.util.DocPaths;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    36
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    37
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    38
/**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    39
 * Builds the summary for a given module.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    40
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    41
 *  <p><b>This is NOT part of any supported API.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    42
 *  If you write code that depends on this, you do so at your own risk.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    43
 *  This code and its internal interfaces are subject to change or
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    44
 *  deletion without notice.</b>
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    45
 *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    46
 * @author Bhavesh Patel
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    47
 */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    48
public class ModuleSummaryBuilder extends AbstractBuilder {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    49
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    50
     * The root element of the module summary XML is {@value}.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    51
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    52
    public static final String ROOT = "ModuleDoc";
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    53
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    54
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    55
     * The module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    56
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    57
    private final ModuleElement mdle;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    58
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    59
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    60
     * The doclet specific writer that will output the result.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    61
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    62
    private final ModuleSummaryWriter moduleWriter;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    63
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    64
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    65
     * The content that will be added to the module summary documentation tree.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    66
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    67
    private Content contentTree;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    68
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    69
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    70
     * The module package being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    71
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    72
    private PackageElement pkg;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    73
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    74
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    75
     * Construct a new ModuleSummaryBuilder.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    76
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    77
     * @param context  the build context.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    78
     * @param mdle the module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    79
     * @param moduleWriter the doclet specific writer that will output the
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    80
     *        result.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    81
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    82
    private ModuleSummaryBuilder(Context context,
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    83
            ModuleElement mdle, ModuleSummaryWriter moduleWriter) {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    84
        super(context);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    85
        this.mdle = mdle;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    86
        this.moduleWriter = moduleWriter;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    87
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    88
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    89
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    90
     * Construct a new ModuleSummaryBuilder.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    91
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    92
     * @param context  the build context.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    93
     * @param mdle the module being documented.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    94
     * @param moduleWriter the doclet specific writer that will output the
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    95
     *        result.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    96
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    97
     * @return an instance of a ModuleSummaryBuilder.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    98
     */
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
    99
    public static ModuleSummaryBuilder getInstance(Context context,
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   100
            ModuleElement mdle, ModuleSummaryWriter moduleWriter) {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   101
        return new ModuleSummaryBuilder(context, mdle, moduleWriter);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   102
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   103
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   104
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   105
     * Build the module summary.
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   106
     *
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   107
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   108
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   109
    @Override
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   110
    public void build() throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   111
        if (moduleWriter == null) {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   112
            //Doclet does not support this output.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   113
            return;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   114
        }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   115
        build(layoutParser.parseXML(ROOT), contentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   116
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   117
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   118
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   119
     * {@inheritDoc}
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   120
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   121
    @Override
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   122
    public String getName() {
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   123
        return ROOT;
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   124
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   125
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   126
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   127
     * Build the module documentation.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   128
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   129
     * @param node the XML element that specifies which components to document
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   130
     * @param contentTree the content tree to which the documentation will be added
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   131
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   132
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   133
    public void buildModuleDoc(XMLNode node, Content contentTree) throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   134
        contentTree = moduleWriter.getModuleHeader(mdle.getSimpleName().toString());
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   135
        buildChildren(node, contentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   136
        moduleWriter.addModuleFooter(contentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   137
        moduleWriter.printDocument(contentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   138
        // TEMPORARY:
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   139
        // The use of SOURCE_PATH on the next line is temporary. As we transition into the
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   140
        // modules world, this should migrate into using a location for the appropriate module
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   141
        // on the MODULE_SOURCE_PATH, or (in the old doclet) simply deleted.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   142
        utils.copyDocFiles(configuration, StandardLocation.SOURCE_PATH, DocPaths.moduleSummary(mdle));
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   143
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   144
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   145
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   146
     * Build the content for the module doc.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   147
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   148
     * @param node the XML element that specifies which components to document
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   149
     * @param contentTree the content tree to which the module contents
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   150
     *                    will be added
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   151
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   152
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   153
    public void buildContent(XMLNode node, Content contentTree) throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   154
        Content moduleContentTree = moduleWriter.getContentHeader();
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   155
        buildChildren(node, moduleContentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   156
        moduleWriter.addModuleContent(contentTree, moduleContentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   157
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   158
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   159
    /**
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   160
     * Build the module summary.
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   161
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   162
     * @param node the XML element that specifies which components to document
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   163
     * @param moduleContentTree the module content tree to which the summaries will
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   164
     *                           be added
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   165
     * @throws DocletException if there is a problem while building the documentation
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   166
     */
40587
1c355ea550ed 8164130: Simplify doclet IOException handling
jjg
parents: 40303
diff changeset
   167
    public void buildSummary(XMLNode node, Content moduleContentTree) throws DocletException {
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   168
        Content summaryContentTree = moduleWriter.getSummaryHeader();
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   169
        buildChildren(node, summaryContentTree);
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   170
        moduleContentTree.addContent(moduleWriter.getSummaryTree(summaryContentTree));
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   171
    }
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   172
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   173
    /**
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   174
     * Build the modules summary.
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   175
     *
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   176
     * @param node the XML element that specifies which components to document
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   177
     * @param summaryContentTree the content tree to which the summaries will
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   178
     *                           be added
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   179
     */
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   180
    public void buildModulesSummary(XMLNode node, Content summaryContentTree) {
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   181
        moduleWriter.addModulesSummary(summaryContentTree);
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   182
    }
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   183
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   184
    /**
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   185
     * Build the package summary.
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   186
     *
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   187
     * @param node the XML element that specifies which components to document
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   188
     * @param summaryContentTree the content tree to which the summaries will be added
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   189
     */
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   190
    public void buildPackagesSummary(XMLNode node, Content summaryContentTree) {
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   191
        moduleWriter.addPackagesSummary(summaryContentTree);
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   192
        }
39670
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   193
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   194
    /**
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   195
     * Build the services summary.
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   196
     *
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   197
     * @param node the XML element that specifies which components to document
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   198
     * @param summaryContentTree the content tree to which the summaries will be added
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   199
     */
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   200
    public void buildServicesSummary(XMLNode node, Content summaryContentTree) {
9d1eafbf29c6 8154261: Module summary page should display directives for the module
bpatel
parents: 38911
diff changeset
   201
        moduleWriter.addServicesSummary(summaryContentTree);
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   202
    }
37747
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   203
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   204
    /**
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   205
     * Build the description for the module.
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   206
     *
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   207
     * @param node the XML element that specifies which components to document
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   208
     * @param moduleContentTree the tree to which the module description will
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   209
     *                           be added
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   210
     */
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   211
    public void buildModuleDescription(XMLNode node, Content moduleContentTree) {
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   212
        if (!configuration.nocomment) {
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   213
            moduleWriter.addModuleDescription(moduleContentTree);
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   214
        }
878801512393 8154119: Module summary page should display module description
bpatel
parents: 36526
diff changeset
   215
    }
38911
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   216
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   217
    /**
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   218
     * Build the tags of the summary.
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   219
     *
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   220
     * @param node the XML element that specifies which components to document
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   221
     * @param moduleContentTree the tree to which the module tags will be added
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   222
     */
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   223
    public void buildModuleTags(XMLNode node, Content moduleContentTree) {
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   224
        if (!configuration.nocomment) {
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   225
            moduleWriter.addModuleTags(moduleContentTree);
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   226
        }
48a00b5ee366 8156077: Support javadoc tags in module documentation
bpatel
parents: 37747
diff changeset
   227
    }
36526
3b41f1c69604 8142968: Module System implementation
alanb
parents:
diff changeset
   228
}