org.apache.poi.xwpf.usermodel
Class XWPFFootnotes
- java.lang.Object
-
- org.apache.poi.POIXMLDocumentPart
-
- org.apache.poi.xwpf.usermodel.XWPFFootnotes
-
public class XWPFFootnotes extends POIXMLDocumentPart
Looks after the collection of Footnotes for a document
-
-
Field Summary
-
Fields inherited from class org.apache.poi.POIXMLDocumentPart
DEFAULT_XML_OPTIONS
-
-
Constructor Summary
Constructors Constructor and Description XWPFFootnotes()Construct XWPFFootnotes from scratch for a new document.XWPFFootnotes(PackagePart part, PackageRelationship rel)Construct XWPFFootnotes from a package part
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description XWPFFootnoteaddFootnote(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn note)add a footnote to the documentvoidaddFootnote(XWPFFootnote footnote)add an XWPFFootnote to the documentXWPFFootnotegetFootnoteById(int id)java.util.List<XWPFFootnote>getFootnotesList()XWPFDocumentgetXWPFDocument()voidsetFootnotes(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFootnotes footnotes)Sets the ctFootnotesvoidsetXWPFDocument(XWPFDocument doc)-
Methods inherited from class org.apache.poi.POIXMLDocumentPart
addRelation, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, toString
-
-
-
-
Constructor Detail
-
XWPFFootnotes
public XWPFFootnotes(PackagePart part, PackageRelationship rel) throws java.io.IOException, OpenXML4JException
Construct XWPFFootnotes from a package part- Parameters:
part- the package part holding the data of the footnotes,rel- the package relationship of type "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes"- Throws:
java.io.IOExceptionOpenXML4JException
-
XWPFFootnotes
public XWPFFootnotes()
Construct XWPFFootnotes from scratch for a new document.
-
-
Method Detail
-
getFootnotesList
public java.util.List<XWPFFootnote> getFootnotesList()
-
getFootnoteById
public XWPFFootnote getFootnoteById(int id)
-
setFootnotes
public void setFootnotes(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFootnotes footnotes)
Sets the ctFootnotes- Parameters:
footnotes-
-
addFootnote
public void addFootnote(XWPFFootnote footnote)
add an XWPFFootnote to the document- Parameters:
footnote-- Throws:
java.io.IOException
-
addFootnote
public XWPFFootnote addFootnote(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTFtnEdn note)
add a footnote to the document- Parameters:
note-- Throws:
java.io.IOException
-
setXWPFDocument
public void setXWPFDocument(XWPFDocument doc)
-
getXWPFDocument
public XWPFDocument getXWPFDocument()
- See Also:
IBody.getPart()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG