public class LinkElement extends Object implements InlineElement
Description
.Modifier and Type | Method and Description |
---|---|
void |
format(Formatter formatter)
Transforms itself into String representation using given format.
|
String |
getLink() |
String |
getText() |
static LinkElement |
link(String link)
Creates a link with a given url.
|
static LinkElement |
link(String link,
String text)
Creates a link with a given url and description.
|
public static LinkElement link(String link, String text)
link
- address that this link should point totext
- a description for that link, that should be used in textpublic static LinkElement link(String link)
link
- address that this link should point topublic String getLink()
public String getText()
public void format(Formatter formatter)
formatter
- formatter to use.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.