Package org.docx4j.model.datastorage
Class BindingHyperlinkResolverForOpenAPI3
java.lang.Object
org.docx4j.model.datastorage.BindingHyperlinkResolver
org.docx4j.model.datastorage.BindingHyperlinkResolverForOpenAPI3
public class BindingHyperlinkResolverForOpenAPI3 extends BindingHyperlinkResolver
-
Constructor Summary
Constructors Constructor Description BindingHyperlinkResolverForOpenAPI3() -
Method Summary
Modifier and Type Method Description P.HyperlinkgenerateHyperlink(java.lang.String bookmarkName, java.lang.String url)intgetIndexOfURL(java.lang.String text)Return the index of the position you wish to treat as a hyperlink.Methods inherited from class org.docx4j.model.datastorage.BindingHyperlinkResolver
activateHyperlinkStyle, getHyperlinkStyleId, setHyperlinkStyle
-
Constructor Details
-
BindingHyperlinkResolverForOpenAPI3
public BindingHyperlinkResolverForOpenAPI3()
-
-
Method Details
-
getIndexOfURL
public int getIndexOfURL(java.lang.String text)Return the index of the position you wish to treat as a hyperlink. The characters from there to the first whitespace following will be treated as the URL- Overrides:
getIndexOfURLin classBindingHyperlinkResolver- Parameters:
text-- Returns:
-
generateHyperlink
public P.Hyperlink generateHyperlink(java.lang.String bookmarkName, java.lang.String url) throws javax.xml.bind.JAXBException- Overrides:
generateHyperlinkin classBindingHyperlinkResolver- Parameters:
bookmarkName-url-- Returns:
- Throws:
javax.xml.bind.JAXBException
-