Package org.apache.poi.xdgf.usermodel
Class XDGFFactory
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLFactory
-
- org.apache.poi.xdgf.usermodel.XDGFFactory
-
public class XDGFFactory extends POIXMLFactory
Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type
-
-
Constructor Summary
Constructors Constructor Description XDGFFactory(XDGFDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description POIXMLDocumentPart
createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
Create a POIXMLDocumentPart from existing package part and relation.POIXMLDocumentPart
newDocumentPart(POIXMLRelation descriptor)
Create a new POIXMLDocumentPart using the supplied descriptor.
-
-
-
Constructor Detail
-
XDGFFactory
public XDGFFactory(XDGFDocument document)
-
-
Method Detail
-
createDocumentPart
public POIXMLDocumentPart createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
Description copied from class:POIXMLFactory
Create a POIXMLDocumentPart from existing package part and relation. This method is called fromPOIXMLDocument.load(POIXMLFactory)
when parsing a document- Overrides:
createDocumentPart
in classPOIXMLFactory
- Parameters:
parent
- parent partpart
- the PackagePart representing the created instance- Returns:
- A new instance of a POIXMLDocumentPart.
-
newDocumentPart
public POIXMLDocumentPart newDocumentPart(POIXMLRelation descriptor)
Description copied from class:POIXMLFactory
Create a new POIXMLDocumentPart using the supplied descriptor. This method is used when adding new parts to a document, for example, when adding a sheet to a workbook, slide to a presentation, etc.- Overrides:
newDocumentPart
in classPOIXMLFactory
- Parameters:
descriptor
- describes the object to create- Returns:
- A new instance of a POIXMLDocumentPart.
-
-