Package org.docx4j.model.datastorage
Class BindingHyperlinkResolverForOpenAPI3
java.lang.Object
org.docx4j.model.datastorage.BindingHyperlinkResolver
org.docx4j.model.datastorage.BindingHyperlinkResolverForOpenAPI3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateHyperlink(String bookmarkName, String url) intgetIndexOfURL(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
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(String bookmarkName, String url) throws jakarta.xml.bind.JAXBException - Overrides:
generateHyperlinkin classBindingHyperlinkResolver- Parameters:
bookmarkName-url-- Returns:
- Throws:
jakarta.xml.bind.JAXBException
-