|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.POIXMLDocumentPart org.apache.poi.xwpf.usermodel.XWPFNumbering
public class XWPFNumbering
Field Summary | |
---|---|
protected java.util.List<XWPFAbstractNum> |
abstractNums
|
protected java.util.List<XWPFNum> |
nums
|
Fields inherited from class org.apache.poi.POIXMLDocumentPart |
---|
DEFAULT_XML_OPTIONS |
Constructor Summary | |
---|---|
XWPFNumbering()
create a new XWPFNumbering object for use in a new document |
|
XWPFNumbering(PackagePart part,
PackageRelationship rel)
create a new styles object with an existing document |
Method Summary | |
---|---|
java.math.BigInteger |
addAbstractNum(XWPFAbstractNum abstractNum)
add a new AbstractNum and return its AbstractNumID |
java.math.BigInteger |
addNum(java.math.BigInteger abstractNumID)
Add a new num with an abstractNumID |
void |
addNum(java.math.BigInteger abstractNumID,
java.math.BigInteger numID)
Add a new num with an abstractNumID and a numID |
java.math.BigInteger |
addNum(XWPFNum num)
add a new number to the numbering document |
protected void |
commit()
save and commit numbering |
XWPFAbstractNum |
getAbstractNum(java.math.BigInteger abstractNumID)
get AbstractNum by abstractNumID |
java.math.BigInteger |
getAbstractNumID(java.math.BigInteger numID)
return the abstractNumID If the AbstractNumID not exists return null |
java.math.BigInteger |
getIdOfAbstractNum(XWPFAbstractNum abstractNum)
Compare AbstractNum with abstractNums of this numbering document. |
XWPFNum |
getNum(java.math.BigInteger numID)
get Num by NumID |
boolean |
numExist(java.math.BigInteger numID)
Checks whether number with numID exists |
protected void |
onDocumentRead()
read numbering form an existing package |
boolean |
removeAbstractNum(java.math.BigInteger abstractNumID)
remove an existing abstractNum |
void |
setNumbering(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTNumbering numbering)
Sets the ctNumbering |
Methods inherited from class org.apache.poi.POIXMLDocumentPart |
---|
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.List<XWPFAbstractNum> abstractNums
protected java.util.List<XWPFNum> nums
Constructor Detail |
---|
public XWPFNumbering(PackagePart part, PackageRelationship rel) throws java.io.IOException, OpenXML4JException
java.io.IOException
OpenXML4JException
public XWPFNumbering()
Method Detail |
---|
protected void onDocumentRead() throws java.io.IOException
onDocumentRead
in class POIXMLDocumentPart
java.io.IOException
protected void commit() throws java.io.IOException
commit
in class POIXMLDocumentPart
java.io.IOException
public void setNumbering(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTNumbering numbering)
numbering
- public boolean numExist(java.math.BigInteger numID)
numID
-
public java.math.BigInteger addNum(XWPFNum num)
num
- public java.math.BigInteger addNum(java.math.BigInteger abstractNumID)
public void addNum(java.math.BigInteger abstractNumID, java.math.BigInteger numID)
abstractNumID
- numID
- public XWPFNum getNum(java.math.BigInteger numID)
numID
-
public XWPFAbstractNum getAbstractNum(java.math.BigInteger abstractNumID)
abstractNumID
-
public java.math.BigInteger getIdOfAbstractNum(XWPFAbstractNum abstractNum)
abstractNum
-
public java.math.BigInteger addAbstractNum(XWPFAbstractNum abstractNum)
abstractNum
- public boolean removeAbstractNum(java.math.BigInteger abstractNumID)
abstractNumID
-
public java.math.BigInteger getAbstractNumID(java.math.BigInteger numID)
numID
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |