本文整理了Java中org.apache.maven.doxia.sink.Sink.link()
方法的一些代码示例,展示了Sink.link()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Sink.link()
方法的具体详情如下:
包路径:org.apache.maven.doxia.sink.Sink
类名称: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.xwiki.rendering/xwiki-rendering-syntax-doxia
@Override
public void beginLink(ResourceReference reference, boolean freestanding, Map<String, String> parameters)
{
this.sink.link(reference.getReference());
}
代码示例来源: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: org.apache.maven.doxia/doxia-module-docbook-simple
private void handleLinkStart( Sink sink, SinkEventAttributeSet attribs )
throws XmlPullParserException
{
final Object linkend = attribs.getAttribute( SimplifiedDocbookMarkup.LINKEND_ATTRIBUTE );
if ( linkend == null )
{
throw new XmlPullParserException( "Missing linkend attribute in link!" );
}
parent.push( SimplifiedDocbookMarkup.LINK_TAG.toString() );
sink.link( "#" + linkend.toString(), attribs );
}
代码示例来源: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-docbook-simple
private void handleUlinkStart( Sink sink, SinkEventAttributeSet attribs )
throws XmlPullParserException
{
final Object url = attribs.getAttribute( SimplifiedDocbookMarkup.URL_ATTRIBUTE );
if ( url == null )
{
throw new XmlPullParserException( "Missing url attribute in ulink!" );
}
parent.push( SimplifiedDocbookMarkup.ULINK_TAG.toString() );
sink.link( url.toString(), attribs );
}
代码示例来源: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.doxia/doxia-module-twiki
/** {@inheritDoc} */
public final void traverse( final Sink sink )
{
sink.link( wikiWordLinkResolver.resolveLink( wikiword ) );
content.traverse( sink );
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.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: 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 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: 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_();
}
}
内容来源于网络,如有侵权,请联系作者删除!