コード例 #1
0
 /**
  * Constructor to construct ProfilePackageWriter object and to generate
  * "profilename-package-summary.html" file in the respective package directory. For example for
  * profile compact1 and package "java.lang" this will generate file
  * "compact1-package-summary.html" file in the "java/lang" directory. It will also create
  * "java/lang" directory in the current or the destination directory if it doesn't exist.
  *
  * @param configuration the configuration of the doclet.
  * @param packageDoc PackageDoc under consideration.
  * @param prev Previous package in the sorted array.
  * @param next Next package in the sorted array.
  * @param profile The profile being documented.
  */
 public ProfilePackageWriterImpl(
     ConfigurationImpl configuration,
     PackageDoc packageDoc,
     PackageDoc prev,
     PackageDoc next,
     Profile profile)
     throws IOException {
   super(
       configuration,
       DocPath.forPackage(packageDoc).resolve(DocPaths.profilePackageSummary(profile.name)));
   this.prev = prev;
   this.next = next;
   this.packageDoc = packageDoc;
   this.profileName = profile.name;
   this.profileValue = profile.value;
 }
コード例 #2
0
 /**
  * Get "NEXT PACKAGE" link in the navigation bar.
  *
  * @return a content tree for the next link
  */
 public Content getNavLinkNext() {
   Content li;
   if (next == null) {
     li = HtmlTree.LI(nextpackageLabel);
   } else {
     DocPath path = DocPath.relativePath(packageDoc, next);
     li =
         HtmlTree.LI(
             getHyperLink(
                 path.resolve(DocPaths.profilePackageSummary(profileName)),
                 nextpackageLabel,
                 "",
                 ""));
   }
   return li;
 }