Package io.keikai.doc.io.schema.docx
Class AbstractBody
- java.lang.Object
-
- io.keikai.doc.io.schema.docx.AbstractVisitable
-
- io.keikai.doc.io.schema.docx.AbstractBody
-
- All Implemented Interfaces:
ICTElement,IDOCXVisitable<java.lang.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 Summary
Fields Modifier and Type Field Description protected java.util.List<AbstractBodyElement>_bodyElements
-
Constructor Summary
Constructors Constructor Description AbstractBody(org.apache.poi.xwpf.usermodel.IBody iBody)Create a newAbstractBody.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DOCXPcreateParagraph()Create a new Paragraph.abstract DOCXTblcreateTable()Create a new Table.java.util.List<AbstractBodyElement>getBodyElements()Returns the paragraphs, tables, and structured document elements in order.org.apache.poi.xwpf.usermodel.IBodygetXWPF()Returns the XWPF object of current element.-
Methods inherited from class io.keikai.doc.io.schema.docx.AbstractVisitable
addTempData, getTempData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.keikai.doc.io.schema.docx.ICTElement
getCT
-
Methods inherited from interface io.keikai.doc.io.schema.docx.IDOCXVisitable
accept
-
Methods inherited from interface io.keikai.doc.io.schema.docx.IXWPFElement
getParent
-
-
-
-
Field Detail
-
_bodyElements
protected java.util.List<AbstractBodyElement> _bodyElements
-
-
Constructor Detail
-
AbstractBody
public AbstractBody(org.apache.poi.xwpf.usermodel.IBody iBody)
Create a newAbstractBody.- Parameters:
iBody-IBody.
-
-
Method Detail
-
getXWPF
public org.apache.poi.xwpf.usermodel.IBody getXWPF()
Description copied from interface:IXWPFElementReturns the XWPF object of current element.
-
getBodyElements
public java.util.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.
-
-