Header extends Component implements TableContainer, VariableContainer { public StyleHeaderElement getOdfElement() { return headerEle; } Header(StyleHeaderElement element); StyleHeaderElement getOdfElement(); boolean isVisible(); void setVisible(boolean isVisible); Table addTable(); Table addTable(int numRows, int numCols); Table getTableByName(String name); java.util.List<Table> getTableList(); TableBuilder getTableBuilder(); OdfElement getTableContainerElement(); OdfElement getVariableContainerElement(); VariableField declareVariable(String name, VariableType type); VariableField getVariableFieldByName(String name); Section appendSection(String name);  }
@Test public void testGetOdfElement() { try { TextDocument doc = TextDocument.loadDocument(ResourceUtilities.getTestResourceAsStream("headerFooterHidden.odt")); Header header = doc.getHeader(); StyleHeaderElement styleheader = header.getOdfElement(); Assert.assertNotNull(styleheader); Assert.assertEquals("header", styleheader.getLocalName()); doc.save(ResourceUtilities.newTestOutputFile("headerHiddenOutput.odt")); } catch (Exception e) { Logger.getLogger(HeaderTest.class.getName()).log(Level.SEVERE, null, e); Assert.fail(e.getMessage()); } }