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

Commit 7942cb3

Browse files
author
Simon Brown
committed
Added a key property, so specific views can easily be referenced.
1 parent 4f531c5 commit 7942cb3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • structurizr-core/src/com/structurizr/view

structurizr-core/src/com/structurizr/view/View.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public abstract class View implements Comparable<View> {
1313
private SoftwareSystem softwareSystem;
1414
private String softwareSystemId;
1515
private String description = "";
16+
private String key;
1617
private PaperSize paperSize = PaperSize.A4_Portrait;
1718

1819
private Set<ElementView> elementViews = new LinkedHashSet<>();
@@ -67,6 +68,14 @@ public void setDescription(String description) {
6768
}
6869
}
6970

71+
public String getKey() {
72+
return key;
73+
}
74+
75+
public void setKey(String key) {
76+
this.key = key;
77+
}
78+
7079
public PaperSize getPaperSize() {
7180
return paperSize;
7281
}

0 commit comments

Comments
 (0)