org.apache.poi.ooxml

## Class POIXMLDocumentPart.RelationPart

- java.lang.Object
- - org.apache.poi.ooxml.POIXMLDocumentPart.RelationPart

- Enclosing class:
    POIXMLDocumentPart

      public static class POIXMLDocumentPart.RelationPart
      extends java.lang.Object

  The RelationPart is a cached relationship between the document, which contains the RelationPart, and one of its referenced child document parts. The child document parts may only belong to one parent, but it's often referenced by other parents too, having varying `relationship ids` pointing to it.

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T extends POIXMLDocumentPart> T` | `getDocumentPart()`
    `PackageRelationship` | `getRelationship()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getRelationship

          public PackageRelationship getRelationship()

      Returns:
        the cached relationship, which uniquely identifies this child document part within the parent

    - #### getDocumentPart

          public <T extends POIXMLDocumentPart> T getDocumentPart()

      Type Parameters:
        `T` - the cast of the caller to a document sub class
      Returns:
        the child document part

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