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

Fri, 17 Jun 2011 20:12:46 -0700

author
bpatel
date
Fri, 17 Jun 2011 20:12:46 -0700
changeset 1033
7eba9df190ae
parent 798
4868a36f6fd8
child 1357
c75be5bc5283
permissions
-rw-r--r--

7052425: Change the look and feel of the javadoc generate HTML pages using stylesheet
Reviewed-by: jjg

duke@1 1 /*
ohair@798 2 * Copyright (c) 2003, 2010, 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
duke@1 28 import java.util.*;
duke@1 29 import java.io.*;
bpatel@766 30 import com.sun.javadoc.*;
duke@1 31
duke@1 32 /**
duke@1 33 * The interface for writing constants summary output.
duke@1 34 *
duke@1 35 * This code is not part of an API.
duke@1 36 * It is implementation that is subject to change.
duke@1 37 * Do not use it as an API
duke@1 38 *
duke@1 39 * @author Jamie Ho
bpatel@766 40 * @author Bhavesh Patel (Modified)
duke@1 41 * @since 1.5
duke@1 42 */
duke@1 43
duke@1 44 public interface ConstantsSummaryWriter {
duke@1 45
duke@1 46 /**
duke@1 47 * Close the writer.
duke@1 48 */
duke@1 49 public abstract void close() throws IOException;
duke@1 50
duke@1 51 /**
bpatel@766 52 * Get the header for the constant summary documentation.
bpatel@766 53 *
bpatel@766 54 * @return header that needs to be added to the documentation
duke@1 55 */
bpatel@766 56 public abstract Content getHeader();
duke@1 57
duke@1 58 /**
bpatel@766 59 * Get the header for the constant content list.
bpatel@766 60 *
bpatel@766 61 * @return content header that needs to be added to the documentation
duke@1 62 */
bpatel@766 63 public abstract Content getContentsHeader();
duke@1 64
duke@1 65 /**
bpatel@766 66 * Adds the given package name link to the constant content list tree.
bpatel@766 67 *
duke@1 68 * @param pkg the {@link PackageDoc} to index.
duke@1 69 * @param parsedPackageName the parsed package name. We only Write the
duke@1 70 * first 2 directory levels of the package
duke@1 71 * name. For example, java.lang.ref would be
duke@1 72 * indexed as java.lang.*.
duke@1 73 * @param WriteedPackageHeaders the set of package headers that have already
duke@1 74 * been indexed. We don't want to index
duke@1 75 * something more than once.
bpatel@766 76 * @param contentListTree the content tree to which the link will be added
duke@1 77 */
bpatel@766 78 public abstract void addLinkToPackageContent(PackageDoc pkg, String parsedPackageName,
bpatel@766 79 Set<String> WriteedPackageHeaders, Content contentListTree);
duke@1 80
duke@1 81 /**
bpatel@766 82 * Get the content list to be added to the documentation tree.
bpatel@766 83 *
bpatel@766 84 * @param contentListTree the content that will be added to the list
bpatel@766 85 * @return content list that will be added to the documentation tree
duke@1 86 */
bpatel@766 87 public abstract Content getContentsList(Content contentListTree);
duke@1 88
duke@1 89 /**
bpatel@766 90 * Get the constant summaries for the document.
bpatel@766 91 *
bpatel@766 92 * @return constant summaries header to be added to the documentation tree
duke@1 93 */
bpatel@766 94 public abstract Content getConstantSummaries();
duke@1 95
duke@1 96 /**
bpatel@766 97 * Adds the given package name.
bpatel@766 98 *
bpatel@766 99 * @param pkg the {@link PackageDoc} to index.
bpatel@766 100 * @param parsedPackageName the parsed package name. We only Write the
bpatel@766 101 * first 2 directory levels of the package
bpatel@766 102 * name. For example, java.lang.ref would be
bpatel@766 103 * indexed as java.lang.*.
bpatel@766 104 * @param summariesTree the documentation tree to which the package name will
bpatel@766 105 * be written
bpatel@766 106 */
bpatel@766 107 public abstract void addPackageName(PackageDoc pkg,
bpatel@766 108 String parsedPackageName, Content summariesTree);
bpatel@766 109
bpatel@766 110 /**
bpatel@766 111 * Get the class summary header for the constants summary.
bpatel@766 112 *
bpatel@766 113 * @return the header content for the class constants summary
bpatel@766 114 */
bpatel@766 115 public abstract Content getClassConstantHeader();
bpatel@766 116
bpatel@766 117 /**
bpatel@766 118 * Adds the constant member table to the documentation tree.
bpatel@766 119 *
duke@1 120 * @param cd the class whose constants are being documented.
duke@1 121 * @param fields the constants being documented.
bpatel@766 122 * @param classConstantTree the documentation tree to which theconstant member
bpatel@766 123 * table content will be added
duke@1 124 */
bpatel@766 125 public abstract void addConstantMembers(ClassDoc cd, List<FieldDoc> fields,
bpatel@766 126 Content classConstantTree);
duke@1 127
duke@1 128 /**
bpatel@766 129 * Adds the footer for the summary documentation.
bpatel@766 130 *
bpatel@766 131 * @param contentTree content tree to which the footer will be added
duke@1 132 */
bpatel@766 133 public abstract void addFooter(Content contentTree);
bpatel@766 134
bpatel@766 135 /**
bpatel@766 136 * Print the constants summary document.
bpatel@766 137 *
bpatel@766 138 * @param contentTree content tree which should be printed
bpatel@766 139 */
bpatel@766 140 public abstract void printDocument(Content contentTree);
duke@1 141
duke@1 142 }

mercurial