RelationshipsManager — Aspose.Slides FOSS Java API Reference
Overview
RelationshipsManager manages OPC relationships (.rels files) within a package part. Browse the properties and methods in the tables below to understand the complete public API surface of this type. All members listed here are part of the stable public API and may be used in production code targeting the FOSS edition. Refer to the package documentation for installation instructions and a complete list of related types.
Package: org.aspose.slides.foss.internal.opc
Properties
| Property | Type | Access | Description |
|---|---|---|---|
allRelationships | List<Relationship> | Read/Write | The all relationships value. |
partName | String | Read/Write | The part name value. |
RELS_NAMESPACE | String | Read | The OPC relationships namespace URI used in .rels files |
RELS_NS | String | Read | The prefix binding for the relationships namespace |
REL_TYPES | Map<String, String> | Read | Map of known relationship type URIs to their short names |
Methods
| Method | Returns | Description |
|---|---|---|
getRelsPartName(String sourcePart) | String | Returns the relationships part name (.rels path) for the given source part. |
getRelationship(String relId) | Optional<Relationship> | Get a relationship by ID. |
getRelationshipsByType(String relType) | List<Relationship> | Returns relationships matching the specified type. |
getAllRelationships() | List<Relationship> | Returns the list of stored relationships. |
addRelationship(String relType, String target, String relId, String targetMode) | String | Add a new relationship. |
addRelationship(String relType, String target) | String | Add a new relationship with auto-generated ID and no target mode. |
removeRelationship(String relId) | boolean | Remove a relationship by ID. |
save() | void | Save the relationships back to the package. |
getPartName() | String | Returns the part name associated with this relationships manager. |