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 POIXMLDocumentPartcreateDocumentPart(POIXMLDocumentPart parent, PackagePart part)Create a POIXMLDocumentPart from existing package part and relation.protected POIXMLRelationgetDescriptor(String relationshipType)returns the descriptor for the given relationship typePOIXMLDocumentPartnewDocumentPart(POIXMLRelation descriptor)Create a new POIXMLDocumentPart using the supplied descriptor.-
Methods inherited from class org.apache.poi.ooxml.POIXMLFactory
getPackageRelationship
-
-
-
-
Constructor Detail
-
XDGFFactory
public XDGFFactory(XDGFDocument document)
-
-
Method Detail
-
getDescriptor
protected POIXMLRelation getDescriptor(String relationshipType)
Description copied from class:POIXMLFactoryreturns the descriptor for the given relationship type- Specified by:
getDescriptorin classPOIXMLFactory- Parameters:
relationshipType- the relationship type of the descriptor- Returns:
- the descriptor or null if type is unknown
- Since:
- POI 3.14-Beta1
-
createDocumentPart
public POIXMLDocumentPart createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
Description copied from class:POIXMLFactoryCreate a POIXMLDocumentPart from existing package part and relation. This method is called fromPOIXMLDocument.load(POIXMLFactory)when parsing a document- Overrides:
createDocumentPartin 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:POIXMLFactoryCreate 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:
newDocumentPartin classPOIXMLFactory- Parameters:
descriptor- describes the object to create- Returns:
- A new instance of a POIXMLDocumentPart.
-
-