author | ohair |
Tue, 25 May 2010 15:54:51 -0700 | |
changeset 5520 | 86e4b9a9da40 |
parent 2320 | 5b8c377175f4 |
child 5855 | 00d9c252e60c |
permissions | -rw-r--r-- |
10 | 1 |
/* |
5520 | 2 |
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. |
10 | 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 |
|
5520 | 7 |
* published by the Free Software Foundation. Oracle designates this |
10 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
10 | 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 |
* |
|
5520 | 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. |
|
10 | 24 |
*/ |
25 |
||
26 |
package com.sun.tools.doclets.internal.toolkit.builders; |
|
27 |
||
28 |
import com.sun.tools.doclets.internal.toolkit.util.*; |
|
29 |
import com.sun.tools.doclets.internal.toolkit.*; |
|
30 |
import com.sun.javadoc.*; |
|
31 |
import java.io.*; |
|
32 |
import java.util.*; |
|
33 |
import java.lang.reflect.*; |
|
34 |
||
35 |
/** |
|
36 |
* Builds the summary for a given package. |
|
37 |
* |
|
38 |
* This code is not part of an API. |
|
39 |
* It is implementation that is subject to change. |
|
40 |
* Do not use it as an API |
|
41 |
* |
|
42 |
* @author Jamie Ho |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
43 |
* @author Bhavesh Patel (Modified) |
10 | 44 |
* @since 1.5 |
45 |
*/ |
|
46 |
public class PackageSummaryBuilder extends AbstractBuilder { |
|
47 |
||
48 |
/** |
|
49 |
* The root element of the package summary XML is {@value}. |
|
50 |
*/ |
|
51 |
public static final String ROOT = "PackageDoc"; |
|
52 |
||
53 |
/** |
|
54 |
* The package being documented. |
|
55 |
*/ |
|
56 |
private PackageDoc packageDoc; |
|
57 |
||
58 |
/** |
|
59 |
* The doclet specific writer that will output the result. |
|
60 |
*/ |
|
61 |
private PackageSummaryWriter packageWriter; |
|
62 |
||
63 |
private PackageSummaryBuilder(Configuration configuration) { |
|
64 |
super(configuration); |
|
65 |
} |
|
66 |
||
67 |
/** |
|
68 |
* Construct a new PackageSummaryBuilder. |
|
69 |
* @param configuration the current configuration of the doclet. |
|
70 |
* @param pkg the package being documented. |
|
71 |
* @param packageWriter the doclet specific writer that will output the |
|
72 |
* result. |
|
73 |
* |
|
74 |
* @return an instance of a PackageSummaryBuilder. |
|
75 |
*/ |
|
76 |
public static PackageSummaryBuilder getInstance( |
|
77 |
Configuration configuration, |
|
78 |
PackageDoc pkg, |
|
79 |
PackageSummaryWriter packageWriter) { |
|
80 |
PackageSummaryBuilder builder = |
|
81 |
new PackageSummaryBuilder(configuration); |
|
82 |
builder.packageDoc = pkg; |
|
83 |
builder.packageWriter = packageWriter; |
|
84 |
return builder; |
|
85 |
} |
|
86 |
||
87 |
/** |
|
88 |
* {@inheritDoc} |
|
89 |
*/ |
|
90 |
public void invokeMethod( |
|
91 |
String methodName, |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
10
diff
changeset
|
92 |
Class<?>[] paramClasses, |
10 | 93 |
Object[] params) |
94 |
throws Exception { |
|
95 |
if (DEBUG) { |
|
96 |
configuration.root.printError( |
|
97 |
"DEBUG: " + this.getClass().getName() + "." + methodName); |
|
98 |
} |
|
99 |
Method method = this.getClass().getMethod(methodName, paramClasses); |
|
100 |
method.invoke(this, params); |
|
101 |
} |
|
102 |
||
103 |
/** |
|
104 |
* Build the package summary. |
|
105 |
*/ |
|
106 |
public void build() throws IOException { |
|
107 |
if (packageWriter == null) { |
|
108 |
//Doclet does not support this output. |
|
109 |
return; |
|
110 |
} |
|
111 |
build(LayoutParser.getInstance(configuration).parseXML(ROOT)); |
|
112 |
} |
|
113 |
||
114 |
/** |
|
115 |
* {@inheritDoc} |
|
116 |
*/ |
|
117 |
public String getName() { |
|
118 |
return ROOT; |
|
119 |
} |
|
120 |
||
121 |
/** |
|
122 |
* Build the package documentation. |
|
123 |
*/ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
10
diff
changeset
|
124 |
public void buildPackageDoc(List<?> elements) throws Exception { |
10 | 125 |
build(elements); |
126 |
packageWriter.close(); |
|
127 |
Util.copyDocFiles( |
|
128 |
configuration, |
|
129 |
Util.getPackageSourcePath(configuration, packageDoc), |
|
130 |
DirectoryManager.getDirectoryPath(packageDoc) |
|
131 |
+ File.separator |
|
132 |
+ DocletConstants.DOC_FILES_DIR_NAME, |
|
133 |
true); |
|
134 |
} |
|
135 |
||
136 |
/** |
|
137 |
* Build the header of the summary. |
|
138 |
*/ |
|
139 |
public void buildPackageHeader() { |
|
140 |
packageWriter.writePackageHeader(Util.getPackageName(packageDoc)); |
|
141 |
} |
|
142 |
||
143 |
/** |
|
144 |
* Build the description of the summary. |
|
145 |
*/ |
|
146 |
public void buildPackageDescription() { |
|
147 |
if (configuration.nocomment) { |
|
148 |
return; |
|
149 |
} |
|
150 |
packageWriter.writePackageDescription(); |
|
151 |
} |
|
152 |
||
153 |
/** |
|
154 |
* Build the tags of the summary. |
|
155 |
*/ |
|
156 |
public void buildPackageTags() { |
|
157 |
if (configuration.nocomment) { |
|
158 |
return; |
|
159 |
} |
|
160 |
packageWriter.writePackageTags(); |
|
161 |
} |
|
162 |
||
163 |
/** |
|
164 |
* Build the package summary. |
|
165 |
*/ |
|
1789
7ac8c0815000
6765045: Remove rawtypes warnings from langtools
mcimadamore
parents:
10
diff
changeset
|
166 |
public void buildSummary(List<?> elements) { |
10 | 167 |
build(elements); |
168 |
} |
|
169 |
||
170 |
/** |
|
171 |
* Build the overall header. |
|
172 |
*/ |
|
173 |
public void buildSummaryHeader() { |
|
174 |
packageWriter.writeSummaryHeader(); |
|
175 |
} |
|
176 |
||
177 |
/** |
|
178 |
* Build the overall footer. |
|
179 |
*/ |
|
180 |
public void buildSummaryFooter() { |
|
181 |
packageWriter.writeSummaryFooter(); |
|
182 |
} |
|
183 |
||
184 |
/** |
|
185 |
* Build the summary for the classes in this package. |
|
186 |
*/ |
|
187 |
public void buildClassSummary() { |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
188 |
String classTableSummary = |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
189 |
configuration.getText("doclet.Member_Table_Summary", |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
190 |
configuration.getText("doclet.Class_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
191 |
configuration.getText("doclet.classes")); |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
192 |
String[] classTableHeader = new String[] { |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
193 |
configuration.getText("doclet.Class"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
194 |
configuration.getText("doclet.Description") |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
195 |
}; |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
196 |
ClassDoc[] classes = |
10 | 197 |
packageDoc.isIncluded() |
198 |
? packageDoc.ordinaryClasses() |
|
199 |
: configuration.classDocCatalog.ordinaryClasses( |
|
200 |
Util.getPackageName(packageDoc)); |
|
201 |
if (classes.length > 0) { |
|
202 |
packageWriter.writeClassesSummary( |
|
203 |
classes, |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
204 |
configuration.getText("doclet.Class_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
205 |
classTableSummary, classTableHeader); |
10 | 206 |
} |
207 |
} |
|
208 |
||
209 |
/** |
|
210 |
* Build the summary for the interfaces in this package. |
|
211 |
*/ |
|
212 |
public void buildInterfaceSummary() { |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
213 |
String interfaceTableSummary = |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
214 |
configuration.getText("doclet.Member_Table_Summary", |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
215 |
configuration.getText("doclet.Interface_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
216 |
configuration.getText("doclet.interfaces")); |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
217 |
String[] interfaceTableHeader = new String[] { |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
218 |
configuration.getText("doclet.Interface"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
219 |
configuration.getText("doclet.Description") |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
220 |
}; |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
221 |
ClassDoc[] interfaces = |
10 | 222 |
packageDoc.isIncluded() |
223 |
? packageDoc.interfaces() |
|
224 |
: configuration.classDocCatalog.interfaces( |
|
225 |
Util.getPackageName(packageDoc)); |
|
226 |
if (interfaces.length > 0) { |
|
227 |
packageWriter.writeClassesSummary( |
|
228 |
interfaces, |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
229 |
configuration.getText("doclet.Interface_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
230 |
interfaceTableSummary, interfaceTableHeader); |
10 | 231 |
} |
232 |
} |
|
233 |
||
234 |
/** |
|
235 |
* Build the summary for the enums in this package. |
|
236 |
*/ |
|
237 |
public void buildAnnotationTypeSummary() { |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
238 |
String annotationtypeTableSummary = |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
239 |
configuration.getText("doclet.Member_Table_Summary", |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
240 |
configuration.getText("doclet.Annotation_Types_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
241 |
configuration.getText("doclet.annotationtypes")); |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
242 |
String[] annotationtypeTableHeader = new String[] { |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
243 |
configuration.getText("doclet.AnnotationType"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
244 |
configuration.getText("doclet.Description") |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
245 |
}; |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
246 |
ClassDoc[] annotationTypes = |
10 | 247 |
packageDoc.isIncluded() |
248 |
? packageDoc.annotationTypes() |
|
249 |
: configuration.classDocCatalog.annotationTypes( |
|
250 |
Util.getPackageName(packageDoc)); |
|
251 |
if (annotationTypes.length > 0) { |
|
252 |
packageWriter.writeClassesSummary( |
|
253 |
annotationTypes, |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
254 |
configuration.getText("doclet.Annotation_Types_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
255 |
annotationtypeTableSummary, annotationtypeTableHeader); |
10 | 256 |
} |
257 |
} |
|
258 |
||
259 |
/** |
|
260 |
* Build the summary for the enums in this package. |
|
261 |
*/ |
|
262 |
public void buildEnumSummary() { |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
263 |
String enumTableSummary = |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
264 |
configuration.getText("doclet.Member_Table_Summary", |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
265 |
configuration.getText("doclet.Enum_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
266 |
configuration.getText("doclet.enums")); |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
267 |
String[] enumTableHeader = new String[] { |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
268 |
configuration.getText("doclet.Enum"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
269 |
configuration.getText("doclet.Description") |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
270 |
}; |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
271 |
ClassDoc[] enums = |
10 | 272 |
packageDoc.isIncluded() |
273 |
? packageDoc.enums() |
|
274 |
: configuration.classDocCatalog.enums( |
|
275 |
Util.getPackageName(packageDoc)); |
|
276 |
if (enums.length > 0) { |
|
277 |
packageWriter.writeClassesSummary( |
|
278 |
enums, |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
279 |
configuration.getText("doclet.Enum_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
280 |
enumTableSummary, enumTableHeader); |
10 | 281 |
} |
282 |
} |
|
283 |
||
284 |
/** |
|
285 |
* Build the summary for the exceptions in this package. |
|
286 |
*/ |
|
287 |
public void buildExceptionSummary() { |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
288 |
String exceptionTableSummary = |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
289 |
configuration.getText("doclet.Member_Table_Summary", |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
290 |
configuration.getText("doclet.Exception_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
291 |
configuration.getText("doclet.exceptions")); |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
292 |
String[] exceptionTableHeader = new String[] { |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
293 |
configuration.getText("doclet.Exception"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
294 |
configuration.getText("doclet.Description") |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
295 |
}; |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
296 |
ClassDoc[] exceptions = |
10 | 297 |
packageDoc.isIncluded() |
298 |
? packageDoc.exceptions() |
|
299 |
: configuration.classDocCatalog.exceptions( |
|
300 |
Util.getPackageName(packageDoc)); |
|
301 |
if (exceptions.length > 0) { |
|
302 |
packageWriter.writeClassesSummary( |
|
303 |
exceptions, |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
304 |
configuration.getText("doclet.Exception_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
305 |
exceptionTableSummary, exceptionTableHeader); |
10 | 306 |
} |
307 |
} |
|
308 |
||
309 |
/** |
|
310 |
* Build the summary for the errors in this package. |
|
311 |
*/ |
|
312 |
public void buildErrorSummary() { |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
313 |
String errorTableSummary = |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
314 |
configuration.getText("doclet.Member_Table_Summary", |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
315 |
configuration.getText("doclet.Error_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
316 |
configuration.getText("doclet.errors")); |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
317 |
String[] errorTableHeader = new String[] { |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
318 |
configuration.getText("doclet.Error"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
319 |
configuration.getText("doclet.Description") |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
320 |
}; |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
321 |
ClassDoc[] errors = |
10 | 322 |
packageDoc.isIncluded() |
323 |
? packageDoc.errors() |
|
324 |
: configuration.classDocCatalog.errors( |
|
325 |
Util.getPackageName(packageDoc)); |
|
326 |
if (errors.length > 0) { |
|
327 |
packageWriter.writeClassesSummary( |
|
328 |
errors, |
|
2320
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
329 |
configuration.getText("doclet.Error_Summary"), |
5b8c377175f4
6786688: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Table must have captions and headers
bpatel
parents:
1789
diff
changeset
|
330 |
errorTableSummary, errorTableHeader); |
10 | 331 |
} |
332 |
} |
|
333 |
||
334 |
/** |
|
335 |
* Build the footer of the summary. |
|
336 |
*/ |
|
337 |
public void buildPackageFooter() { |
|
338 |
packageWriter.writePackageFooter(); |
|
339 |
} |
|
340 |
} |