-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from comsysto/bugfix/livingdoc-7
[livingdoc-7] Diagram IDs are ignored (Limit elements to specific dia…
- Loading branch information
Showing
15 changed files
with
128 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
processors/src/main/resources/com/comsysto/livingdoc/s0t/s0t-relations.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
processors/src/main/resources/com/comsysto/livingdoc/s0t/s0t-types.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../src/test/resources/com/comsysto/livingdoc/s0t/example/ground-vehicles-class.puml.s0t.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<#ftl attributes={"s0t:is-template":true}/> | ||
<#global diagramId="ground-vehicles"/> | ||
<#-- @ftlvariable name="s0tModel" type="com.comsysto.livingdoc.s0t.model.S0tModel" --> | ||
@startuml | ||
!include ./format.iuml | ||
hide empty members | ||
title Ground Vehicles class diagram | ||
|
||
<@S0tTypes.renderTypes s0tModel/> | ||
|
||
<@S0tRelations.renderRelations s0tModel/> | ||
|
||
@enduml |
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions
55
processors/src/test/resources/expected/expected-ground-vehicles-class.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@startuml | ||
!include ./format.iuml | ||
hide empty members | ||
title Ground Vehicles class diagram | ||
|
||
class Car | ||
abstract class GroundVehicle { | ||
-int numberOfWheels | ||
} | ||
|
||
note top of GroundVehicle | ||
A vehicle that drives on the | ||
ground | ||
end note | ||
|
||
note right of GroundVehicle | ||
Multiple notes may be | ||
attached | ||
to a type | ||
end note | ||
|
||
class Train { | ||
+List<Car> loadedCars | ||
} | ||
|
||
note top of Train | ||
Models a train. A train may | ||
carry a cargo of cars. | ||
end note | ||
|
||
enum TransportType { | ||
PASSENGERS | ||
CARGO | ||
} | ||
|
||
note top of TransportType | ||
Indicates whether a vehicle | ||
transports passengers or | ||
cargo. | ||
end note | ||
|
||
class Vehicle { | ||
+TransportType transportType | ||
} | ||
|
||
GroundVehicle <|-- Car | ||
|
||
Vehicle <|-- GroundVehicle | ||
|
||
GroundVehicle <|-- Train | ||
Train --> "0..*" Car | ||
|
||
Vehicle --> TransportType | ||
|
||
@enduml |