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 DefaultLinkBuilderbuilder()Creates an empty DefaultLinkBuilderstatic DefaultLinkBuilderCreates a DefaultLinkBuilder using an existing linkbooleanLinkBody<?> getBody()Returns the target attribute for the link.inthashCode()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:
getDestinationResourceIdentifierin interfaceLink- Returns:
- a resource identifier to the destination
- See Also:
-
getBody
-
getTooltip
- Specified by:
getTooltipin interfaceLink- Returns:
- tooltip
-
getAnchor
-
getTarget
Description copied from interface:LinkReturns the target attribute for the link. Only "_blank" is supported. -
updateDestination
Returns 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.
-
equals
-
hashCode
public int hashCode() -
toString
-