Package org.apache.poi.xdgf.usermodel
Class XDGFFactory
java.lang.Object
org.apache.poi.ooxml.POIXMLFactory
org.apache.poi.xdgf.usermodel.XDGFFactory
Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDocumentPart(POIXMLDocumentPart parent, PackagePart part) Create a POIXMLDocumentPart from existing package part and relation.protected POIXMLRelationgetDescriptor(String relationshipType) returns the descriptor for the given relationship typenewDocumentPart(POIXMLRelation descriptor) Create a new POIXMLDocumentPart using the supplied descriptor.Methods inherited from class org.apache.poi.ooxml.POIXMLFactory
getPackageRelationship
-
Constructor Details
-
XDGFFactory
-
-
Method Details
-
getDescriptor
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:
- 3.14-Beta1
-
createDocumentPart
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
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.
-