public class XWPFNumbering
extends org.apache.poi.ooxml.POIXMLDocumentPart
Constructor and Description |
---|
XWPFNumbering()
create a new XWPFNumbering object for use in a new document
|
XWPFNumbering(PackagePart part)
create a new styles object with an existing document
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
addAbstractNum(XWPFAbstractNum abstractNum)
add a new AbstractNum and return its AbstractNumID
|
BigInteger |
addNum(BigInteger abstractNumID)
Add a new num with an abstractNumID
|
void |
addNum(BigInteger abstractNumID,
BigInteger numID)
Add a new num with an abstractNumID and a numID
|
BigInteger |
addNum(XWPFNum num)
add a new number to the numbering document
|
XWPFAbstractNum |
getAbstractNum(BigInteger abstractNumID)
get AbstractNum by abstractNumID
|
BigInteger |
getAbstractNumID(BigInteger numID)
return the abstractNumID
If the AbstractNumID not exists
return null
|
BigInteger |
getIdOfAbstractNum(XWPFAbstractNum abstractNum)
Compare AbstractNum with abstractNums of this numbering document.
|
XWPFNum |
getNum(BigInteger numID)
get Num by NumID
|
boolean |
numExist(BigInteger numID)
Checks whether number with numID exists
|
boolean |
removeAbstractNum(BigInteger abstractNumID)
remove an existing abstractNum
|
void |
setNumbering(CTNumbering numbering)
Sets the ctNumbering
|
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, isCommitted, setCommited, setCommitted, toString
public XWPFNumbering(PackagePart part) throws IOException, OpenXML4JException
IOException
OpenXML4JException
public XWPFNumbering()
public void setNumbering(CTNumbering numbering)
numbering
- public boolean numExist(BigInteger numID)
numID
- public BigInteger addNum(XWPFNum num)
num
- public BigInteger addNum(BigInteger abstractNumID)
public void addNum(BigInteger abstractNumID, BigInteger numID)
abstractNumID
- numID
- public XWPFNum getNum(BigInteger numID)
numID
- public XWPFAbstractNum getAbstractNum(BigInteger abstractNumID)
abstractNumID
- public BigInteger getIdOfAbstractNum(XWPFAbstractNum abstractNum)
abstractNum
- public BigInteger addAbstractNum(XWPFAbstractNum abstractNum)
abstractNum
- public boolean removeAbstractNum(BigInteger abstractNumID)
abstractNumID
- public BigInteger getAbstractNumID(BigInteger numID)
numID
- Copyright © 2010 - 2020 Adobe. All Rights Reserved