Class DefaultLinkBuilder
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.links.DefaultLinkBuilder
-
public class DefaultLinkBuilder extends Object
Builds instances of DefaultLink- Since:
- 5.10
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultLink
build()
Builds a default link using supplied properties.Optional<String>
getAnchor()
Optional<LinkBody<?>>
getBody()
Optional<ResourceIdentifier>
getDestinationResourceIdentifier()
Optional<String>
getTarget()
Optional<String>
getTooltip()
DefaultLinkBuilder
withAnchor(String anchor)
DefaultLinkBuilder
withAnchor(Optional<String> anchor)
DefaultLinkBuilder
withBody(LinkBody<?> body)
DefaultLinkBuilder
withBody(Optional<LinkBody<?>> body)
DefaultLinkBuilder
withDestinationResourceIdentifier(ResourceIdentifier destinationResourceIdentifier)
DefaultLinkBuilder
withDestinationResourceIdentifier(Optional<ResourceIdentifier> destinationResourceIdentifier)
DefaultLinkBuilder
withTarget(String target)
DefaultLinkBuilder
withTarget(Optional<String> target)
DefaultLinkBuilder
withTooltip(String tooltip)
DefaultLinkBuilder
withTooltip(Optional<String> tooltip)
-
-
-
Method Detail
-
build
public DefaultLink build()
Builds a default link using supplied properties.- Returns:
- A new DefaultLink instance with the supplied properties.
-
withDestinationResourceIdentifier
public DefaultLinkBuilder withDestinationResourceIdentifier(Optional<ResourceIdentifier> destinationResourceIdentifier)
-
withDestinationResourceIdentifier
public DefaultLinkBuilder withDestinationResourceIdentifier(ResourceIdentifier destinationResourceIdentifier)
-
withBody
public DefaultLinkBuilder withBody(Optional<LinkBody<?>> body)
-
withBody
public DefaultLinkBuilder withBody(LinkBody<?> body)
-
withTooltip
public DefaultLinkBuilder withTooltip(Optional<String> tooltip)
-
withTooltip
public DefaultLinkBuilder withTooltip(String tooltip)
-
withAnchor
public DefaultLinkBuilder withAnchor(Optional<String> anchor)
-
withAnchor
public DefaultLinkBuilder withAnchor(String anchor)
-
withTarget
public DefaultLinkBuilder withTarget(Optional<String> target)
-
withTarget
public DefaultLinkBuilder withTarget(String target)
-
getDestinationResourceIdentifier
public Optional<ResourceIdentifier> getDestinationResourceIdentifier()
-
-