Skip to content
This repository was archived by the owner on Mar 28, 2026. It is now read-only.

Commit 23d3921

Browse files
Adds documentation section filenames into the model.
1 parent 0dbfce7 commit 23d3921

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ subprojects { proj ->
88

99
description = 'Structurizr'
1010
group = 'com.structurizr'
11-
version = '1.14.1'
11+
version = '1.14.2'
1212

1313
repositories {
1414
mavenCentral()

docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.14.2 (unreleased to Maven Central)
4+
5+
- Adds documentation section filenames into the model.
6+
37
## 1.14.1 (15th August 2022)
48

59
- Enables `structurizr-core` to be used as a transitive dependency by consumers of `structurizr-client`.

structurizr-core/src/com/structurizr/documentation/Section.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
public final class Section extends DocumentationContent {
77

8+
private String filename;
89
private int order;
910

1011
public Section() {
@@ -16,6 +17,24 @@ public Section(String title, Format format, String content) {
1617
setContent(content);
1718
}
1819

20+
/**
21+
* Gets the filename of this section.
22+
*
23+
* @return the filename, as a String
24+
*/
25+
public String getFilename() {
26+
return filename;
27+
}
28+
29+
/**
30+
* Sets the filename of this section (e.g. where this section was imported from).
31+
*
32+
* @param filename the filename, as a String
33+
*/
34+
public void setFilename(String filename) {
35+
this.filename = filename;
36+
}
37+
1938
public int getOrder() {
2039
return order;
2140
}

0 commit comments

Comments
 (0)