Class XWPFHyperlinkRun

java.lang.Object
org.apache.poi.xwpf.usermodel.XWPFRun
org.apache.poi.xwpf.usermodel.XWPFHyperlinkRun
All Implemented Interfaces:
CharacterRun, IRunElement, ISDTContents

public class XWPFHyperlinkRun extends XWPFRun
A run of text with a Hyperlink applied to it. Any given Hyperlink may be made up of multiple of these.
  • Constructor Details

    • XWPFHyperlinkRun

      public XWPFHyperlinkRun(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHyperlink hyperlink, org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR run, IRunBody p)
  • Method Details

    • getCTHyperlink

      @Internal public org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHyperlink getCTHyperlink()
    • getAnchor

      public String getAnchor()
    • getHyperlinkId

      public String getHyperlinkId()
      Returns the ID of the hyperlink, if one is set.
    • setHyperlinkId

      public void setHyperlinkId(String id)
    • getHyperlink

      public XWPFHyperlink getHyperlink(XWPFDocument document)
      If this Hyperlink is an external reference hyperlink, return the object for it.