public class XWPFEndnotes extends XWPFAbstractFootnotesEndnotes
XWPFEndnote).| Constructor and Description |
|---|
XWPFEndnotes() |
XWPFEndnotes(PackagePart part)
Construct XWPFEndnotes from a package part
|
| Modifier and Type | Method and Description |
|---|---|
XWPFEndnote |
addEndnote(CTFtnEdn note)
Add an endnote to the document
|
void |
addEndnote(XWPFEndnote endnote)
add an
XWPFEndnote to the document |
XWPFEndnote |
createEndnote()
Create a new end note and add it to the document.
|
List<XWPFEndnote> |
getEndnotesList()
Get the list of
XWPFEndnote in the Endnotes part. |
XWPFEndnote |
getFootnoteById(int id)
Get the end note with the specified ID, if any.
|
boolean |
removeEndnote(int pos)
Remove the specified end note if present.
|
boolean |
removeFootnote(int pos)
Remove the specified footnote if present.
|
void |
setEndnotes(CTEndnotes endnotes)
Set the end notes for this part.
|
getIdManager, getXWPFDocument, setIdManager, setXWPFDocument_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toStringpublic XWPFEndnotes()
public XWPFEndnotes(PackagePart part) throws IOException, OpenXML4JException
part - the package part holding the data of the footnotes,IOExceptionOpenXML4JException@Internal public void setEndnotes(CTEndnotes endnotes)
endnotes - The endnotes to be added.public XWPFEndnote createEndnote()
public boolean removeFootnote(int pos)
pos - public void addEndnote(XWPFEndnote endnote)
XWPFEndnote to the documentendnote - IOException@Internal public XWPFEndnote addEndnote(CTFtnEdn note)
note - Note to addXWPFEndnoteIOExceptionpublic XWPFEndnote getFootnoteById(int id)
getFootnoteById in class XWPFAbstractFootnotesEndnotesid - End note ID.public List<XWPFEndnote> getEndnotesList()
XWPFEndnote in the Endnotes part.public boolean removeEndnote(int pos)
pos - Array position of the endnote to be removedCopyright © 2010 - 2020 Adobe. All Rights Reserved