Class AbstractAttachmentLink

java.lang.Object
com.atlassian.renderer.links.Link
com.atlassian.renderer.links.BaseLink
com.atlassian.confluence.links.AbstractAttachmentLink
Direct Known Subclasses:
AttachmentLink, DraftAttachmentLink

public abstract class AbstractAttachmentLink extends com.atlassian.renderer.links.BaseLink
Class represents a link to an attachment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Attachment
     
    aliasSpecified, iconName, linkBody, relativeUrl, title, titleArgs, titleKey, url, wikiDestination, wikiTitle
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractAttachmentLink(com.atlassian.renderer.links.GenericLinkParser genericLinkParser)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Attachment
     
     
    equals, getOriginalParser, hashCode, setI18nTitle, setTitle
    getIconName, getLinkAttributes, getOriginalLinkText, getTitle, getTitleArgs, getTitleKey, getUnpermittedLinkBody, getUrl, getWikiDestination, getWikiTitle, isAliasSpecified, isRelativeUrl

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AbstractAttachmentLink

      protected AbstractAttachmentLink(com.atlassian.renderer.links.GenericLinkParser genericLinkParser)
  • Method Details

    • getAttachment

      public @Nullable Attachment getAttachment()
      Returns:
      attachment the link points to
    • getLinkBody

      public String getLinkBody()
      Overrides:
      getLinkBody in class com.atlassian.renderer.links.Link