Class XWPFEndnote

    • Method Detail

      • ensureFootnoteRef

        public void ensureFootnoteRef​(XWPFParagraph p)
        Ensure that the specified paragraph has a reference marker for this end note by adding a footnote reference if one is not found.

        This method is for the first paragraph in the footnote, not paragraphs that will refer to the footnote. For references to the footnote, use {@link XWPFParagraph#addFootnoteReference(XWPFAbstractFootnoteEndnote))}.

        The first run of the first paragraph in a footnote should contain a CTFtnEdnRef object.

        Specified by:
        ensureFootnoteRef in class XWPFAbstractFootnoteEndnote
        Parameters:
        p - The XWPFParagraph to ensure
        Since:
        4.0.0