Class NumberingDefinitionsPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<E>
org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware<Numbering>
org.docx4j.openpackaging.parts.WordprocessingML.NumberingDefinitionsPart
- All Implemented Interfaces:
XPathEnabled<Numbering>
public final class NumberingDefinitionsPart extends JaxbXmlPartXPathAware<Numbering>
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_Error -
Constructor Summary
Constructors Constructor Description NumberingDefinitionsPart()NumberingDefinitionsPart(PartName partName) -
Method Summary
Modifier and Type Method Description Numbering.NumaddAbstractListNumberingDefinition(Numbering.AbstractNum abstractNum)Add the specified definition, allocating it a new w:abstractNumId.voidaddAbstractListNumberingDefinitionLevel(Numbering.AbstractNum abstractNum, Lvl lvl)java.util.HashMap<java.lang.String,AbstractListNumberingDefinition>getAbstractListDefinitions()EmulatorgetEmulator()EmulatorgetEmulator(boolean reset)PPrBase.IndgetInd(java.lang.String numId, java.lang.String ilvl)PPrBase.IndgetInd(PPrBase.NumPr numPr)java.util.HashMap<java.lang.String,ListNumberingDefinition>getInstanceListDefinitions()java.lang.StringgetMceIgnorable()voidinit()voidinitialiseMaps()voidresolveLinkedAbstractNum(StyleDefinitionsPart sdp)longrestart(long numId, long ilvl, long val)For the given *concrete* list numId, restart the numbering on the specified level at value val.protected voidsetMceIgnorable(McIgnorableNamespaceDeclarator namespacePrefixMapper)Where the mc:Ignorable attribute is present, ensure its contents matches the ignorable namespaces actually present.NumberingunmarshalDefaultNumbering()Methods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
createBinderAndJaxbElement, getBinder, getJAXBAssociationsForXPath, getJAXBAssociationsForXPath, getJAXBNodesViaXPath, getJAXBNodesViaXPath, setJaxbElement, unmarshal, unmarshalMethods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
addMcChoiceNamespace, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getXML, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, setContents, setJAXBContext, setJaxbElement, transform, variableReplaceMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersionMethods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Constructor Details
-
Method Details
-
init
public void init() -
setMceIgnorable
Description copied from class:JaxbXmlPartWhere the mc:Ignorable attribute is present, ensure its contents matches the ignorable namespaces actually present.- Overrides:
setMceIgnorablein classJaxbXmlPart<Numbering>
-
getMceIgnorable
public java.lang.String getMceIgnorable()- Overrides:
getMceIgnorablein classJaxbXmlPart<Numbering>
-
getAbstractListDefinitions
public java.util.HashMap<java.lang.String,AbstractListNumberingDefinition> getAbstractListDefinitions() -
getInstanceListDefinitions
-
initialiseMaps
public void initialiseMaps() -
resolveLinkedAbstractNum
-
restart
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
-
getEmulator
- Parameters:
reset-- Returns:
- Since:
- 3.0.0
-
getInd
-
getInd
-
addAbstractListNumberingDefinition
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
-
unmarshalDefaultNumbering
- Throws:
javax.xml.bind.JAXBException
-