Example usage for org.apache.poi.hwpf.model ListLevel getRestart

List of usage examples for org.apache.poi.hwpf.model ListLevel getRestart

Introduction

In this page you can find the example usage for org.apache.poi.hwpf.model ListLevel getRestart.

Prototype

public short getRestart() 

Source Link

Document

An unsigned integer that specifies the first (most-significant) zero-based level after which the number sequence of this level does not restart.

Usage

From source file:org.apache.tika.parser.microsoft.ListManager.java

License:Apache License

private LevelTuple buildTuple(int i, ListLevel listLevel) {
    boolean isLegal = false;
    int start = 1;
    int restart = -1;
    String lvlText = "%" + i + ".";
    String numFmt = "decimal";

    start = listLevel.getStartAt();//from  w  ww  . j  a va2  s . c o m
    restart = listLevel.getRestart();
    isLegal = listLevel.isLegalNumbering();
    numFmt = convertToNewNumFormat(listLevel.getNumberFormat());
    lvlText = convertToNewNumberText(listLevel.getNumberText(),
            listLevel.getLevelNumberingPlaceholderOffsets());
    return new LevelTuple(start, restart, lvlText, numFmt, isLegal);
}