---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/relshelper
---

# RelsHelper — Aspose.Slides FOSS Java API Reference

## Overview

`RelsHelper` lightweight helper for reading and writing OPC relationship files using OpcPackage. 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.

**Package**: `org.aspose.slides.foss.internal.pptx`

---

## Properties

| Property | Type | Access | Description |
|---|---|---|---|
| `allRelationships` | `List<RelEntry>` | Read | The all relationships value. |

---

## Methods

| Method | Returns | Description |
|---|---|---|
| `getRelsPartName(String sourcePart)` | `String` | Returns the . |
| `getAllRelationships()` | `List<RelEntry>` | Returns all relationships. |
| `addRelationship(String type, String target)` | `String` | Adds a new relationship with auto-generated ID. |
| `addRelationship(String type, String target, String targetMode)` | `String` | Adds a new relationship with optional target mode. |
| `save()` | `void` | Saves the relationships back to the package. |

---

## See Also

- [Aspose.Slides FOSS Java API Reference home](/slides/java/)
- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)