Returns the OpenXmlPackage that contains this relationship.
Returns the source part of this relationship, or null for package-level relationships.
Returns the unique relationship ID (e.g., "rId1").
Returns the relationship type URI. Compare with RelationshipType constants.
Returns the raw target URI (may be relative). Use getTargetFullName for a resolved URI.
Returns "External" for external targets, or null for internal targets.
Represents a single relationship within an Open XML package.
Remarks
Relationships link parts to other parts or external resources. Each relationship has a unique ID, a type URI, and a target URI. Package-level relationships are stored in
/_rels/.rels; part-level relationships are stored alongside each part.Use OpenXmlPackage.getRelationships or OpenXmlPart.getRelationships to retrieve relationships, and RelationshipType constants for type comparisons.
Example