Package org.apache.maven.jxr
Class DirectoryIndexer
java.lang.Object
org.apache.maven.jxr.DirectoryIndexer
This class creates the navigational pages for jxr's cross-referenced source
files. The navigation is inspired by javadoc, so it should have a familiar feel.
Creates the following files:
index.htmlmain index containing the framesetoverview-frame.htmllist of the project's packages (top left)allclasses-frame.htmllist of all classes in the project (bottom left)overview-summary.htmltop-level listing of the project's packages (main frame)-
Package specific:
package-summary.htmllisting of all classes in this package (main frame)package-frame.htmllisting of all classes in this package (bottom left)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHolds class informationstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryIndexer(PackageManager packageManager, String root) Constructor for the DirectoryIndexer object -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoVelocity(String templateName, String outDir, org.apache.velocity.VelocityContext context, org.apache.velocity.app.VelocityEngine engine) Gets the footer for the navigation pages.Gets the major page heading.Gets the output encoding.(package private) DirectoryIndexer.ProjectInfoGets the template directory.Gets the window title.voidprocess()Does the actual indexing.voidBottom is a footer for the navigation pages, usually a copyright.
See the javadoc documentation for the property of the same name.voidsetDocTitle(String docTitle) docTitleis used as a page heading for the summary files.
See the javadoc documentation for the property of the same namevoidsetOutputEncoding(String outputEncoding) OutputEncoding is the encoding of output files.private voidsetProperties(org.apache.velocity.app.VelocityEngine engine) voidsetTemplateDir(String templateDir) templateDiris the location of the jelly template files used to generate the navigation pages.voidsetWindowTitle(String windowTitle) windowTitleis used in the output's <title> tags see the javadoc documentation for the property of the same name
-
Field Details
-
INDEX
- See Also:
-
root
-
packageManager
-
outputEncoding
-
templateDir
-
windowTitle
-
docTitle
-
bottom
-
-
Constructor Details
-
DirectoryIndexer
Constructor for the DirectoryIndexer object- Parameters:
packageManager- PackageManager for this projectroot- Path of the root output directory
-
-
Method Details
-
setOutputEncoding
OutputEncoding is the encoding of output files.- Parameters:
outputEncoding- output encoding
-
getOutputEncoding
Gets the output encoding.- Returns:
- output encoding
-
setTemplateDir
templateDiris the location of the jelly template files used to generate the navigation pages.- Parameters:
templateDir- location of the template directory
-
getTemplateDir
Gets the template directory.- Returns:
- location of the template directory
-
setWindowTitle
windowTitleis used in the output's <title> tags see the javadoc documentation for the property of the same name- Parameters:
windowTitle- the <title> attribute
-
getWindowTitle
Gets the window title.- Returns:
- window title
-
setDocTitle
docTitleis used as a page heading for the summary files.
See the javadoc documentation for the property of the same name- Parameters:
docTitle- major page heading
-
getDocTitle
Gets the major page heading.- Returns:
- major page heading
-
setBottom
Bottom is a footer for the navigation pages, usually a copyright.
See the javadoc documentation for the property of the same name.- Parameters:
bottom- page footer
-
getBottom
Gets the footer for the navigation pages.- Returns:
- bottom page footer
-
process
Does the actual indexing.- Throws:
JxrException- If something went wrong
-
setProperties
private void setProperties(org.apache.velocity.app.VelocityEngine engine) -
doVelocity
private void doVelocity(String templateName, String outDir, org.apache.velocity.VelocityContext context, org.apache.velocity.app.VelocityEngine engine) throws JxrException - Throws:
JxrException
-
getProjectInfo
DirectoryIndexer.ProjectInfo getProjectInfo()
-