src/share/classes/com/sun/tools/doclets/internal/toolkit/PackageSummaryWriter.java

Wed, 10 Oct 2012 16:48:21 -0700

author
jjg
date
Wed, 10 Oct 2012 16:48:21 -0700
changeset 1359
25e14ad23cef
parent 1357
c75be5bc5283
child 1364
8db45b13526e
permissions
-rw-r--r--

8000665: fix "internal API" comments on javadoc files
Reviewed-by: darcy

duke@1 1 /*
jjg@1357 2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
duke@1 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1 4 *
duke@1 5 * This code is free software; you can redistribute it and/or modify it
duke@1 6 * under the terms of the GNU General Public License version 2 only, as
ohair@554 7 * published by the Free Software Foundation. Oracle designates this
duke@1 8 * particular file as subject to the "Classpath" exception as provided
ohair@554 9 * by Oracle in the LICENSE file that accompanied this code.
duke@1 10 *
duke@1 11 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 14 * version 2 for more details (a copy is included in the LICENSE file that
duke@1 15 * accompanied this code).
duke@1 16 *
duke@1 17 * You should have received a copy of the GNU General Public License version
duke@1 18 * 2 along with this work; if not, write to the Free Software Foundation,
duke@1 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 20 *
ohair@554 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@554 22 * or visit www.oracle.com if you need additional information or have any
ohair@554 23 * questions.
duke@1 24 */
duke@1 25
duke@1 26 package com.sun.tools.doclets.internal.toolkit;
duke@1 27
jjg@1357 28 import java.io.*;
jjg@1357 29
duke@1 30 import com.sun.javadoc.*;
duke@1 31
duke@1 32 /**
duke@1 33 * The interface for writing package summary output.
duke@1 34 *
jjg@1359 35 * <p><b>This is NOT part of any supported API.
jjg@1359 36 * If you write code that depends on this, you do so at your own risk.
jjg@1359 37 * This code and its internal interfaces are subject to change or
jjg@1359 38 * deletion without notice.</b>
duke@1 39 *
duke@1 40 * @author Jamie Ho
bpatel@766 41 * @author Bhavesh Patel (Modified)
duke@1 42 * @since 1.5
duke@1 43 */
duke@1 44
duke@1 45 public interface PackageSummaryWriter {
duke@1 46
duke@1 47 /**
duke@1 48 * Return the name of the output file.
duke@1 49 *
duke@1 50 * @return the name of the output file.
duke@1 51 */
duke@1 52 public abstract String getOutputFileName();
duke@1 53
duke@1 54 /**
bpatel@766 55 * Get the header for the summary.
bpatel@766 56 *
bpatel@766 57 * @param heading Package name.
bpatel@766 58 * @return the header to be added to the content tree
duke@1 59 */
bpatel@766 60 public abstract Content getPackageHeader(String heading);
duke@1 61
duke@1 62 /**
bpatel@766 63 * Get the header for the package content.
bpatel@766 64 *
bpatel@766 65 * @return a content tree for the package content header
duke@1 66 */
bpatel@766 67 public abstract Content getContentHeader();
duke@1 68
duke@1 69 /**
bpatel@766 70 * Get the header for the package summary.
bpatel@766 71 *
bpatel@766 72 * @return a content tree with the package summary header
bpatel@766 73 */
bpatel@766 74 public abstract Content getSummaryHeader();
bpatel@766 75
bpatel@766 76 /**
bpatel@766 77 * Adds the table of classes to the documentation tree.
duke@1 78 *
duke@1 79 * @param classes the array of classes to document.
duke@1 80 * @param label the label for this table.
bpatel@766 81 * @param tableSummary the summary string for the table
bpatel@766 82 * @param tableHeader array of table headers
bpatel@766 83 * @param summaryContentTree the content tree to which the summaries will be added
duke@1 84 */
bpatel@766 85 public abstract void addClassesSummary(ClassDoc[] classes, String label,
bpatel@766 86 String tableSummary, String[] tableHeader, Content summaryContentTree);
duke@1 87
duke@1 88 /**
bpatel@766 89 * Adds the package description from the "packages.html" file to the documentation
bpatel@766 90 * tree.
duke@1 91 *
bpatel@766 92 * @param packageContentTree the content tree to which the package description
bpatel@766 93 * will be added
duke@1 94 */
bpatel@766 95 public abstract void addPackageDescription(Content packageContentTree);
duke@1 96
duke@1 97 /**
bpatel@766 98 * Adds the tag information from the "packages.html" file to the documentation
bpatel@766 99 * tree.
bpatel@766 100 *
bpatel@766 101 * @param packageContentTree the content tree to which the package tags will
bpatel@766 102 * be added
duke@1 103 */
bpatel@766 104 public abstract void addPackageTags(Content packageContentTree);
duke@1 105
duke@1 106 /**
bpatel@766 107 * Adds the footer to the documentation tree.
bpatel@766 108 *
bpatel@766 109 * @param contentTree the tree to which the footer will be added
duke@1 110 */
bpatel@766 111 public abstract void addPackageFooter(Content contentTree);
duke@1 112
duke@1 113 /**
bpatel@766 114 * Print the package summary document.
duke@1 115 *
bpatel@766 116 * @param contentTree the content tree that will be printed
duke@1 117 */
bpatel@766 118 public abstract void printDocument(Content contentTree);
duke@1 119
duke@1 120 /**
duke@1 121 * Close the writer.
duke@1 122 */
duke@1 123 public abstract void close() throws IOException;
duke@1 124
duke@1 125 }

mercurial