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 Details

  • Method Details

    • 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 from POIXMLDocument.load(POIXMLFactory) when parsing a document
      Overrides:
      createDocumentPart in class POIXMLFactory
      Parameters:
      parent - parent part
      part - 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 class POIXMLFactory
      Parameters:
      descriptor - describes the object to create
      Returns:
      A new instance of a POIXMLDocumentPart.