RelationshipsManager

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

PropertyTypeAccessDescription
allRelationshipsList<Relationship>Read/WriteThe all relationships value.
partNameStringRead/WriteThe part name value.
RELS_NAMESPACEStringReadThe OPC relationships namespace URI used in .rels files
RELS_NSStringReadThe prefix binding for the relationships namespace
REL_TYPESMap<String, String>ReadMap of known relationship type URIs to their short names

Methods

MethodReturnsDescription
getRelsPartName(String sourcePart)StringReturns 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)StringAdd a new relationship.
addRelationship(String relType, String target)StringAdd a new relationship with auto-generated ID and no target mode.
removeRelationship(String relId)booleanRemove a relationship by ID.
save()voidSave the relationships back to the package.
getPartName()StringReturns the part name associated with this relationships manager.

See Also