Interface DocxPart

All Known Implementing Classes:
TextualDocxPart

public interface DocxPart
Represents a part of a WordprocessingML-based document. This interface extends the DocxDocument interface and provides additional methods to retrieve specific parts, manipulate document content, and stream elements such as paragraphs and runs.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the content of the WordprocessingML-based document as a list of objects.
    org.docx4j.openpackaging.packages.WordprocessingMLPackage
    Retrieves the WordprocessingMLPackage representing the entire document.
    org.docx4j.openpackaging.parts.Part
    Retrieves the part of the WordprocessingML-based document.
  • Method Details

    • part

      org.docx4j.openpackaging.parts.Part part()
      Retrieves the part of the WordprocessingML-based document.
      Returns:
      the part of the document
    • content

      List<Object> content()
      Retrieves the content of the WordprocessingML-based document as a list of objects. The content may include various document elements such as paragraphs, tables, runs, etc.
      Returns:
      a list of objects representing the document's content
    • document

      org.docx4j.openpackaging.packages.WordprocessingMLPackage document()
      Retrieves the WordprocessingMLPackage representing the entire document.
      Returns:
      the WordprocessingMLPackage of the document