List of usage examples for org.apache.poi.xwpf.usermodel XWPFAbstractNum getCTAbstractNum
public CTAbstractNum getCTAbstractNum()
From source file:org.apache.tika.parser.microsoft.ooxml.XWPFListManager.java
License:Apache License
private ParagraphLevelCounter loadLevelTuples(CTDecimalNumber abNum) { //Unfortunately, we need to go this far into the underlying structure //to get the abstract num information for the edge case where //someone skips a level and the format is not context-free, e.g. "1.B.i". XWPFAbstractNum abstractNum = numbering.getAbstractNum(abNum.getVal()); CTAbstractNum ctAbstractNum = abstractNum.getCTAbstractNum(); LevelTuple[] levels = new LevelTuple[ctAbstractNum.sizeOfLvlArray()]; for (int i = 0; i < levels.length; i++) { levels[i] = buildTuple(i, ctAbstractNum.getLvlArray(i)); }/*w ww . j a v a 2 s .c o m*/ return new ParagraphLevelCounter(levels); }