|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.Configuration
public abstract class Configuration
Configure the output based on the options. Doclets should sub-class Configuration, to configure and add their own options. This class contains all user options which are supported by the 1.1 doclet and the standard doclet. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
Field Summary | |
---|---|
protected BuilderFactory |
builderFactory
The factory for builders. |
java.lang.String |
builderXMLPath
The path to the builder XML input file. |
java.lang.String |
charset
The META charset tag used for cross-platform viewing. |
ClassDocCatalog |
classDocCatalog
The catalog of classes specified on the command-line |
boolean |
copydocfilesubdirs
True if we should recursively copy the doc-file subdirectories |
private static java.lang.String |
DEFAULT_BUILDER_XML
The default path to the builder XML. |
java.lang.String |
destDirName
Destination directory name, in which doclet will generate the entire documentation. |
java.lang.String |
docencoding
Encoding for this document. |
java.lang.String |
docFileDestDirName
Destination directory name, in which doclet will copy the doc-files to. |
java.lang.String |
encoding
Encoding for this document. |
protected java.util.Set<java.lang.String> |
excludedDocFileDirs
The list of doc-file subdirectories to exclude |
protected java.util.Set<java.lang.String> |
excludedQualifiers
The list of qualifiers to exclude |
Extern |
extern
The tracker of external package links. |
Group |
group
The package grouping instance. |
boolean |
keywords
True if user wants to add member names as meta keywords. |
boolean |
linksource
True if we should generate browsable sources. |
MessageRetriever |
message
Message Retriever for the doclet, to retrieve message from the resource file for this Configuration, which is common for 1.1 and standard doclets. |
MetaKeywords |
metakeywords
The meta tag keywords instance. |
boolean |
nocomment
True if user wants to suppress descriptions and tags. |
boolean |
nodeprecated
Don't generate deprecated API information at all, if -nodeprecated option is used. |
boolean |
nosince
True if command line option "-nosince" is used. |
boolean |
notimestamp
True if user wants to suppress time stamp in output. |
PackageDoc[] |
packages
An array of the packages specified on the command-line merged with the array of packages that contain the classes specified on the command-line. |
RootDoc |
root
The Root of the generated Program Structure from the Doclet API. |
boolean |
serialwarn
This is true if option "-serialwarn" is used. |
boolean |
showauthor
Generate author specific information for all the classes if @author tag is used in the doc comment and if -author option is used. |
boolean |
showversion
Generate version specific information for the all the classes if @version tag is used in the doc comment and if -version option is used. |
java.lang.String |
sourcepath
Sourcepath from where to read the source files. |
int |
sourcetab
The specified amount of space between tab stops. |
TagletManager |
tagletManager
The taglet manager. |
java.lang.String |
tagletpath
The path to Taglets |
Constructor Summary | |
---|---|
Configuration()
Constructor. |
Method Summary | |
---|---|
private void |
addToSet(java.util.Set<java.lang.String> s,
java.lang.String str)
|
(package private) java.lang.String |
addTrailingFileSep(java.lang.String path)
Add a traliling file separator, if not found or strip off extra trailing file separators if any. |
private boolean |
checkOutputFileEncoding(java.lang.String docencoding,
DocErrorReporter reporter)
Check the validity of the given Source or Output File encoding on this platform. |
boolean |
generalValidOptions(java.lang.String[][] options,
DocErrorReporter reporter)
This checks for the validity of the options used by the user. |
BuilderFactory |
getBuilderFactory()
Return the builder factory for this doclet. |
java.io.InputStream |
getBuilderXML()
Return the input stream to the builder XML. |
java.lang.String |
getClassName(ClassDoc cd)
Return the qualified name of the ClassDoc if it's qualifier is not excluded. |
abstract java.lang.String |
getDocletSpecificBuildDate()
Return the build date for the doclet. |
abstract MessageRetriever |
getDocletSpecificMsg()
Return the doclet specific MessageRetriever |
abstract java.util.Locale |
getLocale()
Return the Locale for this document. |
abstract java.util.Comparator<ProgramElementDoc> |
getMemberComparator()
Return the comparator that will be used to sort member documentation. |
java.lang.String |
getText(java.lang.String key)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String a1)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String a1,
java.lang.String a2)
|
java.lang.String |
getText(java.lang.String key,
java.lang.String a1,
java.lang.String a2,
java.lang.String a3)
|
abstract WriterFactory |
getWriterFactory()
Return the doclet specific instance of a writer factory. |
private void |
initPackageArray()
|
private void |
initTagletManager(java.util.Set<java.lang.String[]> customTagStrs)
Initialize the taglet manager. |
boolean |
isGeneratedDoc(Doc doc)
Return true if the doc element is getting documented, depending upon -nodeprecated option and @deprecated tag used. |
int |
optionLength(java.lang.String option)
This method should be defined in all those doclets which want to inherit from this Configuration. |
void |
setOptions()
Set the command line options supported by this configuration. |
void |
setOptions(java.lang.String[][] options)
Set the command line options supported by this configuration. |
abstract void |
setSpecificDocletOptions(java.lang.String[][] options)
This method should be defined in all those doclets(configurations), which want to derive themselves from this Configuration. |
boolean |
shouldExcludeDocFileDir(java.lang.String docfilesubdir)
Return true if the given doc-file subdirectory should be excluded and false otherwise. |
boolean |
shouldExcludeQualifier(java.lang.String qualifier)
Return true if the given qualifier should be excluded and false otherwise. |
abstract boolean |
validOptions(java.lang.String[][] options,
DocErrorReporter reporter)
Perform error checking on the given options. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BuilderFactory builderFactory
public TagletManager tagletManager
public java.lang.String builderXMLPath
private static final java.lang.String DEFAULT_BUILDER_XML
public java.lang.String tagletpath
public boolean serialwarn
public int sourcetab
public boolean linksource
public boolean nosince
public boolean copydocfilesubdirs
public java.lang.String charset
public boolean keywords
public final MetaKeywords metakeywords
protected java.util.Set<java.lang.String> excludedDocFileDirs
protected java.util.Set<java.lang.String> excludedQualifiers
public RootDoc root
public java.lang.String destDirName
public java.lang.String docFileDestDirName
public java.lang.String docencoding
public boolean nocomment
public java.lang.String encoding
public boolean showauthor
showauthor
is set to true if -author option is used.
Default is don't show author information.
public boolean showversion
showversion
is set to true if -version option is
used.Default is don't show version information.
public java.lang.String sourcepath
public boolean nodeprecated
nodepracted
is set to true if
-nodeprecated option is used. Default is generate deprected API
information.
public ClassDocCatalog classDocCatalog
public MessageRetriever message
public boolean notimestamp
public final Group group
public final Extern extern
public PackageDoc[] packages
Constructor Detail |
---|
public Configuration()
Method Detail |
---|
public abstract java.lang.String getDocletSpecificBuildDate()
public abstract void setSpecificDocletOptions(java.lang.String[][] options)
options
- The array of option names and values.
DocletAbortException
public abstract MessageRetriever getDocletSpecificMsg()
MessageRetriever
public BuilderFactory getBuilderFactory()
public int optionLength(java.lang.String option)
option
- Command line option under consideration.
public abstract boolean validOptions(java.lang.String[][] options, DocErrorReporter reporter)
options
- the given options to check.reporter
- the reporter used to report errors.private void initPackageArray()
public void setOptions(java.lang.String[][] options)
options
- the two dimensional array of options.public void setOptions()
DocletAbortException
private void initTagletManager(java.util.Set<java.lang.String[]> customTagStrs)
customTagStrs
- the set two dimentional arrays of strings. These arrays contain
either -tag or -taglet arguments.private void addToSet(java.util.Set<java.lang.String> s, java.lang.String str)
java.lang.String addTrailingFileSep(java.lang.String path)
path
- Path under consideration.
public boolean generalValidOptions(java.lang.String[][] options, DocErrorReporter reporter)
Doclet.validOptions(String[][],
DocErrorReporter)
. This will validate the options which are shared
by our doclets. For example, this method will flag an error using
the DocErrorReporter if user has used "-nohelp" and "-helpfile" option
together.
options
- options used on the command line.reporter
- used to report errors.
private boolean checkOutputFileEncoding(java.lang.String docencoding, DocErrorReporter reporter)
docencoding
- output file encoding.reporter
- used to report errors.public boolean shouldExcludeDocFileDir(java.lang.String docfilesubdir)
docfilesubdir
- the doc-files subdirectory to check.public boolean shouldExcludeQualifier(java.lang.String qualifier)
qualifier
- the qualifier to check.public java.lang.String getClassName(ClassDoc cd)
ClassDoc
if it's qualifier is not excluded. Otherwise,
return the unqualified ClassDoc
name.
cd
- the ClassDoc
to check.public java.lang.String getText(java.lang.String key)
public java.lang.String getText(java.lang.String key, java.lang.String a1)
public java.lang.String getText(java.lang.String key, java.lang.String a1, java.lang.String a2)
public java.lang.String getText(java.lang.String key, java.lang.String a1, java.lang.String a2, java.lang.String a3)
public boolean isGeneratedDoc(Doc doc)
public abstract WriterFactory getWriterFactory()
WriterFactory
for the doclet.public java.io.InputStream getBuilderXML() throws java.io.FileNotFoundException
java.io.FileNotFoundException
- when the given XML file cannot be found.public abstract java.util.Locale getLocale()
public abstract java.util.Comparator<ProgramElementDoc> getMemberComparator()
Comparator
used to sort members.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |