Interface ContentContainer

    • Method Detail

      • getContent

        java.util.List<java.lang.Object> getContent()
        Get the content list
        Returns:
        list of content
      • getRelationshipsPart

        org.docx4j.openpackaging.parts.relationships.RelationshipsPart getRelationshipsPart()
        Get the containers relationship. Needed for footnotes that contain links and probably images
        Returns:
        relationship part for the container.
      • getContainerPart

        org.docx4j.openpackaging.parts.Part getContainerPart()
      • getLastContentElement

        java.lang.Object getLastContentElement()
        Get the last added content element.

        May not be the last element of getContent() if elements are being inserted into the middle of content.

        Returns:
        last content element or null if none
      • addContentElement

        void addContentElement​(java.lang.Object element)
        Add element to content

        May not be added at the end of content but inserted into the content list

        Parameters:
        element - element to add