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

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

public class EmptyLink
extends java.lang.Object

Represents a link with no link text.


Constructor Summary
EmptyLink(Link delegate)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAnchor()
           
 LinkBody<?> getBody()
           
 Link getDelegate()
           
 ResourceIdentifier getDestinationResourceIdentifier()
           
 java.lang.String getTooltip()
           
 int hashCode()
           
 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, toString, wait, wait, wait
 

Constructor Detail

EmptyLink

public EmptyLink(Link delegate)
Method Detail

getDelegate

public Link getDelegate()

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 java.lang.String getTooltip()
Specified by:
getTooltip in interface Link
Returns:
tooltip

getDestinationResourceIdentifier

public ResourceIdentifier getDestinationResourceIdentifier()
Specified by:
getDestinationResourceIdentifier in interface Link
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 interface Link
Parameters:
destination - the updated destination
Returns:
a new instance with the updated destination.

getAnchor

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.