Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.xwpf.usermodel
Class XWPFFactory

    java.lang.Object
      org.apache.poi.POIXMLFactory
          org.apache.poi.xwpf.usermodel.XWPFFactory

    public final class XWPFFactory

extends POIXMLFactory

Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type

Method Summary
`protected POIXMLDocumentPart` | `createDocumentPart(java.lang.Class<? extends POIXMLDocumentPart> cls, java.lang.Class<?>[] classes, java.lang.Object[] values)` Need to delegate instantiation to sub class because of constructor visibility
`protected POIXMLRelation` | `getDescriptor(java.lang.String relationshipType)` returns the descriptor for the given relationship type
`static XWPFFactory` | `getInstance()`

Methods inherited from class org.apache.poi.POIXMLFactory
`createDocumentPart, getPackageRelationship, newDocumentPart`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getInstance

    public static XWPFFactory getInstance()

### getDescriptor

    protected POIXMLRelation getDescriptor(java.lang.String relationshipType)

  Description copied from class: `POIXMLFactory`
  returns the descriptor for the given relationship type

  Specified by:
    `getDescriptor` in class `POIXMLFactory`
  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(java.lang.Class<? extends POIXMLDocumentPart> cls,
                                                    java.lang.Class<?>[] classes,
                                                    java.lang.Object[] values)
                                             throws java.lang.SecurityException,
                                                    java.lang.NoSuchMethodException,
                                                    java.lang.InstantiationException,
                                                    java.lang.IllegalAccessException,
                                                    java.lang.reflect.InvocationTargetException

  Description copied from class: `POIXMLFactory`
  Need to delegate instantiation to sub class because of constructor visibility

  Specified by:
    `createDocumentPart` in class `POIXMLFactory`
  Parameters:
    `cls` - the document class to be instantiated
    `classes` - the classes of the constructor arguments
    `values` - the values of the constructor arguments
  Returns:
    the new document / part
  Throws:
    `java.lang.SecurityException` - thrown if the object can't be instantiated
    `java.lang.NoSuchMethodException` - thrown if there is no constructor found for the given arguments
    `java.lang.InstantiationException` - thrown if the object can't be instantiated
    `java.lang.IllegalAccessException` - thrown if the object can't be instantiated
    `java.lang.reflect.InvocationTargetException` - thrown if the object can't be instantiated
  Since:
    POI 3.14-Beta1

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.