com.atlassian.confluence.content.render.xhtml.model.links
Class CreatePageLink
java.lang.Object
com.atlassian.confluence.content.render.xhtml.model.links.CreatePageLink
- All Implemented Interfaces:
- Link
public class CreatePageLink
- extends Object
CreatePageLink
public CreatePageLink(Link delegate)
- Parameters:
delegate
-
- Throws:
IllegalArgumentException
- if the supplied delegate does not specify a destination resource identifier
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 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 String getAnchor()
- Specified by:
getAnchor
in interface Link
- Returns:
- link anchor
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object