org.apache.poi
Class POIXMLDocumentPart.RelationPart

java.lang.Object
  extended by org.apache.poi.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
<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 2017 The Apache Software Foundation or its licensors, as applicable.