Class ConfigurationImpl
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Configuration
-
- gw.gosudoc.com.sun.tools.doclets.formats.html.ConfigurationImpl
-
@Deprecated public class ConfigurationImpl extends Configuration
Deprecated.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.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Configuration
Configuration.Fault
-
-
Field Summary
Fields Modifier and Type Field Description private booleanallowScriptInCommentsDeprecated.Whether or not to check for JavaScript in doc comments.java.lang.StringbottomDeprecated.Argument for command line option "-bottom".static java.lang.StringBUILD_DATEDeprecated.The build date.booleanclassuseDeprecated.True if command line option "-use" is used.booleancreateindexDeprecated.False if command line option "-noindex" is used.booleancreateoverviewDeprecated.This is true if option "-overview" is used or option "-overview" is not used and number of packages is more than one.booleancreatetreeDeprecated.False if command line option "-notree" is used.ClassDoccurrentcdDeprecated.The classdoc for the class file getting generated.java.util.Set<java.lang.String>doclintOptsDeprecated.Collected set of doclint optionsjava.lang.StringdocrootparentDeprecated.Argument for command line option "-Xdocrootparent".java.lang.StringdoctitleDeprecated.Argument for command line option "-doctitle".private javax.tools.JavaFileManagerfileManagerDeprecated.java.lang.StringfooterDeprecated.Argument for command line option "-footer".java.lang.StringheaderDeprecated.Argument for command line option "-header".java.lang.StringhelpfileDeprecated.Argument for command line option "-helpfile".HtmlVersionhtmlVersionDeprecated.This is the HTML version of the generated pages.protected java.util.List<SearchIndexItem>memberSearchIndexDeprecated.booleannodeprecatedlistDeprecated.True if command line option "-nodeprecated" is used.booleannohelpDeprecated.True if command line option "-nohelp" is used.booleannonavbarDeprecated.True if command line option "-nonavbar" is used.private booleannooverviewDeprecated.True if command line option "-nooverview" is used.booleanoverviewDeprecated.True if command line option "-overview" is used.protected java.util.List<SearchIndexItem>packageSearchIndexDeprecated.java.lang.StringpackagesheaderDeprecated.Argument for command line option "-packagesheader".booleansplitindexDeprecated.True if command line option "-splitindex" is used.MessageRetrieverstandardmessageDeprecated.Unique Resource Handler for this package.java.lang.StringstylesheetfileDeprecated.Argument for command line option "-stylesheetfile".protected java.util.List<SearchIndexItem>tagSearchIndexDeprecated.protected java.util.Set<java.lang.Character>tagSearchIndexKeysDeprecated.protected java.util.Map<java.lang.Character,java.util.List<SearchIndexItem>>tagSearchIndexMapDeprecated.java.lang.StringtopDeprecated.Argument for command line option "-top".DocPathtopFileDeprecated.First file to appear in the right-hand frame in the generated documentation.protected java.util.List<SearchIndexItem>typeSearchIndexDeprecated.private java.util.ResourceBundleversionRBDeprecated.private java.lang.StringversionRBNameDeprecated.java.lang.StringwindowtitleDeprecated.Argument for command line option "-windowtitle".-
Fields inherited from class gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Configuration
builderFactory, builderXMLPath, charset, classDocCatalog, copydocfilesubdirs, destDirName, docencoding, docFileDestDirName, encoding, excludedDocFileDirs, excludedQualifiers, exportInternalAPI, extern, group, javafx, keywords, linksource, message, metakeywords, nocomment, nodeprecated, nosince, notimestamp, packages, root, serialwarn, showauthor, showversion, sourcetab, tabSpaces, tagletManager, tagletpath, utils
-
-
Constructor Summary
Constructors Constructor Description ConfigurationImpl()Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanallowTag(HtmlTag htmlTag)Deprecated.Return true if the tag is allowed for this specific version of HTML.protected voidbuildSearchTagIndex()Deprecated.protected booleancheckForDeprecation(RootDoc root)Deprecated.private voidcheckJavaScript(JavaScriptScanner jss, java.lang.String opt, java.lang.String value)Deprecated.java.lang.StringgetDocletSpecificBuildDate()Deprecated.Return the build date for the doclet.MessageRetrievergetDocletSpecificMsg()Deprecated.Return the doclet specificMessageRetrieverjavax.tools.JavaFileManagergetFileManager()Deprecated.Return the current file manager.java.util.LocalegetLocale()Deprecated.Return the Locale for this document.javax.tools.JavaFileManager.LocationgetLocationForPackage(PackageDoc pd)Deprecated.java.util.Comparator<ProgramElementDoc>getMemberComparator()Deprecated.Return the comparator that will be used to sort member documentation.protected ClassDocgetValidClass(ClassDoc[] classarr)Deprecated.WriterFactorygetWriterFactory()Deprecated.Return the doclet specific instance of a writer factory.booleanisAllowScriptInComments()Deprecated.Returns whether or not to allow JavaScript in comments.booleanisOutputHtml5()Deprecated.Return true if the generated output is HTML5.ContentnewContent()Deprecated.intoptionLength(java.lang.String option)Deprecated.Returns the "length" of a given option.protected voidsetCreateOverview()Deprecated.Generate "overview.html" page if option "-overview" is used or number of packages is more than one.voidsetSpecificDocletOptions(java.lang.String[][] options)Deprecated.Depending upon the command line options provided by the user, set configure the output generation environment.protected voidsetTopFile(RootDoc root)Deprecated.Decide the page which will appear first in the right-hand frame.booleanshowMessage(SourcePosition pos, java.lang.String key)Deprecated.booleanvalidOptions(java.lang.String[][] options, DocErrorReporter reporter)Deprecated.Perform error checking on the given options.-
Methods inherited from class gw.gosudoc.com.sun.tools.doclets.internal.toolkit.Configuration
addTrailingFileSep, generalValidOptions, getBuilderFactory, getBuilderXML, getClassName, getResource, getResource, getResource, getResource, getText, getText, getText, getText, isGeneratedDoc, setOptions, setOptions, shouldExcludeDocFileDir, shouldExcludeQualifier
-
-
-
-
Field Detail
-
BUILD_DATE
public static final java.lang.String BUILD_DATE
Deprecated.The build date. Note: For now, we will use a version number instead of a date.
-
header
public java.lang.String header
Deprecated.Argument for command line option "-header".
-
packagesheader
public java.lang.String packagesheader
Deprecated.Argument for command line option "-packagesheader".
-
footer
public java.lang.String footer
Deprecated.Argument for command line option "-footer".
-
doctitle
public java.lang.String doctitle
Deprecated.Argument for command line option "-doctitle".
-
windowtitle
public java.lang.String windowtitle
Deprecated.Argument for command line option "-windowtitle".
-
top
public java.lang.String top
Deprecated.Argument for command line option "-top".
-
bottom
public java.lang.String bottom
Deprecated.Argument for command line option "-bottom".
-
helpfile
public java.lang.String helpfile
Deprecated.Argument for command line option "-helpfile".
-
stylesheetfile
public java.lang.String stylesheetfile
Deprecated.Argument for command line option "-stylesheetfile".
-
docrootparent
public java.lang.String docrootparent
Deprecated.Argument for command line option "-Xdocrootparent".
-
nohelp
public boolean nohelp
Deprecated.True if command line option "-nohelp" is used. Default value is false.
-
splitindex
public boolean splitindex
Deprecated.True if command line option "-splitindex" is used. Default value is false.
-
createindex
public boolean createindex
Deprecated.False if command line option "-noindex" is used. Default value is true.
-
classuse
public boolean classuse
Deprecated.True if command line option "-use" is used. Default value is false.
-
createtree
public boolean createtree
Deprecated.False if command line option "-notree" is used. Default value is true.
-
nodeprecatedlist
public boolean nodeprecatedlist
Deprecated.True if command line option "-nodeprecated" is used. Default value is false.
-
nonavbar
public boolean nonavbar
Deprecated.True if command line option "-nonavbar" is used. Default value is false.
-
nooverview
private boolean nooverview
Deprecated.True if command line option "-nooverview" is used. Default value is false
-
overview
public boolean overview
Deprecated.True if command line option "-overview" is used. Default value is false.
-
createoverview
public boolean createoverview
Deprecated.This is true if option "-overview" is used or option "-overview" is not used and number of packages is more than one.
-
htmlVersion
public HtmlVersion htmlVersion
Deprecated.This is the HTML version of the generated pages. HTML 4.01 is the default output version.
-
doclintOpts
public java.util.Set<java.lang.String> doclintOpts
Deprecated.Collected set of doclint options
-
allowScriptInComments
private boolean allowScriptInComments
Deprecated.Whether or not to check for JavaScript in doc comments.
-
standardmessage
public final MessageRetriever standardmessage
Deprecated.Unique Resource Handler for this package.
-
topFile
public DocPath topFile
Deprecated.First file to appear in the right-hand frame in the generated documentation.
-
currentcd
public ClassDoc currentcd
Deprecated.The classdoc for the class file getting generated.
-
memberSearchIndex
protected java.util.List<SearchIndexItem> memberSearchIndex
Deprecated.
-
packageSearchIndex
protected java.util.List<SearchIndexItem> packageSearchIndex
Deprecated.
-
tagSearchIndex
protected java.util.List<SearchIndexItem> tagSearchIndex
Deprecated.
-
typeSearchIndex
protected java.util.List<SearchIndexItem> typeSearchIndex
Deprecated.
-
tagSearchIndexMap
protected java.util.Map<java.lang.Character,java.util.List<SearchIndexItem>> tagSearchIndexMap
Deprecated.
-
tagSearchIndexKeys
protected java.util.Set<java.lang.Character> tagSearchIndexKeys
Deprecated.
-
versionRBName
private final java.lang.String versionRBName
Deprecated.- See Also:
- Constant Field Values
-
versionRB
private java.util.ResourceBundle versionRB
Deprecated.
-
fileManager
private javax.tools.JavaFileManager fileManager
Deprecated.
-
-
Constructor Detail
-
ConfigurationImpl
public ConfigurationImpl()
Deprecated.Constructor. Initializes resource for theMessageRetriever.
-
-
Method Detail
-
getDocletSpecificBuildDate
public java.lang.String getDocletSpecificBuildDate()
Deprecated.Return the build date for the doclet.- Specified by:
getDocletSpecificBuildDatein classConfiguration
-
setSpecificDocletOptions
public void setSpecificDocletOptions(java.lang.String[][] options)
Deprecated.Depending upon the command line options provided by the user, set configure the output generation environment.- Specified by:
setSpecificDocletOptionsin classConfiguration- Parameters:
options- The array of option names and values.
-
checkJavaScript
private void checkJavaScript(JavaScriptScanner jss, java.lang.String opt, java.lang.String value)
Deprecated.
-
optionLength
public int optionLength(java.lang.String option)
Deprecated.Returns the "length" of a given option. If an option takes no arguments, its length is one. If it takes one argument, it's length is two, and so on. This method is called by JavaDoc to parse the options it does not recognize. It then callsvalidOptions(String[][], gw.gosudoc.com.sun.javadoc.DocErrorReporter)to validate them. Note:
The options arrive as case-sensitive strings. For options that are not case-sensitive, use toLowerCase() on the option string before comparing it.- Overrides:
optionLengthin classConfiguration- Parameters:
option- Command line option under consideration.- Returns:
- number of arguments + 1 for a option. Zero return means option not known. Negative value means error occurred.
-
validOptions
public boolean validOptions(java.lang.String[][] options, DocErrorReporter reporter)Deprecated.Perform error checking on the given options.- Specified by:
validOptionsin classConfiguration- Parameters:
options- the given options to check.reporter- the reporter used to report errors.
-
isOutputHtml5
public boolean isOutputHtml5()
Deprecated.Return true if the generated output is HTML5.
-
allowTag
public boolean allowTag(HtmlTag htmlTag)
Deprecated.Return true if the tag is allowed for this specific version of HTML.
-
getDocletSpecificMsg
public MessageRetriever getDocletSpecificMsg()
Deprecated.Return the doclet specificMessageRetriever- Specified by:
getDocletSpecificMsgin classConfiguration- Returns:
- the doclet specific MessageRetriever.
-
setTopFile
protected void setTopFile(RootDoc root)
Deprecated.Decide the page which will appear first in the right-hand frame. It will be "overview-summary.html" if "-overview" option is used or no "-overview" but the number of packages is more than one. It will be "package-summary.html" of the respective package if there is only one package to document. It will be a class page(first in the sorted order), if only classes are provided on the command line.- Parameters:
root- Root of the program structure.
-
checkForDeprecation
protected boolean checkForDeprecation(RootDoc root)
Deprecated.
-
setCreateOverview
protected void setCreateOverview()
Deprecated.Generate "overview.html" page if option "-overview" is used or number of packages is more than one. Setscreateoverviewfield to true.
-
getWriterFactory
public WriterFactory getWriterFactory()
Deprecated.Return the doclet specific instance of a writer factory.- Specified by:
getWriterFactoryin classConfiguration- Returns:
- the
WriterFactoryfor the doclet.
-
getMemberComparator
public java.util.Comparator<ProgramElementDoc> getMemberComparator()
Deprecated.Return the comparator that will be used to sort member documentation. To no do any sorting, return null.- Specified by:
getMemberComparatorin classConfiguration- Returns:
- the
Comparatorused to sort members.
-
getLocale
public java.util.Locale getLocale()
Deprecated.Return the Locale for this document.- Specified by:
getLocalein classConfiguration
-
getFileManager
public javax.tools.JavaFileManager getFileManager()
Deprecated.Return the current file manager.- Specified by:
getFileManagerin classConfiguration
-
showMessage
public boolean showMessage(SourcePosition pos, java.lang.String key)
Deprecated.- Specified by:
showMessagein classConfiguration
-
newContent
public Content newContent()
Deprecated.- Specified by:
newContentin classConfiguration
-
getLocationForPackage
public javax.tools.JavaFileManager.Location getLocationForPackage(PackageDoc pd)
Deprecated.- Specified by:
getLocationForPackagein classConfiguration
-
buildSearchTagIndex
protected void buildSearchTagIndex()
Deprecated.
-
isAllowScriptInComments
public boolean isAllowScriptInComments()
Deprecated.Returns whether or not to allow JavaScript in comments. Default is off; can be set true from a command line option.- Returns:
- the allowScriptInComments
-
-