Class DefaultCommonLinkAttributesWriter
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.link.DefaultCommonLinkAttributesWriter
- All Implemented Interfaces:
 CommonLinkAttributesWriter
public final class DefaultCommonLinkAttributesWriter
extends Object
implements CommonLinkAttributesWriter
Common link attributes writer writes target and aria-label attributes when
 required, and any classes that should be added to the link.
- Since:
 - 5.10
 
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionvoidwriteCommonAttributes(Link link, XMLStreamWriter writer, ConversionContext conversionContext) Writes attributes common to any link 
- 
Field Details
- 
log
public static final org.slf4j.Logger log - 
SCREEN_READER_NEW_WINDOW_TAG_I18N_KEY
- See Also:
 
 - 
OPEN_IN_NEW_WINDOW_DARK_FEATURE
- See Also:
 
 - 
NEW_TAB_CLASS
- See Also:
 
 
 - 
 - 
Method Details
- 
writeCommonAttributes
public void writeCommonAttributes(Link link, XMLStreamWriter writer, ConversionContext conversionContext) throws XMLStreamException Description copied from interface:CommonLinkAttributesWriterWrites attributes common to any link- Specified by:
 writeCommonAttributesin interfaceCommonLinkAttributesWriter- Parameters:
 link- Link object to write the attributes forwriter- The XmlStreamWriter to write the attributes toconversionContext- Conversion Context rendering for- Throws:
 XMLStreamException- if it encounters an error writing any of the attributes to the stream
 
 -