本文整理汇总了Java中org.apache.maven.doxia.sink.Sink.sectionTitle1方法的典型用法代码示例。如果您正苦于以下问题:Java Sink.sectionTitle1方法的具体用法?Java Sink.sectionTitle1怎么用?Java Sink.sectionTitle1使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.maven.doxia.sink.Sink
的用法示例。
在下文中一共展示了Sink.sectionTitle1方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createReportHeader
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
/**
* Create the header and title for the HTML report page.
*
* @param bundle
* The resource bundle with the text.
* @param sink
* The sink for writing to the main report file.
*/
private void createReportHeader (final ResourceBundle bundle, final Sink sink)
{
sink.head ();
sink.title ();
sink.text (bundle.getString ("report.jjdoc.title"));
sink.title_ ();
sink.head_ ();
sink.body ();
sink.section1 ();
sink.sectionTitle1 ();
sink.text (bundle.getString ("report.jjdoc.title"));
sink.sectionTitle1_ ();
sink.text (bundle.getString ("report.jjdoc.description"));
sink.section1_ ();
sink.lineBreak ();
sink.table ();
sink.tableRow ();
sink.tableHeaderCell ();
sink.text (bundle.getString ("report.jjdoc.table.heading"));
sink.tableHeaderCell_ ();
sink.tableRow_ ();
}
示例2: front
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
/**
* Make a front page.
* @param sink Sink to use
*/
private void front(final Sink sink) {
sink.section1();
sink.sectionTitle1();
sink.text("Requs SRS");
sink.sectionTitle1_();
sink.paragraph();
sink.text("This page contains ");
sink.link(String.format("%s/requs.xml", this.getOutputName()));
sink.text("Software Requirements Specification (SRS)");
sink.link_();
sink.text(" generated by requs compiler.");
sink.paragraph();
sink.text("More information you can get at ");
sink.link("http://www.requs.org");
sink.text("www.requs.org");
sink.link_();
sink.text(".");
sink.paragraph_();
sink.section1_();
}
示例3: startReport
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
protected void startReport(Sink sink, ResourceBundle messages) {
sink.head();
sink.title();
sink.text(messages.getString("report.revapi.title"));
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.rawText(messages.getString("report.revapi.title"));
sink.sectionTitle1_();
}
示例4: heading1
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
private void heading1(final Sink sink, final String heading) {
sink.section1();
sink.sectionTitle1();
sink.text(heading);
sink.sectionTitle1_();
sink.section1_();
}
示例5: executeReport
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
/**
* Be aware of http://maven.apache.org/plugin-developers/common-bugs.html#Determining_the_Output_Directory_for_a_Site_Report
*/
@Override
protected void executeReport(Locale locale) throws MavenReportException {
try {
String[] reports = this.reportsDir.list(HtmlFilter.INSTANCE);
//boolean styleDone = false;
ResourceBundle bundle = getBundle( locale );
Sink sink = this.getSink();
sinkBeginReport(sink, bundle);
sink.sectionTitle1();
sink.text( bundle.getString( "report.fitnesse.name" ) );
sink.sectionTitle1_();
for(String report : reports) {
//String html = html(report);
Document document = Jsoup.parse(new File(this.reportsDir, report), null);
Elements tables = document.getElementsByTag("table");
// Is it a top-level index page?
if(tables.size() == 1 &&
testTdElements(tables.get(0).getElementsByTag("td"), "name", "right", "wrong", "exceptions")) {
Elements hrefs = document.getElementsByTag("a");
for(Element href : hrefs) {
String extant = href.attr("href");
href.attr("href", OUTPUT_NAME + "." + extant);
}
sink.rawText(document.html());
/*
if(!styleDone) {
addElements(sink, document.head().getElementsByTag("link"));
addElements(sink, document.head().getElementsByTag("script"));
styleDone = true;
}
addElements(sink, document.body().children());
*/
} else {
String mavenName = OUTPUT_NAME + "." + report;
createReport(mavenName, locale, document);
}
}
sinkEndReport(sink);
copyResources("css", "images", "javascript");
} catch (IOException e) {
getLog().error(e);
throw new MavenReportException("Exception generating " + getBundle( locale ).getString( "report.fitnesse.name" ), e);
}
}
示例6: doGenerateReport
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doGenerateReport( ResourceBundle bundle, Sink sink, JDependXMLReportParser jdepend )
{
this.jdepend = jdepend;
sink.head();
sink.title();
sink.text( bundle.getString( "report.title" ) ); //$NON-NLS-1$
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.text( bundle.getString( "report.metricresults" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
sink.lineBreak();
sink.text( bundle.getString( "report.intro" ) ); //$NON-NLS-1$
sink.lineBreak();
sink.lineBreak();
doSummarySection( bundle, sink );
doPackagesSection( bundle, sink );
doCycleSection( bundle, sink );
doExplanationSection( bundle, sink );
sink.section1_();
sink.body_();
sink.flush();
sink.close();
}
示例7: doSummarySection
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doSummarySection( ResourceBundle bundle, Sink sink )
{
sink.anchor( bundle.getString( "report.summary.text" ) ); //$NON-NLS-1$
sink.anchor_();
sink.sectionTitle1();
sink.text( bundle.getString( "report.summary.title" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
sink.lineBreak();
sink.table();
generateHeaderRow( bundle, sink );
list = jdepend.packages;
for ( int i = 0; i < list.size(); i++ )
{
jdpackage = (JDPackage) list.get( i );
stats = jdpackage.getStats();
sink.tableRow();
sink.tableCell();
sink.link( bundle.getString( "report.dash" ) + jdpackage.getPackageName() ); //$NON-NLS-1$
sink.text( jdpackage.getPackageName() );
sink.link_();
sink.tableCell_();
sink.tableCell();
sink.text( stats.getTotalClasses() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getConcreteClasses() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getAbstractClasses() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getCa() );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getCe() );
sink.tableCell_();
sink.tableCell();
sink.text( convertToPercent( stats.getA() ) );
sink.tableCell_();
sink.tableCell();
sink.text( convertToPercent( stats.getI() ) );
sink.tableCell_();
sink.tableCell();
sink.text( convertToPercent( stats.getD() ) );
sink.tableCell_();
sink.tableCell();
sink.text( stats.getV() );
sink.tableCell_();
sink.tableRow_();
}
sink.table_();
}
示例8: doPackagesSection
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doPackagesSection( ResourceBundle bundle, Sink sink )
{
sink.anchor( bundle.getString( "report.packages.text" ) ); //$NON-NLS-1$
sink.anchor_();
sink.sectionTitle1();
sink.text( bundle.getString( "report.packages.title" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
doPackage( bundle, sink );
}
示例9: doCycleSection
import org.apache.maven.doxia.sink.Sink; //导入方法依赖的package包/类
public void doCycleSection( ResourceBundle bundle, Sink sink )
{
sink.anchor( bundle.getString( "report.cycles.text" ) ); //$NON-NLS-1$
sink.anchor_();
sink.sectionTitle1();
sink.text( bundle.getString( "report.cycles.title" ) ); //$NON-NLS-1$
sink.sectionTitle1_();
doSectionLinks( bundle, sink );
sink.lineBreak();
sink.lineBreak();
doCycles( bundle, sink );
}