public class DefaultLinkRenderer extends Object implements LinkRenderer
Constructor and Description |
---|
DefaultLinkRenderer(Marshaller<Link> linkMarshaller) |
Modifier and Type | Method and Description |
---|---|
String |
render(ContentEntityObject content,
ConversionContext conversionContext)
Renders link to specified content using the display name of the content as the link body.
|
String |
render(ContentEntityObject content,
String linkAlias,
ConversionContext conversionContext)
Renders link to specified content with specified alias.
|
public DefaultLinkRenderer(Marshaller<Link> linkMarshaller)
public String render(ContentEntityObject content, ConversionContext conversionContext) throws XhtmlException
LinkRenderer
render
in interface LinkRenderer
content
- the contentconversionContext
- conversion contextXhtmlException
- if there is an error rendering the linkpublic String render(ContentEntityObject content, String linkAlias, ConversionContext conversionContext) throws XhtmlException
LinkRenderer
render
in interface LinkRenderer
content
- the contentlinkAlias
- body or alias of resulting link. Note that this will be HTML encoded on output.conversionContext
- conversion contextXhtmlException
- if there is an error rendering the linkCopyright © 2003–2019 Atlassian. All rights reserved.