
org.jdrupes.mdoclet.internal.doclets.toolkit.PackageSummaryWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doclet Show documentation
Show all versions of doclet Show documentation
A doclet for processing javadoc comments written with Markup
/*
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.jdrupes.mdoclet.internal.doclets.toolkit;
import java.util.List;
import java.util.SortedSet;
import javax.lang.model.element.PackageElement;
import javax.lang.model.element.TypeElement;
import org.jdrupes.mdoclet.internal.doclets.toolkit.util.DocFileIOException;
/**
* The interface for writing package summary output.
*/
public interface PackageSummaryWriter {
/**
* Get the header for the summary.
*
* @return the header to be added to the content
*/
Content getPackageHeader();
/**
* Get the header for the package content.
*
* @return the package content header
*/
Content getContentHeader();
/**
* Get the header for the package summary.
*
* @return the package summary header
*/
Content getSummariesList();
/**
* Adds the table of related packages to the documentation.
*
* @param summaryContent the content to which the summaries will be added
*/
void addRelatedPackagesSummary(Content summaryContent);
/**
* Adds the table of all classes and interfaces to the documentation.
*
* @param summaryContent the content to which the summaries will be added
*/
void addAllClassesAndInterfacesSummary(Content summaryContent);
/**
* Adds the package description from the "packages.html" file to the documentation.
*
* @param packageContent the content to which the package description
* will be added
*/
void addPackageDescription(Content packageContent);
/**
* Adds the tag information from the "packages.html" file to the documentation.
*
* @param packageContent the content to which the package tags will
* be added
*/
void addPackageTags(Content packageContent);
/**
* Adds the package signature.
*
* @param packageContent the content to which the package signature
* will be added
*/
void addPackageSignature(Content packageContent);
/**
* Adds the tag information from the "packages.html" or "package-info.java" file to the
* documentation.
*
* @param packageContent the package content to be added
*/
void addPackageContent(Content packageContent);
/**
* Adds the footer to the documentation.
*/
void addPackageFooter();
/**
* Print the package summary document.
*
* @param content the content that will be printed
* @throws DocFileIOException if there is a problem while writing the document
*/
void printDocument(Content content) throws DocFileIOException;
/**
* Gets the package summary.
* @param summaryContent the content representing the package summary
* @return the package summary
*/
Content getPackageSummary(Content summaryContent);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy