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>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) HashMap<String,AbstractListNumberingDefinition> private Emulator(package private) HashMap<String,ListNumberingDefinition> private static org.slf4j.Loggerprivate booleanFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPartXPathAware
binderFields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_ErrorFields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAbstractListNumberingDefinition(Numbering.AbstractNum abstractNum) Add the specified definition, allocating it a new w:abstractNumId.voidaddAbstractListNumberingDefinitionLevel(Numbering.AbstractNum abstractNum, Lvl lvl) getEmulator(boolean reset) getInd(PPrBase.NumPr numPr) private PPrBase.IndgetIndFromLvl(Lvl lvl) private StyleDefinitionsPartvoidinit()voidvoidinitialiseMaps(boolean resolveNumStyleLink) private voidvoidresolveLinkedAbstractNum(Numbering.AbstractNum abstractNum, AbstractListNumberingDefinition absNumDef) longrestart(long numId, long ilvl, long val) For the given *concrete* list numId, restart the numbering on the specified level at value val.private longrestart(Numbering.Num num, long ilvl, long val) protected voidsetMceIgnorable(McIgnorableNamespaceDeclarator namespacePrefixMapper) Where the mc:Ignorable attribute is present, ensure its contents matches the ignorable namespaces actually present.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, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getXML, getXMLStreamReader, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, replacePartContent, setContents, setJAXBContext, setJaxbElement, transform, transformToDom, 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
-
Field Details
-
log
private static org.slf4j.Logger log -
abstractListDefinitions
HashMap<String,AbstractListNumberingDefinition> abstractListDefinitions -
instanceListDefinitions
HashMap<String,ListNumberingDefinition> instanceListDefinitions -
numStyleLinkIsPresent
private boolean numStyleLinkIsPresent -
em
-
-
Constructor Details
-
NumberingDefinitionsPart
- Throws:
InvalidFormatException
-
NumberingDefinitionsPart
- Throws:
InvalidFormatException
-
-
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
- Overrides:
getMceIgnorablein classJaxbXmlPart<Numbering>
-
getAbstractListDefinitions
-
getInstanceListDefinitions
-
getStyleDefinitionsPart
-
initialiseMaps
public void initialiseMaps() -
initialiseMaps
public void initialiseMaps(boolean resolveNumStyleLink) -
resolveLinkedAbstractNum
private void resolveLinkedAbstractNum() -
resolveLinkedAbstractNum
public void resolveLinkedAbstractNum(Numbering.AbstractNum abstractNum, AbstractListNumberingDefinition absNumDef) -
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
-
restart
- Throws:
InvalidOperationException
-
getEmulator
-
getEmulator
- Parameters:
reset-- Returns:
- Since:
- 3.0.0
-
getInd
-
getInd
-
getIndFromLvl
-
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:
jakarta.xml.bind.JAXBException
-