Class XWPFNumberingShim

java.lang.Object
org.apache.tika.parser.microsoft.ooxml.xwpf.XWPFNumberingShim

public class XWPFNumberingShim extends Object
SAX-based parser for numbering.xml that replaces the XMLBeans-dependent POI XWPFNumbering. This eliminates the need for ooxml-lite schema classes in the SAX parsing chain.

Follows the same pattern as XWPFStylesShim.

  • Field Details

  • Constructor Details

  • Method Details

    • getAbstractNumId

      public int getAbstractNumId(int numId)
      Returns:
      the abstractNumId for the given numId, or -1 if not found
    • getAbstractNumLevels

      public AbstractListManager.LevelTuple[] getAbstractNumLevels(int abstractNumId)
      Returns:
      the level tuples for the given abstractNumId, or null if not found
    • getOverrideLevels

      public AbstractListManager.LevelTuple[] getOverrideLevels(int numId, int length)
      Build override level tuples array for a given numId with the specified length. Returns null if there are no overrides for this numId.