GenDoc Hidden elements
What is the OCL expression in gendoc that would filter out elements on the diagram that are Hidden?
We have a diagram which contains Visible elements but hidden elements within itself. These elements are Components and sub-components within itself. Some are Hidden, others appear on the diagram.
RE: GenDoc Hidden elements
self.children->select(not hidden)->union(self.children.children->select((not hidden)and element.oclIsKindOf(uml::together::Node) ))
will return a list of all non-hidden nodes from current diagram;
Will return all top-level visible nodes
This can't be used as a filter expression, as you need to have a diagram in context; rather it can be used as a 'programmed' iteration scope for iterator nested in diagrams iterator.