com.atlassian.confluence.content.render.xhtml.model.links
Class DefaultLink

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.model.links.DefaultLink
All Implemented Interfaces:
Link

public class DefaultLink
extends Object
implements Link


Constructor Summary
DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body)
           
DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body, String tooltip, String anchor)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultLink

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

DefaultLink

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

getDestinationResourceIdentifier

public ResourceIdentifier getDestinationResourceIdentifier()
Specified by:
getDestinationResourceIdentifier in interface Link
Returns:
a resource identifier to the destination
See Also:
ResourceIdentifier

getBody

public LinkBody<?> getBody()
Specified by:
getBody in interface Link
Returns:
the body of the link (this may be text or an image)

getTooltip

public String getTooltip()
Specified by:
getTooltip in interface Link
Returns:
tooltip

getAnchor

public String getAnchor()
Specified by:
getAnchor in interface Link
Returns:
link anchor

updateDestination

public Link updateDestination(ResourceIdentifier destination)
Returns a new instance of this link with an updated destination.

Specified by:
updateDestination in interface Link
Parameters:
destination - the updated destination
Returns:
a new instance with the updated destination.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.