private String convertToNewNumFormat(int numberFormat) {
        switch (numberFormat) {
            case -1:
                return "none";
            case 0:
                return "decimal";
            case 1:
                return "upperRoman";
            case 2:
                return "lowerRoman";
            case 3:
                return "upperLetter";
            case 4:
                return "lowerLetter";
            case 5:
                return "ordinal";
            case 22:
                return "decimalZero";
            case 23:
                return "bullet";
            case 47:
                return "none";
            default:
                //do we really want to silently swallow these uncovered cases?
                //throw new RuntimeException("NOT COVERED: " + numberFormat);
                return "decimal";
        }
    }
Get the formatted number for a given paragraph
<p/>
<p><em>Note:</em> This only works correctly if called subsequently for <em>all</em>
paragraphs in a valid selection (main document, text field, ...) which are part of a list
.</p>

@param paragraph list paragraph to process
@return String which represents the numbering of this list paragraph; never {@code null},
can be empty string, though,
if something goes wrong in getList()
@throws IllegalArgumentException If the given paragraph is {@code null} or is not part of
a list
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/ListManager.java