public class

DefaultLink

extends Object
implements Link
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.model.links.DefaultLink

Summary

Public Constructors
DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body)
DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body, String tooltip, String anchor)
Public Methods
boolean equals(Object o)
String getAnchor()
LinkBody<?> getBody()
ResourceIdentifier getDestinationResourceIdentifier()
String getTooltip()
int hashCode()
String toString()
Link updateDestination(ResourceIdentifier destination)
Returns a new instance of this link with an updated destination.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.xhtml.api.Link

Public Constructors

public DefaultLink (ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body)

public DefaultLink (ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body, String tooltip, String anchor)

Public Methods

public boolean equals (Object o)

public String getAnchor ()

Returns
  • link anchor

public LinkBody<?> getBody ()

Returns
  • the body of the link (this may be text or an image)

public ResourceIdentifier getDestinationResourceIdentifier ()

Returns
  • a resource identifier to the destination

public String getTooltip ()

Returns
  • tooltip

public int hashCode ()

public String toString ()

public Link updateDestination (ResourceIdentifier destination)

Returns a new instance of this link with an updated destination.

Parameters
destination the updated destination
Returns
  • a new instance with the updated destination.