本文整理汇总了Java中com.sun.tools.doclets.formats.html.ConfigurationImpl类的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationImpl类的具体用法?Java ConfigurationImpl怎么用?Java ConfigurationImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigurationImpl类属于com.sun.tools.doclets.formats.html包,在下文中一共展示了ConfigurationImpl类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printFramesDocument
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
* Print the frames version of the Html file header.
* Called only when generating an HTML frames file.
*
* @param title Title of this HTML document
* @param configuration the configuration object
* @param body the body content tree to be added to the HTML document
*/
public void printFramesDocument(String title, ConfigurationImpl configuration,
HtmlTree body) throws IOException {
Content htmlDocType = configuration.isOutputHtml5()
? DocType.HTML5
: DocType.TRANSITIONAL;
Content htmlComment = new Comment(configuration.getText("doclet.New_Page"));
Content head = new HtmlTree(HtmlTag.HEAD);
head.addContent(getGeneratedBy(!configuration.notimestamp));
Content windowTitle = HtmlTree.TITLE(new StringContent(title));
head.addContent(windowTitle);
Content meta = HtmlTree.META("Content-Type", CONTENT_TYPE,
(configuration.charset.length() > 0) ?
configuration.charset : HtmlConstants.HTML_DEFAULT_CHARSET);
head.addContent(meta);
head.addContent(getStyleSheetProperties(configuration));
head.addContent(getFramesJavaScript());
Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(),
head, body);
Content htmlDocument = new HtmlDocument(htmlDocType,
htmlComment, htmlTree);
write(htmlDocument);
}
示例2: getStyleSheetProperties
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
* Returns a link to the stylesheet file.
*
* @return an HtmlTree for the lINK tag which provides the stylesheet location
*/
public HtmlTree getStyleSheetProperties(ConfigurationImpl configuration) {
String stylesheetfile = configuration.stylesheetfile;
DocPath stylesheet;
if (stylesheetfile.isEmpty()) {
stylesheet = DocPaths.STYLESHEET;
} else {
DocFile file = DocFile.createFileForInput(configuration, stylesheetfile);
stylesheet = DocPath.create(file.getName());
}
HtmlTree link = HtmlTree.LINK("stylesheet", "text/css",
pathToRoot.resolve(stylesheet).getPath(),
"Style");
return link;
}
示例3: startGeneration3
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
private boolean startGeneration3(RootDoc root) throws Exception {
configuration = ConfigurationImpl.getInstance();
configuration.root = root;
if (root.classes().length == 0) {
configuration.message.
error("doclet.No_Public_Classes_To_Document");
return false;
}
configuration.setOptions();
configuration.getDocletSpecificMsg().notice("doclet.build_version",
configuration.getDocletSpecificBuildDate());
ClassTree classtree = new ClassTree(configuration,
configuration.nodeprecated);
generateClassFiles(root, classtree);
if (configuration.sourcepath != null
&& configuration.sourcepath.length() > 0) {
StringTokenizer pathTokens = new StringTokenizer(configuration.sourcepath,
String.valueOf(File.pathSeparatorChar));
boolean first = true;
while (pathTokens.hasMoreTokens()) {
Util.copyDocFiles(configuration,
pathTokens.nextToken() + File.separator,
DocletConstants.DOC_FILES_DIR_NAME, first);
first = false;
}
}
PackageListWriter.generate(configuration);
generatePackageFiles(classtree);
generateOtherFiles(root, classtree);
configuration.tagletManager.printReport();
return true;
}
示例4: main
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
* The entry point of the test.
* @param args the array of command line arguments.
*/
public static void main(String[] args) {
MetaTag tester = new MetaTag();
Configuration config = ConfigurationImpl.getInstance();
boolean defaultKeywordsSetting = config.keywords;
boolean defaultTimestampSetting = config.notimestamp;
run(tester, ARGS, TEST, NEGATED_TEST);
//Variable needs to be reset because Configuration is a singleton.
config.keywords = defaultKeywordsSetting;
config.notimestamp = defaultTimestampSetting;
run(tester, ARGS_NO_TIMESTAMP_NO_KEYWORDS, TEST2, NEGATED_TEST2);
tester.printSummary();
}
示例5: optionLength
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
public static int optionLength(String option)
{
if (option.equalsIgnoreCase("-navOnly"))
{
return 1;
}
if (option.equalsIgnoreCase("-template"))
{
return 2;
}
// Construct temporary configuration for check
return ConfigurationImpl.getInstance().optionLength(option);
}
示例6: configuration
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
public Configuration configuration()
{
return ConfigurationImpl.getInstance();
}
示例7: validOptions
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
public static boolean validOptions(String options[][],
DocErrorReporter reporter)
{
(ConfigurationImpl.getInstance()).validOptions(options, reporter);
return true;
}
示例8: JOTDocletIndexWriter
import com.sun.tools.doclets.formats.html.ConfigurationImpl; //导入依赖的package包/类
/**
* create the writer
* @param configuration
* @param path
* @param filename
* @param split
*/
public JOTDocletIndexWriter(ConfigurationImpl configuration, HtmlDocletWriter writer)
{
this.docWriter = writer;
this.configuration = configuration;
builder = new IndexBuilder(configuration, false);
}