本文整理了Java中org.apache.maven.doxia.sink.Sink.title()
方法的一些代码示例,展示了Sink.title()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.title()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:title
暂无
代码示例来源:origin: net.thucydides.maven.plugins/maven-thucydides-plugin
private void generateTitle(Sink sink) {
sink.title();
sink.text("Thucydides Report");
sink.title_();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleArticleInfoStartTags( String name, Sink sink, SinkEventAttributeSet attribs )
{
if ( !ARTICLEINFO_ELEMENTS.contains( name ) )
{
ignore = true;
return; // TODO: other meta data are ignored, implement!
}
if ( name.equals( SimplifiedDocbookMarkup.TITLE_TAG.toString() ) )
{
sink.title( attribs );
}
else if ( name.equals( SimplifiedDocbookMarkup.CORPAUTHOR_TAG.toString() ) )
{
sink.author( attribs );
}
else if ( name.equals( SimplifiedDocbookMarkup.DATE_TAG.toString() ) )
{
sink.date( attribs );
}
}
代码示例来源:origin: de.smartics.testdoc/maven-testdoc-report-plugin
protected void renderPageStart()
{
sink.head();
sink.title();
sink.text(messages.getLabel(messages.getReportTitleId()));
sink.title_();
sink.head_();
sink.body();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleTitleStart( Sink sink, SinkEventAttributeSet attribs )
{
if ( isParent( SimplifiedDocbookMarkup.TABLE_TAG.toString() )
|| isParent( SimplifiedDocbookMarkup.INFORMALTABLE_TAG.toString() ) )
{
sink.tableCaption( attribs );
}
else if ( isParent( SimplifiedDocbookMarkup.ARTICLE_TAG.toString() ) )
{
sink.title( attribs );
}
else if ( isParent( SimplifiedDocbookMarkup.SECTION_TAG.toString() ) )
{
sink.sectionTitle( level, attribs );
}
else
{
sink.bold();
}
}
代码示例来源:origin: de.smartics.testdoc/testdoc-maven-report-plugin
protected void renderPageStart()
{
sink.head();
sink.title();
sink.text(messages.getLabel(messages.getReportTitleId()));
sink.title_();
sink.head_();
sink.body();
}
代码示例来源:origin: revapi/revapi
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_();
}
代码示例来源:origin: allure-framework/allure-maven
/**
* Render allure report page in project-reports.html.
*/
protected void render(Sink sink, String title) {
sink.head();
sink.title();
sink.text(title);
sink.title_();
sink.head_();
sink.body();
sink.lineBreak();
Path indexHtmlFile = Paths.get(getReportDirectory(), "index.html");
String relativePath = Paths.get(reportingOutputDirectory)
.relativize(indexHtmlFile).toString();
sink.rawText(format("<meta http-equiv=\"refresh\" content=\"0;url=%s\" />",
relativePath));
sink.link(relativePath);
sink.body_();
sink.flush();
sink.close();
}
代码示例来源:origin: ru.yandex.qatools.allure/allure-maven-plugin
/**
* Render allure report page in project-reports.html.
*/
protected void render(Sink sink, String title) {
sink.head();
sink.title();
sink.text(title);
sink.title_();
sink.head_();
sink.body();
sink.lineBreak();
Path indexHtmlFile = Paths.get(reportDirectory, "index.html");
String relativePath = Paths.get(reportingOutputDirectory)
.relativize(indexHtmlFile).toString();
sink.rawText(format("<meta http-equiv=\"refresh\" content=\"0;url=%s\" />",
relativePath));
sink.link(relativePath);
sink.body_();
sink.flush();
sink.close();
}
代码示例来源:origin: stackoverflow.com
Sink sink = getSink();
sink.head();
sink.title();
sink.text("Hello");
sink.title_();
sink.head_();
sink.body();
sink.rawText("Hello World");
sink.body_();
sink.flush();
sink.close();
代码示例来源:origin: org.codehaus.mojo/javacc-maven-plugin
/**
* 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( ResourceBundle bundle, 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_();
}
代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin
public void beginDocument()
{
sink.head();
sink.title();
sink.text( getTitle() );
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.text( getTitle() );
sink.sectionTitle1_();
sink.paragraph();
sink.text( bundle.getString( "report.pmd.pmdlink" ) + " " );
sink.link( "https://pmd.github.io" );
sink.text( "PMD" );
sink.link_();
sink.text( " " + AbstractPmdReport.getPmdVersion() + "." );
sink.paragraph_();
sink.section1_();
// TODO overall summary
}
代码示例来源:origin: org.jvnet.hudson.plugins/jdepend
public void doGenerateReport( ResourceBundle bundle, Sink sink, JDependParser 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();
}
代码示例来源:origin: org.apache.maven.plugins/maven-dependency-plugin
sink.title();
sink.text( bundle.getString( "analyze.report.header" ) );
sink.title_();
代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin
/**
* Method that generates the start of the CPD report.
*/
public void beginDocument()
{
sink.head();
sink.title();
sink.text( getTitle() );
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.text( getTitle() );
sink.sectionTitle1_();
sink.paragraph();
sink.text( bundle.getString( "report.cpd.cpdlink" ) + " " );
sink.link( "https://pmd.github.io/latest/pmd_userdocs_cpd.html" );
sink.text( "CPD" );
sink.link_();
sink.text( " " + AbstractPmdReport.getPmdVersion() + "." );
sink.paragraph_();
sink.section1_();
// TODO overall summary
sink.section1();
sink.sectionTitle1();
sink.text( bundle.getString( "report.cpd.dupes" ) );
sink.sectionTitle1_();
// TODO files summary
}
代码示例来源:origin: apache/maven-surefire
sink.title();
sink.text( bundle.getReportHeader() );
sink.title_();
代码示例来源:origin: org.apache.maven.plugins/maven-surefire-report-plugin
sink.title();
sink.text( bundle.getReportHeader() );
sink.title_();
代码示例来源:origin: org.apache.maven.doxia/doxia-module-twiki
if ( title != null )
sink.title();
sink.text( title );
sink.title_();
代码示例来源:origin: org.apache.maven.plugins/maven-checkstyle-plugin
private void doHeading()
sink.title();
sink.text( getTitle() );
sink.title_();
代码示例来源:origin: org.apache.maven.plugins/maven-site-plugin
private void extract( DecorationModel decoration, Sink sink, Locale locale )
{
sink.head();
sink.title();
sink.text( i18n.getString( "site-plugin", locale, "site.sitemap.title" ) );
sink.title_();
sink.head_();
sink.body();
sink.section1();
sink.sectionTitle1();
sink.text( i18n.getString( "site-plugin", locale, "site.sitemap.section.title" ) );
sink.sectionTitle1_();
sink.paragraph();
sink.text( i18n.getString( "site-plugin", locale, "site.sitemap.description" ) );
sink.paragraph_();
for ( Menu menu : decoration.getMenus() )
{
sink.section3();
sink.sectionTitle3();
sink.text( menu.getName() );
sink.sectionTitle3_();
sink.horizontalRule();
extractItems( menu.getItems(), sink );
sink.section3_();
}
sink.section1_();
sink.body_();
}
代码示例来源:origin: org.apache.maven.plugins/maven-project-info-reports-plugin
sink.title();
内容来源于网络,如有侵权,请联系作者删除!