public interface IBody
8 Jan 2010
// This Interface represents an object, which is able to have a collection of paragraphs and tables this can be XWFPDocument, XWPFHeader, XWPFFooter, XWPFTableCell
Modifier and Type | Method and Description |
---|---|
List<IBodyElement> |
getBodyElements()
Returns an Iterator with paragraphs and tables,
in the order that they occur in the text.
|
XWPFParagraph |
getParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP p)
if there is a corresponding
XWPFParagraph of the parameter ctTable in the paragraphList of this header or footer
the method will return this paragraph
if there is no corresponding XWPFParagraph the method will return null |
XWPFParagraph |
getParagraphArray(int pos)
Returns the paragraph that of position pos
|
List<XWPFParagraph> |
getParagraphs()
Returns the paragraph(s) that holds
the text of the header or footer.
|
POIXMLDocumentPart |
getPart()
returns the Part, to which the body belongs, which you need for adding relationship to other parts
Actually it is needed of the class XWPFTableCell.
|
BodyType |
getPartType()
get the PartType of the body, for example
DOCUMENT, HEADER, FOOTER, FOOTNOTE,
|
XWPFTable |
getTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl ctTable)
|
XWPFTable |
getTableArray(int pos)
Returns the table at position pos
|
XWPFTableCell |
getTableCell(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc cell)
returns the TableCell to which the Table belongs
|
List<XWPFTable> |
getTables()
Return the table(s) that holds the text
of the IBodyPart, for complex cases
where a paragraph isn't used.
|
XWPFDocument |
getXWPFDocument()
Return XWPFDocument
|
XWPFParagraph |
insertNewParagraph(org.apache.xmlbeans.XmlCursor cursor)
inserts a new paragraph at position of the cursor
|
XWPFTable |
insertNewTbl(org.apache.xmlbeans.XmlCursor cursor)
inserts a new Table at the cursor position.
|
void |
insertTable(int pos,
XWPFTable table)
inserts a new Table at position pos
|
POIXMLDocumentPart getPart()
BodyType getPartType()
List<IBodyElement> getBodyElements()
List<XWPFParagraph> getParagraphs()
List<XWPFTable> getTables()
XWPFParagraph getParagraph(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTP p)
XWPFParagraph
of the parameter ctTable in the paragraphList of this header or footer
the method will return this paragraph
if there is no corresponding XWPFParagraph
the method will return nullp
- is instance of CTP and is searching for an XWPFParagraphXWPFTable getTable(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTbl ctTable)
XWPFTable
of the parameter ctTable in the tableList of this header
the method will return this table
if there is no corresponding XWPFTable
the method will return nullctTable
- XWPFParagraph getParagraphArray(int pos)
XWPFTable getTableArray(int pos)
XWPFParagraph insertNewParagraph(org.apache.xmlbeans.XmlCursor cursor)
cursor
- XWPFTable insertNewTbl(org.apache.xmlbeans.XmlCursor cursor)
cursor
- void insertTable(int pos, XWPFTable table)
pos
- table
- XWPFTableCell getTableCell(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTc cell)
cell
- XWPFDocument getXWPFDocument()
Copyright © 2020. All rights reserved.