|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.POIXMLDocumentPart org.apache.poi.xssf.usermodel.XSSFTable
public class XSSFTable
This class implements the Table Part (Open Office XML Part 4: chapter 3.5.1) This implementation works under the assumption that a table contains mappings to a subtree of an XML. The root element of this subtree an occur multiple times (one for each row of the table). The child nodes of the root element can be only attributes or element with maxOccurs=1 property set
Field Summary |
---|
Fields inherited from class org.apache.poi.POIXMLDocumentPart |
---|
DEFAULT_XML_OPTIONS |
Constructor Summary | |
---|---|
XSSFTable()
|
|
XSSFTable(PackagePart part,
PackageRelationship rel)
|
Method Summary | |
---|---|
protected void |
commit()
Save the content in the underlying package part. |
java.lang.String |
getCommonXpath()
Calculates the xpath of the root element for the table. |
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable |
getCTTable()
|
java.lang.String |
getDisplayName()
|
CellReference |
getEndCellReference()
|
java.lang.String |
getName()
|
long |
getNumerOfMappedColumns()
|
int |
getRowCount()
|
CellReference |
getStartCellReference()
|
java.util.List<XSSFXmlColumnPr> |
getXmlColumnPrs()
|
XSSFSheet |
getXSSFSheet()
|
boolean |
mapsTo(long id)
Checks if this Table element contains even a single mapping to the map identified by id |
void |
readFrom(java.io.InputStream is)
|
void |
setDisplayName(java.lang.String name)
Changes the display name of the Table |
void |
setName(java.lang.String name)
Changes the name of the Table |
void |
writeTo(java.io.OutputStream out)
|
Methods inherited from class org.apache.poi.POIXMLDocumentPart |
---|
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSSFTable()
public XSSFTable(PackagePart part, PackageRelationship rel) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void readFrom(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public XSSFSheet getXSSFSheet()
public void writeTo(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
protected void commit() throws java.io.IOException
POIXMLDocumentPart
protected void commit() throws IOException {
PackagePart part = getPackagePart();
OutputStream out = part.getOutputStream();
XmlObject bean = getXmlBean(); //the "model" which holds changes in memory
bean.save(out, DEFAULT_XML_OPTIONS);
out.close();
}
commit
in class POIXMLDocumentPart
java.io.IOException
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTTable getCTTable()
public boolean mapsTo(long id)
id
- the XSSFMap ID
public java.lang.String getCommonXpath()
public java.util.List<XSSFXmlColumnPr> getXmlColumnPrs()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String name)
public long getNumerOfMappedColumns()
public CellReference getStartCellReference()
public CellReference getEndCellReference()
public int getRowCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |