public interface ExternalLink extends ParagraphElement, ElementReference
TYPE_NONE
Modifier and Type | Method and Description |
---|---|
default java.net.URL |
getNotNullURL()
Return a not null link URL.
|
default java.lang.String |
getPath()
Return the link path.
|
java.lang.String |
getText()
Return the link description text.
|
java.net.URL |
getURL()
Return the link URL.
|
default java.lang.String |
getURLAsString()
Return the complete link URL as a String.
|
default java.lang.String |
getURLAsString(java.net.URL baseURL)
Return the link relative to a base URL.
|
default java.lang.String |
getURLAsString(XMLParentArticle article)
Return the path of the link relative to its article.
|
default boolean |
isAbsolute()
Return true if the link is absolute.
|
boolean |
isValid()
Return true if the link is valid.
|
void |
setValid(boolean isValid)
Set if the link is valid.
|
getCustomStyles, getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
getLineNumber, hasLineNumber
void setValid(boolean isValid)
isValid
- true if the link is validboolean isValid()
java.net.URL getURL()
default java.net.URL getNotNullURL()
default java.lang.String getPath()
default boolean isAbsolute()
default java.lang.String getURLAsString(java.net.URL baseURL)
baseURL
- the base URLdefault java.lang.String getURLAsString(XMLParentArticle article)
article
- the articledefault java.lang.String getURLAsString()
getURL()
and return the String value of the URL.java.lang.String getText()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence