Class AptUtils
java.lang.Object
org.apache.maven.doxia.module.apt.AptUtils
A collection of utility methods for dealing with APT documents.
- Since:
- 1.1
- Author:
- ltheussl
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isExternalLink
(String link) Checks if the given string corresponds to an external URI, ie is not a link within the same document nor a link to another document within the same site.static boolean
isInternalLink
(String link) Checks if the given string corresponds to an internal link, ie it is a link to an anchor within the same document.static boolean
isLocalLink
(String link) Checks if the given string corresponds to a relative link to another document within the same site.
-
Method Details
-
isExternalLink
Checks if the given string corresponds to an external URI, ie is not a link within the same document nor a link to another document within the same site. This forwards toDoxiaUtils.isExternalLink(String)
.- Parameters:
link
- The link to check.- Returns:
- True if DoxiaUtils.isExternalLink(link) returns true.
- See Also:
-
isInternalLink
Checks if the given string corresponds to an internal link, ie it is a link to an anchor within the same document. -
isLocalLink
Checks if the given string corresponds to a relative link to another document within the same site.- Parameters:
link
- The link to check.- Returns:
- True if the link starts with either "/", "./" or "../".
- See Also:
-