Package org.apache.poi.xslf.usermodel
Class XSLFFactory
java.lang.Object
org.apache.poi.ooxml.POIXMLFactory
org.apache.poi.xslf.usermodel.XSLFFactory
Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type
-
Method Summary
Modifier and TypeMethodDescriptionprotected POIXMLDocumentPart
createDocumentPart
(Class<? extends POIXMLDocumentPart> cls, Class<?>[] classes, Object[] values) Need to delegate instantiation to sub class because of constructor visibilityprotected POIXMLRelation
getDescriptor
(String relationshipType) returns the descriptor for the given relationship typestatic XSLFFactory
Methods inherited from class org.apache.poi.ooxml.POIXMLFactory
createDocumentPart, getPackageRelationship, newDocumentPart
-
Method Details
-
getInstance
-
getDescriptor
Description copied from class:POIXMLFactory
returns the descriptor for the given relationship type- Specified by:
getDescriptor
in classPOIXMLFactory
- Parameters:
relationshipType
- the relationship type of the descriptor- Returns:
- the descriptor or null if type is unknown
- Since:
- POI 3.14-Beta1
-
createDocumentPart
protected POIXMLDocumentPart createDocumentPart(Class<? extends POIXMLDocumentPart> cls, Class<?>[] classes, Object[] values) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException Description copied from class:POIXMLFactory
Need to delegate instantiation to sub class because of constructor visibility- Specified by:
createDocumentPart
in classPOIXMLFactory
- Parameters:
cls
- the document class to be instantiatedclasses
- the classes of the constructor argumentsvalues
- the values of the constructor arguments- Returns:
- the new document / part
- Throws:
SecurityException
- thrown if the object can't be instantiatedNoSuchMethodException
- thrown if there is no constructor found for the given argumentsInstantiationException
- thrown if the object can't be instantiatedIllegalAccessException
- thrown if the object can't be instantiatedInvocationTargetException
- thrown if the object can't be instantiated- Since:
- POI 3.14-Beta1
-