Class XWPFNumberingShim
java.lang.Object
org.apache.tika.parser.microsoft.ooxml.xwpf.XWPFNumberingShim
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXWPFNumberingShim(org.apache.poi.openxml4j.opc.PackagePart part, ParseContext parseContext) -
Method Summary
Modifier and TypeMethodDescriptionintgetAbstractNumId(int numId) getAbstractNumLevels(int abstractNumId) getOverrideLevels(int numId, int length) Build override level tuples array for a given numId with the specified length.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
XWPFNumberingShim
public XWPFNumberingShim(org.apache.poi.openxml4j.opc.PackagePart part, ParseContext parseContext) throws IOException, TikaException, SAXException - Throws:
IOExceptionTikaExceptionSAXException
-
-
Method Details
-
getAbstractNumId
public int getAbstractNumId(int numId) - Returns:
- the abstractNumId for the given numId, or -1 if not found
-
getAbstractNumLevels
- Returns:
- the level tuples for the given abstractNumId, or null if not found
-
getOverrideLevels
Build override level tuples array for a given numId with the specified length. Returns null if there are no overrides for this numId.
-