Package com.scroogexhtml.fields
Class LinkURIBuilder
java.lang.Object
com.scroogexhtml.fields.LinkURIBuilder
Helper class which converts HYPERLINK field expressions to a document path (with an optional
anchor).
Limitations: - the only extension conversion supported is ".rtf" to ".html"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs an HTTP link from the HYPERLINK field expression.boolean
boolean
It is recommended to use only Latin letters, Arabic numerals (digits), hyphen (-), underscore (_) and dot (.) for anchors, to support as many HTML versions and web browsers as possible.
-
Field Details
-
ONE
public static final int ONE- See Also:
-
-
Constructor Details
-
LinkURIBuilder
-
-
Method Details
-
isHyperlinkField
public boolean isHyperlinkField() -
isValidFragment
public boolean isValidFragment()It is recommended to use only Latin letters, Arabic numerals (digits), hyphen (-), underscore (_) and dot (.) for anchors, to support as many HTML versions and web browsers as possible.- Returns:
- true if the fragment string matches the regular expression [a-zA-Z0-9-_.]+
-
getHyperlinkTarget
Constructs an HTTP link from the HYPERLINK field expression.- Returns:
- the HTTP link URL
-