本文整理了Java中org.apache.maven.doxia.sink.Sink.link_()
方法的一些代码示例,展示了Sink.link_()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.link_()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称:Sink
方法名:link_
暂无
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-syntax-doxia
@Override
public void endLink(ResourceReference reference, boolean freestanding, Map<String, String> parameters)
{
this.sink.link_();
}
代码示例来源:origin: de.smartics.testdoc/testdoc-maven-report-plugin
void renderLink(final String label, final String link)
{
sink.link(link);
sink.text(label);
sink.link_();
}
代码示例来源:origin: org.apache.maven.plugins/maven-surefire-report-plugin
private static void sinkLink( Sink sink, String text, String link )
{
sink.link( link );
sink.text( text );
sink.link_();
}
代码示例来源:origin: de.smartics.testdoc/maven-testdoc-report-plugin
void renderLink(final String label, final String link)
{
sink.link(link);
sink.text(label);
sink.link_();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-twiki
/** {@inheritDoc} */
public final void traverse( final Sink sink )
{
sink.link( reference );
content.traverse( sink );
sink.link_();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-confluence
/** {@inheritDoc} */
public void traverse( Sink sink )
{
sink.link( reference );
sink.text( text );
sink.link_();
}
}
代码示例来源:origin: apache/maven-surefire
private static void sinkLink( Sink sink, String text, String link )
{
sink.link( link );
sink.text( text );
sink.link_();
}
代码示例来源:origin: org.apache.maven.plugins/maven-pmd-plugin
private void outputLineLink( int line, PmdFileInfo fileInfo )
{
String xrefLocation = null;
if ( fileInfo != null )
{
xrefLocation = fileInfo.getXrefLocation();
}
if ( xrefLocation != null )
{
sink.link( xrefLocation + "/" + currentFilename.replaceAll( "\\.java$", ".html" ) + "#L" + line );
}
sink.text( String.valueOf( line ) );
if ( xrefLocation != null )
{
sink.link_();
}
}
代码示例来源:origin: org.jvnet.hudson.plugins/jdepend
public void doSectionLinks( ResourceBundle bundle, Sink sink )
{
sink.text( bundle.getString( "report.square-open" ) ); //$NON-NLS-1$
sink.link( bundle.getString( "report.summary.anchor" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.summary.text" ) ); //$NON-NLS-1$
sink.link_();
sink.text( bundle.getString( "report.square-close" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.square-open" ) ); //$NON-NLS-1$
sink.link( bundle.getString( "report.packages.anchor" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.packages.text" ) ); //$NON-NLS-1$
sink.link_();
sink.text( bundle.getString( "report.square-close" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.square-open" ) ); //$NON-NLS-1$
sink.link( bundle.getString( "report.cycles.anchor" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.cycles.text" ) ); //$NON-NLS-1$
sink.link_();
sink.text( bundle.getString( "report.square-close" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.square-open" ) ); //$NON-NLS-1$
sink.link( bundle.getString( "report.explanations.anchor" ) ); //$NON-NLS-1$
sink.text( bundle.getString( "report.explanations.text" ) ); //$NON-NLS-1$
sink.link_();
sink.text( bundle.getString( "report.square-close" ) ); //$NON-NLS-1$
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-twiki
/** {@inheritDoc} */
public final void traverse( final Sink sink )
{
sink.link( wikiWordLinkResolver.resolveLink( wikiword ) );
content.traverse( sink );
sink.link_();
}
代码示例来源:origin: net.sf.oqt/oqt-maven-plugin
private void addTitleLink(final String title, final Sink sink) {
final SinkEventAttributes attributes = new SinkEventAttributeSet();
attributes.addAttribute(SinkEventAttributes.HREF, "#" + title.replace(" ", "_"));
sink.link("#" + title.replace(" ", "_"), attributes);
sink.text(title);
sink.link_();
sink.lineBreak();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleXrefStart( Sink sink, SinkEventAttributeSet attribs )
throws XmlPullParserException
{
final Object linkend = attribs.getAttribute( SimplifiedDocbookMarkup.LINKEND_ATTRIBUTE );
if ( linkend == null )
{
throw new XmlPullParserException( "Missing linkend attribute in xref!" );
}
sink.link( "#" + linkend.toString(), attribs );
sink.text( "Link" ); //TODO: determine text of link target
sink.link_();
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleEmailStart( XmlPullParser parser, Sink sink, SinkEventAttributeSet attribs )
throws XmlPullParserException
{
try
{
final String mailto = parser.nextText();
sink.link( "mailto:" + mailto, attribs );
sink.monospaced();
sink.text( mailto, null );
sink.monospaced_();
sink.link_();
}
catch ( IOException e )
{
throw new XmlPullParserException( "IOException: " + e.getMessage(), parser, e );
}
}
代码示例来源:origin: org.apache.maven.doxia/doxia-module-fml
/**
* Writes a toplink element.
*
* @param sink The sink to consume the event.
*/
private void writeTopLink( Sink sink )
{
SinkEventAttributeSet atts = new SinkEventAttributeSet();
atts.addAttribute( SinkEventAttributeSet.ALIGN, "right" );
sink.paragraph( atts );
sink.link( "#top" );
sink.text( "[top]" );
sink.link_();
sink.paragraph_();
}
代码示例来源:origin: net.thucydides.maven.plugins/maven-thucydides-plugin
private void generateOverviewSection(Sink sink) {
sink.section1();
sectionTitle(sink, "Overview");
sink.sectionTitle2();
sink.link("thucydides/index.html");
sink.rawText("Dashboard");
sink.link_();
sink.sectionTitle2_();
// sink.sectionTitle2();
// sink.link("thucydides/stories.html");
// sink.rawText("Stories");
// sink.link_();
// sink.sectionTitle2_();
sink.section1_();
}
//
代码示例来源:origin: org.apache.maven.plugins/maven-site-plugin
private static void extractItems( List<MenuItem> items, Sink sink )
{
if ( items == null || items.isEmpty() )
{
return;
}
sink.list();
for ( MenuItem item : items )
{
sink.listItem();
sink.link( relativePath( item.getHref() ) );
sink.text( item.getName() );
sink.link_();
extractItems( item.getItems(), sink );
sink.listItem_();
}
sink.list_();
}
代码示例来源:origin: de.smartics.testdoc/maven-testdoc-report-plugin
void renderTestMethodLink(final ExternalReport report)
{
final String messageKey = report.getLabelKey();
final Type type = getType();
final String link =
report.constructLink(type.getPackageName(), type.getTypeName(),
getTestMethod());
if (link != null)
{
sink.link(link);
final String label = messages.getLabel(messageKey);
sink.text(label);
sink.link_();
}
}
代码示例来源:origin: de.smartics.testdoc/testdoc-maven-report-plugin
void renderTestMethodLink(final ExternalReport report)
{
final String messageKey = report.getLabelKey();
final Type type = getType();
final String link =
report.constructLink(type.getPackageName(), type.getTypeName(),
getTestMethod());
if (link != null)
{
sink.link(link);
final String label = messages.getLabel(messageKey);
sink.text(label);
sink.link_();
}
}
代码示例来源:origin: mojohaus/license-maven-plugin
private void renderThirdPartyDetail( ThirdPartyDetails detail )
{
sink.section2();
sink.sectionTitle2();
sink.text( getGAV( detail ) );
sink.sectionTitle2_();
renderThirdPartyDetailTable( detail );
sink.link( "./third-party-report.html#" + getText( "report.overview.title" ) );
sink.text( getText( "report.back.to.top.page" ) );
sink.link_();
sink.lineBreak();
sink.section2_();
}
代码示例来源:origin: kreyssel/selenium2-visualdiff
private void renderScreenshot(final String path, final String type) {
SinkEventAttributeSet cellAttr = new SinkEventAttributeSet();
cellAttr.addAttribute(SinkEventAttributes.ALIGN, "center");
SinkEventAttributeSet smallImagesAttr = new SinkEventAttributeSet();
smallImagesAttr.addAttribute(SinkEventAttributes.HEIGHT, "200");
smallImagesAttr.addAttribute(SinkEventAttributes.HSPACE, "20");
smallImagesAttr.addAttribute(SinkEventAttributes.VSPACE, "10");
smallImagesAttr.addAttribute(SinkEventAttributes.BORDER, "1");
smallImagesAttr.addAttribute(SinkEventAttributes.ALT, type);
sink.tableCell(cellAttr);
sink.link(path);
sink.figureGraphics(path, smallImagesAttr);
sink.link_();
sink.lineBreak();
sink.text(type);
sink.tableCell_();
}
}
内容来源于网络,如有侵权,请联系作者删除!