public abstract class POIXMLFactory
extends java.lang.Object
POIXMLDocumentPart| Constructor and Description |
|---|
POIXMLFactory() |
| Modifier and Type | Method and Description |
|---|---|
POIXMLDocumentPart |
createDocumentPart(POIXMLDocumentPart parent,
PackagePart part)
Create a POIXMLDocumentPart from existing package part and relation.
|
protected abstract POIXMLRelation |
getDescriptor(java.lang.String relationshipType)
returns the descriptor for the given relationship type
|
protected PackageRelationship |
getPackageRelationship(POIXMLDocumentPart parent,
PackagePart part)
Retrieves the package relationship of the child part within the parent
|
POIXMLDocumentPart |
newDocumentPart(POIXMLRelation descriptor)
Create a new POIXMLDocumentPart using the supplied descriptor.
|
public POIXMLDocumentPart createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
POIXMLDocument.load(POIXMLFactory) when parsing a documentparent - parent partpart - the PackagePart representing the created instanceprotected abstract POIXMLRelation getDescriptor(java.lang.String relationshipType)
relationshipType - the relationship type of the descriptorpublic POIXMLDocumentPart newDocumentPart(POIXMLRelation descriptor)
descriptor - describes the object to createprotected PackageRelationship getPackageRelationship(POIXMLDocumentPart parent, PackagePart part)
parent - the parent to search for the partpart - the part to look forPOIXMLException - if the relations are erroneous or the part is not relatedCopyright 2022 The Apache Software Foundation or its licensors, as applicable.