Class POIXMLDocumentPart.RelationPart

  • Enclosing class:
    POIXMLDocumentPart

    public static class POIXMLDocumentPart.RelationPart
    extends 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 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