Class CreatePageLink
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.links.CreatePageLink
-
-
Constructor Summary
Constructors Constructor Description CreatePageLink(Link delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetAnchor()LinkBody<?>getBody()LinkgetDelegate()ResourceIdentifiergetDestinationResourceIdentifier()Optional<String>getTarget()Returns the target attribute for the link.StringgetTooltip()inthashCode()StringtoString()LinkupdateDestination(ResourceIdentifier destination)Returns a new instance of this link with an updated destination.
-
-
-
Constructor Detail
-
CreatePageLink
public CreatePageLink(Link delegate)
- Parameters:
delegate-- Throws:
IllegalArgumentException- if the supplied delegate does not specify a destination resource identifier
-
-
Method Detail
-
getDelegate
public Link getDelegate()
-
getBody
public LinkBody<?> getBody()
-
getTooltip
public String getTooltip()
- Specified by:
getTooltipin interfaceLink- Returns:
- tooltip
-
getDestinationResourceIdentifier
public ResourceIdentifier getDestinationResourceIdentifier()
- Specified by:
getDestinationResourceIdentifierin interfaceLink- Returns:
- a resource identifier to the destination. If null then the link is a self reference.
- See Also:
ResourceIdentifier
-
updateDestination
public Link updateDestination(ResourceIdentifier destination)
Description copied from interface:LinkReturns a new instance of this link with an updated destination.- Specified by:
updateDestinationin interfaceLink- Parameters:
destination- the updated destination- Returns:
- a new instance with the updated destination.
-
getTarget
public Optional<String> getTarget()
Description copied from interface:LinkReturns the target attribute for the link. Only "_blank" is supported.
-
-