Class XWPFStylesShim

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

public class XWPFStylesShim extends Object
Scrapes from styles.xml each style's name, its basedOn parent and whether its own run properties set bold or italics.
  • Field Details

    • EMPTY_STYLES

      public static final XWPFStylesShim EMPTY_STYLES
      Empty singleton to be used when there is no style info
  • Constructor Details

  • Method Details

    • getStyleName

      public String getStyleName(String styleId)
      Parameters:
      styleId -
      Returns:
      style's name or null if styleId is null or can't be found
    • isBold

      public boolean isBold(String styleId)
      Returns:
      whether the style, or the nearest style it is based on that says either way, sets bold; false if none does
    • isItalics

      public boolean isItalics(String styleId)
      Returns:
      whether the style, or the nearest style it is based on that says either way, sets italics; false if none does