author | bpatel |
Thu, 28 Apr 2016 05:10:11 +0000 | |
changeset 37747 | 878801512393 |
parent 36526 | 3b41f1c69604 |
child 38911 | 48a00b5ee366 |
permissions | -rw-r--r-- |
36526 | 1 |
/* |
2 |
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
|
10 |
* |
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package jdk.javadoc.internal.doclets.toolkit; |
|
27 |
||
28 |
import java.io.*; |
|
29 |
import java.util.Set; |
|
30 |
||
31 |
import javax.lang.model.element.PackageElement; |
|
32 |
||
33 |
/** |
|
34 |
* The interface for writing module summary output. |
|
35 |
* |
|
36 |
* <p><b>This is NOT part of any supported API. |
|
37 |
* If you write code that depends on this, you do so at your own risk. |
|
38 |
* This code and its internal interfaces are subject to change or |
|
39 |
* deletion without notice.</b> |
|
40 |
* |
|
41 |
* @author Bhavesh Patel |
|
42 |
*/ |
|
43 |
||
44 |
public interface ModuleSummaryWriter { |
|
45 |
||
46 |
/** |
|
47 |
* Get the header for the summary. |
|
48 |
* |
|
49 |
* @param heading module name. |
|
50 |
* @return the header to be added to the content tree |
|
51 |
*/ |
|
52 |
public abstract Content getModuleHeader(String heading); |
|
53 |
||
54 |
/** |
|
55 |
* Get the header for the module content. |
|
56 |
* |
|
57 |
* @return a content tree for the module content header |
|
58 |
*/ |
|
59 |
public abstract Content getContentHeader(); |
|
60 |
||
61 |
/** |
|
62 |
* Get the header for the summary header. |
|
63 |
* |
|
64 |
* @return a content tree with the summary header |
|
65 |
*/ |
|
66 |
public abstract Content getSummaryHeader(); |
|
67 |
||
68 |
/** |
|
69 |
* Get the header for the summary tree. |
|
70 |
* |
|
71 |
* @param summaryContentTree the content tree. |
|
72 |
* @return a content tree with the summary tree |
|
73 |
*/ |
|
74 |
public abstract Content getSummaryTree(Content summaryContentTree); |
|
75 |
||
76 |
/** |
|
37747
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
77 |
* Adds the module description. |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
78 |
* |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
79 |
* @param moduleContentTree the content tree to which the module description |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
80 |
* will be added |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
81 |
*/ |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
82 |
public abstract void addModuleDescription(Content moduleContentTree); |
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
83 |
|
878801512393
8154119: Module summary page should display module description
bpatel
parents:
36526
diff
changeset
|
84 |
/** |
36526 | 85 |
* Adds the table of packages to the documentation tree. |
86 |
* |
|
87 |
* @param packages the set of packages that should be added. |
|
88 |
* @param label the label for this table. |
|
89 |
* @param tableSummary the summary string for the table |
|
90 |
* @param summaryContentTree the content tree to which the summary will be added |
|
91 |
*/ |
|
92 |
public abstract void addPackagesSummary(Set<PackageElement> packages, String label, |
|
93 |
String tableSummary, Content summaryContentTree); |
|
94 |
||
95 |
/** |
|
96 |
* Adds the module content tree to the documentation tree. |
|
97 |
* |
|
98 |
* @param contentTree the tree to which the module content tree will be added |
|
99 |
* @param moduleContentTree the content tree that will be added |
|
100 |
*/ |
|
101 |
public abstract void addModuleContent(Content contentTree, Content moduleContentTree); |
|
102 |
||
103 |
/** |
|
104 |
* Adds the footer to the documentation tree. |
|
105 |
* |
|
106 |
* @param contentTree the tree to which the footer will be added |
|
107 |
*/ |
|
108 |
public abstract void addModuleFooter(Content contentTree); |
|
109 |
||
110 |
/** |
|
111 |
* Print the module summary document. |
|
112 |
* |
|
113 |
* @param contentTree the content tree that will be printed |
|
114 |
*/ |
|
115 |
public abstract void printDocument(Content contentTree) throws IOException; |
|
116 |
||
117 |
/** |
|
118 |
* Close the writer. |
|
119 |
*/ |
|
120 |
public abstract void close() throws IOException; |
|
121 |
||
122 |
} |