|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.Configuration
com.sun.tools.doclets.formats.html.ConfigurationImpl
public class ConfigurationImpl
Configure the output based on the command line options.
Also determine the length of the command line option. For example, for a option "-header" there will be a string argument associated, then the the length of option "-header" is two. But for option "-nohelp" no argument is needed so it's length is 1.
Also do the error checking on the options used. For example it is illegal to use "-helpfile" option when already "-nohelp" option is used.
| Field Summary | |
|---|---|
java.lang.String |
bottom
Argument for command line option "-bottom". |
static java.lang.String |
BUILD_DATE
The build date. |
boolean |
classuse
True if command line option "-use" is used. |
static java.lang.String |
CONSTANTS_FILE_NAME
The name of the constant values file. |
boolean |
createindex
False if command line option "-noindex" is used. |
boolean |
createoverview
This is true if option "-overview" is used or option "-overview" is not used and number of packages is more than one. |
boolean |
createtree
False if command line option "-notree" is used. |
ClassDoc |
currentcd
The classdoc for the class file getting generated. |
java.lang.String |
doctitle
Argument for command line option "-doctitle". |
java.lang.String |
footer
Argument for command line option "-footer". |
java.lang.String |
header
Argument for command line option "-header". |
java.lang.String |
helpfile
Argument for command line option "-helpfile". |
private static ConfigurationImpl |
instance
|
boolean |
nodeprecatedlist
True if command line option "-nodeprecated" is used. |
boolean |
nohelp
True if command line option "-nohelp" is used. |
boolean |
nonavbar
True if command line option "-nonavbar" is used. |
private boolean |
nooverview
True if command line option "-nooverview" is used. |
boolean |
overview
True if command line option "-overview" is used. |
java.lang.String |
packagesheader
Argument for command line option "-packagesheader". |
boolean |
splitindex
True if command line option "-splitindex" is used. |
MessageRetriever |
standardmessage
Unique Resource Handler for this package. |
java.lang.String |
stylesheetfile
Argument for command line option "-stylesheetfile". |
java.lang.String |
top
Argument for command line option "-top". |
java.lang.String |
topFile
First file to appear in the right-hand frame in the generated documentation. |
java.lang.String |
windowtitle
Argument for command line option "-windowtitle". |
| Fields inherited from class com.sun.tools.doclets.internal.toolkit.Configuration |
|---|
builderFactory, builderXMLPath, charset, classDocCatalog, copydocfilesubdirs, destDirName, docencoding, docFileDestDirName, encoding, excludedDocFileDirs, excludedQualifiers, extern, group, keywords, linksource, message, metakeywords, nocomment, nodeprecated, nosince, notimestamp, packages, root, serialwarn, showauthor, showversion, sourcepath, sourcetab, tagletManager, tagletpath |
| Constructor Summary | |
|---|---|
private |
ConfigurationImpl()
Constructor. |
| Method Summary | |
|---|---|
protected boolean |
checkForDeprecation(RootDoc root)
|
java.lang.String |
getDocletSpecificBuildDate()
Return the build date for the doclet. |
MessageRetriever |
getDocletSpecificMsg()
Return the doclet specific MessageRetriever |
static ConfigurationImpl |
getInstance()
|
java.util.Locale |
getLocale()
Return the Locale for this document. |
java.util.Comparator<ProgramElementDoc> |
getMemberComparator()
Return the comparator that will be used to sort member documentation. |
protected ClassDoc |
getValidClass(ClassDoc[] classarr)
|
WriterFactory |
getWriterFactory()
Return the doclet specific instance of a writer factory. |
int |
optionLength(java.lang.String option)
Returns the "length" of a given option. |
static void |
reset()
Reset to a fresh new ConfigurationImpl, to allow multiple invocations of javadoc within a single VM. |
protected void |
setCreateOverview()
Generate "overview.html" page if option "-overview" is used or number of packages is more than one. |
void |
setSpecificDocletOptions(java.lang.String[][] options)
Depending upon the command line options provided by the user, set configure the output generation environment. |
protected void |
setTopFile(RootDoc root)
Decide the page which will appear first in the right-hand frame. |
boolean |
validOptions(java.lang.String[][] options,
DocErrorReporter reporter)
Perform error checking on the given options. |
| Methods inherited from class com.sun.tools.doclets.internal.toolkit.Configuration |
|---|
generalValidOptions, getBuilderFactory, getBuilderXML, getClassName, getText, getText, getText, getText, isGeneratedDoc, setOptions, setOptions, shouldExcludeDocFileDir, shouldExcludeQualifier |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static ConfigurationImpl instance
public static final java.lang.String BUILD_DATE
public static final java.lang.String CONSTANTS_FILE_NAME
public java.lang.String header
public java.lang.String packagesheader
public java.lang.String footer
public java.lang.String doctitle
public java.lang.String windowtitle
public java.lang.String top
public java.lang.String bottom
public java.lang.String helpfile
public java.lang.String stylesheetfile
public boolean nohelp
public boolean splitindex
public boolean createindex
public boolean classuse
public boolean createtree
public boolean nodeprecatedlist
public boolean nonavbar
private boolean nooverview
public boolean overview
public boolean createoverview
public final MessageRetriever standardmessage
public java.lang.String topFile
public ClassDoc currentcd
| Constructor Detail |
|---|
private ConfigurationImpl()
com.sun.tools.doclets.MessageRetriever.
| Method Detail |
|---|
public static void reset()
public static ConfigurationImpl getInstance()
public java.lang.String getDocletSpecificBuildDate()
getDocletSpecificBuildDate in class Configurationpublic void setSpecificDocletOptions(java.lang.String[][] options)
setSpecificDocletOptions in class Configurationoptions - The array of option names and values.public int optionLength(java.lang.String option)
validOptions(String[][], DocErrorReporter) to
validate them.
Note:
optionLength in class Configurationoption - Command line option under consideration.
public boolean validOptions(java.lang.String[][] options,
DocErrorReporter reporter)
validOptions in class Configurationoptions - the given options to check.reporter - the reporter used to report errors.public MessageRetriever getDocletSpecificMsg()
MessageRetriever
getDocletSpecificMsg in class Configurationprotected void setTopFile(RootDoc root)
root - Root of the program structure.protected ClassDoc getValidClass(ClassDoc[] classarr)
protected boolean checkForDeprecation(RootDoc root)
protected void setCreateOverview()
createoverview field to true.
public WriterFactory getWriterFactory()
getWriterFactory in class ConfigurationWriterFactory for the doclet.public java.util.Comparator<ProgramElementDoc> getMemberComparator()
getMemberComparator in class ConfigurationComparator used to sort members.public java.util.Locale getLocale()
getLocale in class Configuration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||