本文整理了Java中org.apache.maven.doxia.sink.Sink.head()
方法的一些代码示例,展示了Sink.head()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.head()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:head
暂无
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-syntax-doxia
@Override
public void beginDocument(MetaData metadata)
{
this.sink.head();
this.sink.head_();
this.sink.body();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleArticleStart( Sink sink, SinkEventAttributeSet attribs )
{
sink.head( attribs );
inHead = true;
parent.push( SimplifiedDocbookMarkup.ARTICLE_TAG.toString() );
}
代码示例来源: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: 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: net.thucydides.maven.plugins/maven-thucydides-plugin
public void generateReport(TestOutcomes testOutcomes, Sink sink) {
sink.head();
generateTitle(sink);
sink.head_();
sink.body();
generateOverviewSection(sink);
sink.body_();
sink.flush();
sink.close();
}
代码示例来源: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: 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: 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: 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.doxia/doxia-module-confluence
@Override
public synchronized void parse( Reader source, Sink sink, String reference )
throws ParseException
{
ByLineSource src = new ByLineReaderSource( source, reference );
try
{
List<Block> blocks = parse( src );
sink.head();
sink.head_();
sink.body();
for ( Block block : blocks )
{
block.traverse( sink );
}
sink.body_();
}
catch ( Exception e )
{
// TODO handle column number
throw new ParseException( e, src.getName(), src.getLineNumber(), -1 );
}
finally
{
setSecondParsing( false );
init();
}
}
代码示例来源: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-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.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.head();
代码示例来源:origin: org.apache.maven.plugins/maven-surefire-report-plugin
sink.head();
代码示例来源:origin: org.apache.maven.doxia/doxia-module-twiki
sink.head();
代码示例来源:origin: org.apache.maven.plugins/maven-checkstyle-plugin
private void doHeading()
sink.head();
sink.title();
sink.text( getTitle() );
代码示例来源: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.head();
sink.title();
内容来源于网络,如有侵权,请联系作者删除!