org.apache.poi.xwpf.usermodel
public abstract class XWPFHeaderFooter extends POIXMLDocumentPart
Modifier and Type | Field and Description |
---|---|
protected CTHdrFtr |
headerFooter |
DEFAULT_XML_OPTIONS
Modifier | Constructor and Description |
---|---|
protected |
XWPFHeaderFooter() |
protected |
XWPFHeaderFooter(CTHdrFtr hdrFtr) |
|
XWPFHeaderFooter(PackagePart part,
PackageRelationship rel) |
Modifier and Type | Method and Description |
---|---|
CTHdrFtr |
_getHdrFtr() |
XWPFParagraph[] |
getParagraphs()
Returns the paragraph(s) that holds
the text of the header or footer.
|
XWPFTable[] |
getTables()
Return the table(s) that holds the text
of the header or footer, for complex cases
where a paragraph isn't used.
|
java.lang.String |
getText()
Returns the textual content of the header/footer,
by flattening out the text of its paragraph(s)
|
addRelation, commit, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelations, onDocumentCreate, onDocumentRead, onSave, read, removeRelation, toString
protected XWPFHeaderFooter(CTHdrFtr hdrFtr)
protected XWPFHeaderFooter()
public XWPFHeaderFooter(PackagePart part, PackageRelationship rel) throws java.io.IOException
java.io.IOException
@Internal public CTHdrFtr _getHdrFtr()
public XWPFParagraph[] getParagraphs()
public XWPFTable[] getTables()
public java.lang.String getText()
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.