Class XDGFFactory


  • public class XDGFFactory
    extends POIXMLFactory
    Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type
    • Constructor Detail

      • XDGFFactory

        public XDGFFactory​(XDGFDocument document)
    • Method Detail

      • getDescriptor

        protected POIXMLRelation getDescriptor​(String relationshipType)
        Description copied from class: POIXMLFactory
        returns the descriptor for the given relationship type
        Specified by:
        getDescriptor in class POIXMLFactory
        Parameters:
        relationshipType - the relationship type of the descriptor
        Returns:
        the descriptor or null if type is unknown
        Since:
        POI 3.14-Beta1
      • 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.