Class TextualDocxPart
java.lang.Object
pro.verron.officestamper.core.TextualDocxPart
- All Implemented Interfaces:
DocxPart
Represents a textual part of a DOCX document, encapsulating the content and structure of the part while enabling
various operations such as accessing paragraphs, runs, and related parts. This class functions as a concrete
implementation of the
DocxPart interface. It manages the association with the XML structure of a DOCX document.-
Constructor Summary
ConstructorsConstructorDescriptionTextualDocxPart(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Constructs aTextualDocxPartusing the provideddocument.TextualDocxPart(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, org.docx4j.openpackaging.parts.Part part, org.docx4j.wml.ContentAccessor contentAccessor) -
Method Summary
Modifier and TypeMethodDescriptioncontent()Retrieves the list of content objects associated with this document part.org.docx4j.openpackaging.packages.WordprocessingMLPackagedocument()Returns theWordprocessingMLPackageinstance representing the document associated with this part.org.docx4j.openpackaging.parts.Partpart()Retrieves the part associated with this instance of the document part.
-
Constructor Details
-
TextualDocxPart
public TextualDocxPart(org.docx4j.openpackaging.packages.WordprocessingMLPackage document) Constructs aTextualDocxPartusing the provideddocument. This constructor initializes the instance with the main document part and content accessor derived from the providedWordprocessingMLPackage.- Parameters:
document- theWordprocessingMLPackagerepresenting the document to be processed.
-
TextualDocxPart
public TextualDocxPart(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, org.docx4j.openpackaging.parts.Part part, org.docx4j.wml.ContentAccessor contentAccessor) - Parameters:
document- theWordprocessingMLPackagerepresenting the document to be processed.part- the specific part of the document being processed.contentAccessor- the content accessor associated with the document part.
-
-
Method Details
-
part
-
content
-
document
-