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 Modifier and Type Field Description static org.slf4j.Logger
log
static String
NEW_TAB_CLASS
static String
OPEN_IN_NEW_WINDOW_DARK_FEATURE
static String
SCREEN_READER_NEW_WINDOW_TAG_I18N_KEY
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeCommonAttributes(Link link, XMLStreamWriter writer, ConversionContext conversionContext)
Writes attributes common to any link
-
-
-
Field Detail
-
log
public static final org.slf4j.Logger log
-
SCREEN_READER_NEW_WINDOW_TAG_I18N_KEY
public static final String SCREEN_READER_NEW_WINDOW_TAG_I18N_KEY
- See Also:
- Constant Field Values
-
OPEN_IN_NEW_WINDOW_DARK_FEATURE
public static final String OPEN_IN_NEW_WINDOW_DARK_FEATURE
- See Also:
- Constant Field Values
-
NEW_TAB_CLASS
public static final String NEW_TAB_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeCommonAttributes
public void writeCommonAttributes(Link link, XMLStreamWriter writer, ConversionContext conversionContext) throws XMLStreamException
Description copied from interface:CommonLinkAttributesWriter
Writes attributes common to any link- Specified by:
writeCommonAttributes
in 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
-
-