Class DefaultLink
java.lang.Object
com.atlassian.confluence.content.render.xhtml.model.links.DefaultLink
- All Implemented Interfaces:
Link
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLink
(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body) Deprecated.since 5.10.DefaultLink
(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body, String tooltip, String anchor) Deprecated.since 5.10. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultLinkBuilder
builder()
Creates an empty DefaultLinkBuilderstatic DefaultLinkBuilder
Creates a DefaultLinkBuilder using an existing linkboolean
LinkBody<?>
getBody()
Returns the target attribute for the link.int
hashCode()
toString()
updateDestination
(ResourceIdentifier destination) Returns a new instance of this link with an updated destination.
-
Constructor Details
-
DefaultLink
Deprecated.since 5.10. Usebuilder()
orbuilder(Link)
-
DefaultLink
@Deprecated public DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body, String tooltip, String anchor) Deprecated.since 5.10. Usebuilder()
orbuilder(Link)
-
-
Method Details
-
builder
Creates an empty DefaultLinkBuilder- Returns:
- an empty DefaultLinkBuilder
- Since:
- 5.10
-
builder
Creates a DefaultLinkBuilder using an existing link- Parameters:
link
-- Returns:
- a DefaultLinkBuilder populated from the provided link
- Since:
- 5.10
-
getDestinationResourceIdentifier
- Specified by:
getDestinationResourceIdentifier
in interfaceLink
- Returns:
- a resource identifier to the destination
- See Also:
-
getBody
-
getTooltip
- Specified by:
getTooltip
in interfaceLink
- Returns:
- tooltip
-
getAnchor
-
getTarget
Description copied from interface:Link
Returns the target attribute for the link. Only "_blank" is supported. -
updateDestination
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.
-
equals
-
hashCode
public int hashCode() -
toString
-