Class NumberingDefinitionsPart

All Implemented Interfaces:
XPathEnabled<Numbering>

public final class NumberingDefinitionsPart
extends JaxbXmlPartXPathAware<Numbering>
  • Constructor Details

  • Method Details

    • init

      public void init()
    • setMceIgnorable

      protected void setMceIgnorable​(McIgnorableNamespaceDeclarator namespacePrefixMapper)
      Description copied from class: JaxbXmlPart
      Where the mc:Ignorable attribute is present, ensure its contents matches the ignorable namespaces actually present.
      Overrides:
      setMceIgnorable in class JaxbXmlPart<Numbering>
    • getMceIgnorable

      public java.lang.String getMceIgnorable()
      Overrides:
      getMceIgnorable in class JaxbXmlPart<Numbering>
    • getAbstractListDefinitions

      public java.util.HashMap<java.lang.String,​AbstractListNumberingDefinition> getAbstractListDefinitions()
    • getInstanceListDefinitions

      public java.util.HashMap<java.lang.String,​ListNumberingDefinition> getInstanceListDefinitions()
    • initialiseMaps

      public void initialiseMaps()
    • resolveLinkedAbstractNum

      public void resolveLinkedAbstractNum​(StyleDefinitionsPart sdp)
    • restart

      public long restart​(long numId, long ilvl, long val) throws InvalidOperationException
      For the given *concrete* list numId, restart the numbering on the specified level at value val. This is done by creating a new list (ie <w:num>) which uses the existing w:abstractNum.
      Parameters:
      numId -
      ilvl -
      val -
      Returns:
      Throws:
      InvalidOperationException
    • getEmulator

      public Emulator getEmulator()
    • getEmulator

      public Emulator getEmulator​(boolean reset)
      Parameters:
      reset -
      Returns:
      Since:
      3.0.0
    • getInd

      public PPrBase.Ind getInd​(PPrBase.NumPr numPr)
    • getInd

      public PPrBase.Ind getInd​(java.lang.String numId, java.lang.String ilvl)
    • addAbstractListNumberingDefinition

      public Numbering.Num addAbstractListNumberingDefinition​(Numbering.AbstractNum abstractNum)
      Add the specified definition, allocating it a new w:abstractNumId. Also create and add an associated ListNumberingDefinition, and return this associated ListNumberingDefinition (since that is what you are likely to use in the document).
      Parameters:
      abstractNum -
      Returns:
    • addAbstractListNumberingDefinitionLevel

      public void addAbstractListNumberingDefinitionLevel​(Numbering.AbstractNum abstractNum, Lvl lvl)
    • unmarshalDefaultNumbering

      public Numbering unmarshalDefaultNumbering() throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.xml.bind.JAXBException