Package com.atlassian.confluence.links
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
attachment
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAttachmentLink(com.atlassian.renderer.links.GenericLinkParser genericLinkParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Attachment
getAttachment()
String
getLinkBody()
-
Methods inherited from class com.atlassian.renderer.links.BaseLink
equals, getOriginalParser, hashCode, setI18nTitle, setTitle
-
-
-
-
Field Detail
-
attachment
protected Attachment attachment
-
-
Method Detail
-
getAttachment
public @Nullable Attachment getAttachment()
- Returns:
- attachment the link points to
-
getLinkBody
public String getLinkBody()
- Overrides:
getLinkBody
in classcom.atlassian.renderer.links.Link
-
-