Class UnresolvedLink
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.links.UnresolvedLink
-
- All Implemented Interfaces:
Link
- Direct Known Subclasses:
NotPermittedLink
public class UnresolvedLink extends Object
-
-
Constructor Summary
Constructors Constructor Description UnresolvedLink(Link delegate)
UnresolvedLink(Link delegate, Optional<String> tooltip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getAnchor()
LinkBody<?>
getBody()
Link
getDelegate()
ResourceIdentifier
getDestinationResourceIdentifier()
Optional<String>
getTarget()
Returns the target attribute for the link.String
getTooltip()
int
hashCode()
String
toString()
Link
updateDestination(ResourceIdentifier destination)
Returns a new instance of this link with an updated destination.
-
-
-
Method Detail
-
getTooltip
public String getTooltip()
- Specified by:
getTooltip
in interfaceLink
- Returns:
- tooltip
-
getDelegate
public Link getDelegate()
-
getBody
public LinkBody<?> getBody()
-
getDestinationResourceIdentifier
public ResourceIdentifier getDestinationResourceIdentifier()
- Specified by:
getDestinationResourceIdentifier
in 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:Link
Returns a new instance of this link with an updated destination.- Specified by:
updateDestination
in interfaceLink
- Parameters:
destination
- the updated destination- Returns:
- a new instance with the updated destination.
-
getTarget
public Optional<String> getTarget()
Description copied from interface:Link
Returns the target attribute for the link. Only "_blank" is supported.
-
-