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

Tue, 23 Oct 2012 13:20:37 -0700

author
jjg
date
Tue, 23 Oct 2012 13:20:37 -0700
changeset 1372
78962d89f283
parent 1364
8db45b13526e
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8000741: refactor javadoc to use abstraction to handle relative paths
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 /**
bpatel@766 48 * Get the header for the summary.
bpatel@766 49 *
bpatel@766 50 * @param heading Package name.
bpatel@766 51 * @return the header to be added to the content tree
duke@1 52 */
bpatel@766 53 public abstract Content getPackageHeader(String heading);
duke@1 54
duke@1 55 /**
bpatel@766 56 * Get the header for the package content.
bpatel@766 57 *
bpatel@766 58 * @return a content tree for the package content header
duke@1 59 */
bpatel@766 60 public abstract Content getContentHeader();
duke@1 61
duke@1 62 /**
bpatel@766 63 * Get the header for the package summary.
bpatel@766 64 *
bpatel@766 65 * @return a content tree with the package summary header
bpatel@766 66 */
bpatel@766 67 public abstract Content getSummaryHeader();
bpatel@766 68
bpatel@766 69 /**
bpatel@766 70 * Adds the table of classes to the documentation tree.
duke@1 71 *
duke@1 72 * @param classes the array of classes to document.
duke@1 73 * @param label the label for this table.
bpatel@766 74 * @param tableSummary the summary string for the table
bpatel@766 75 * @param tableHeader array of table headers
bpatel@766 76 * @param summaryContentTree the content tree to which the summaries will be added
duke@1 77 */
bpatel@766 78 public abstract void addClassesSummary(ClassDoc[] classes, String label,
bpatel@766 79 String tableSummary, String[] tableHeader, Content summaryContentTree);
duke@1 80
duke@1 81 /**
bpatel@766 82 * Adds the package description from the "packages.html" file to the documentation
bpatel@766 83 * tree.
duke@1 84 *
bpatel@766 85 * @param packageContentTree the content tree to which the package description
bpatel@766 86 * will be added
duke@1 87 */
bpatel@766 88 public abstract void addPackageDescription(Content packageContentTree);
duke@1 89
duke@1 90 /**
bpatel@766 91 * Adds the tag information from the "packages.html" file to the documentation
bpatel@766 92 * tree.
bpatel@766 93 *
bpatel@766 94 * @param packageContentTree the content tree to which the package tags will
bpatel@766 95 * be added
duke@1 96 */
bpatel@766 97 public abstract void addPackageTags(Content packageContentTree);
duke@1 98
duke@1 99 /**
bpatel@766 100 * Adds the footer to the documentation tree.
bpatel@766 101 *
bpatel@766 102 * @param contentTree the tree to which the footer will be added
duke@1 103 */
bpatel@766 104 public abstract void addPackageFooter(Content contentTree);
duke@1 105
duke@1 106 /**
bpatel@766 107 * Print the package summary document.
duke@1 108 *
bpatel@766 109 * @param contentTree the content tree that will be printed
duke@1 110 */
jjg@1364 111 public abstract void printDocument(Content contentTree) throws IOException;
duke@1 112
duke@1 113 /**
duke@1 114 * Close the writer.
duke@1 115 */
duke@1 116 public abstract void close() throws IOException;
duke@1 117
duke@1 118 }

mercurial