Interface ContentContainer
-
- All Known Subinterfaces:
DocumentContentHandler
- All Known Implementing Classes:
DocxContextImpl
public interface ContentContainer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addContentElement(java.lang.Object element)
Add element to contentorg.docx4j.openpackaging.parts.Part
getContainerPart()
java.util.List<java.lang.Object>
getContent()
Get the content listjava.lang.Object
getLastContentElement()
Get the last added content element.org.docx4j.openpackaging.parts.relationships.RelationshipsPart
getRelationshipsPart()
Get the containers relationship.
-
-
-
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 contentMay not be added at the end of content but inserted into the content list
- Parameters:
element
- element to add
-
-