Should ViewSet::getViews() return ModelView instead of View? #208
-
QuestionI wonder why getViews() in https://github.com/structurizr/java/blob/master/structurizr-core/src/com/structurizr/view/ViewSet.java#L527 returns a collection of "View" instead of "ModelView". I have a kotlin script run via structrizr-cli and want to get all elements included in a view. But getElements() is only defined on ModelView, not on View. So I can't get the elements of a view :-( As far as I understand the code, all Elements returned by getViews() are ModelViews, so I suggest to return Collection |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You could just do the Kotlin equivalent of something like:
|
Beta Was this translation helpful? Give feedback.
You could just do the Kotlin equivalent of something like: