Class XWPFEndnote

    • Constructor Detail

      • XWPFEndnote

        public XWPFEndnote()
      • XWPFEndnote

        @Internal
        public XWPFEndnote​(XWPFDocument document,
                           org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn body)
    • 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