Class AbstractBody

java.lang.Object
io.keikai.doc.io.schema.docx.AbstractVisitable
io.keikai.doc.io.schema.docx.AbstractBody
All Implemented Interfaces:
ICTElement, IDOCXVisitable<Object>, IXWPFElement
Direct Known Subclasses:
AbstractHdrFtr, DOCXDocument, DOCXTc

public abstract class AbstractBody extends AbstractVisitable
Internal Use Only.

Represents elements accept paragraphs and tables as children.

Author:
Jamson Chan
  • Field Details

  • Constructor Details

    • AbstractBody

      public AbstractBody(org.apache.poi.xwpf.usermodel.IBody iBody)
      Create a new AbstractBody.
      Parameters:
      iBody - IBody.
  • Method Details

    • getXWPF

      public org.apache.poi.xwpf.usermodel.IBody getXWPF()
      Description copied from interface: IXWPFElement
      Returns the XWPF object of current element.
    • getBodyElements

      public List<AbstractBodyElement> getBodyElements()
      Returns the paragraphs, tables, and structured document elements in order.

      Represents the following element tags in the schema: w:p, w:tbl, w:sdt.

      Returns:
      the paragraphs, tables, and structured document elements in order.
    • createParagraph

      public abstract DOCXP createParagraph()
      Create a new Paragraph.
      Returns:
      the new Paragraph.
    • createTable

      public abstract DOCXTbl createTable()
      Create a new Table.
      Returns:
      the new Table.