public abstract class POIXMLFactory
extends java.lang.Object
POIXMLDocumentPart
(定义使子类能够创建 POIXMLDocumentPart 实例的工厂 API)
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.
(从现有的包部件和关系创建 POIXMLDocumentPart。)
|
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.
(使用提供的描述符创建一个新的 POIXMLDocumentPart。)
|
public POIXMLDocumentPart createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
POIXMLDocument.load(POIXMLFactory)
when parsing a document
(从现有的包部件和关系创建 POIXMLDocumentPart。解析文档时从 POIXMLDocument.load(POIXMLFactory) 调用此方法)
parent
- parent part
(父级 - 父级)
part
- the PackagePart representing the created instance
(part - 表示创建的实例的 PackagePart)
protected abstract POIXMLRelation getDescriptor(java.lang.String relationshipType)
relationshipType
- the relationship type of the descriptor
(relationshipType - 描述符的关系类型)
public POIXMLDocumentPart newDocumentPart(POIXMLRelation descriptor)
descriptor
- describes the object to create
(描述符 - 描述要创建的对象)
protected PackageRelationship getPackageRelationship(POIXMLDocumentPart parent, PackagePart part)
parent
- the parent to search for the part
(parent - 要搜索零件的父级)
part
- the part to look for
(part - 要查找的部分)
POIXMLException
- if the relations are erroneous or the part is not related
(POIXMLException - 如果关系错误或部件不相关)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.