Constructor and Description |
---|
DefaultLink(ResourceIdentifier destinationResourceIdentifier,
LinkBody<?> body)
Deprecated.
since 5.10. Use
builder() or builder(Link) |
DefaultLink(ResourceIdentifier destinationResourceIdentifier,
LinkBody<?> body,
String tooltip,
String anchor)
Deprecated.
since 5.10. Use
builder() or builder(Link) |
Modifier and Type | Method and Description |
---|---|
static DefaultLinkBuilder |
builder()
Creates an empty DefaultLinkBuilder
|
static DefaultLinkBuilder |
builder(Link link)
Creates a DefaultLinkBuilder using an existing link
|
boolean |
equals(Object o) |
String |
getAnchor() |
LinkBody<?> |
getBody() |
ResourceIdentifier |
getDestinationResourceIdentifier() |
Optional<String> |
getTarget()
Returns the target attribute for the link.
|
String |
getTooltip() |
int |
hashCode() |
String |
toString() |
Link |
updateDestination(ResourceIdentifier destination)
Returns a new instance of this link with an updated destination.
|
@Deprecated public DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body)
builder()
or builder(Link)
@Deprecated public DefaultLink(ResourceIdentifier destinationResourceIdentifier, LinkBody<?> body, String tooltip, String anchor)
builder()
or builder(Link)
public static DefaultLinkBuilder builder()
public static DefaultLinkBuilder builder(Link link)
link
- public ResourceIdentifier getDestinationResourceIdentifier()
getDestinationResourceIdentifier
in interface Link
ResourceIdentifier
public LinkBody<?> getBody()
public String getTooltip()
getTooltip
in interface Link
public Optional<String> getTarget()
Link
public Link updateDestination(ResourceIdentifier destination)
updateDestination
in interface Link
destination
- the updated destinationCopyright © 2003–2019 Atlassian. All rights reserved.