Is there a bug in hide class?

0 votes
asked Feb 22, 2013 in Bug by anonymous
I get a syntax error when using hide class

I get the same error when using an existing class name after hide.

The documentation says that hide class should hide all classes.

I'm trying to create a file that contains only the class declarations which is then included by other files that draw diagrams, but I don't want every class drawn on every diagram.

2 Answers

0 votes
answered Feb 23, 2013 by plantuml (295,000 points)
edited Feb 23, 2013 by plantuml
I understand what you are trying to do, but you cannot do that with PlantUML today. This will be probably released in future version.

The current version of "hide" key word does only apply of some part of the class (member, stereotypes...) but not on the whole class itself. Example:

@startuml
class Foo1 {
  dummy1
}

class Foo2 {
  dummy2
}

hide class members
@enduml
0 votes
answered Feb 28, 2013 by plantuml (295,000 points)

This has been implemented in version 7959.

See http://plantuml.sourceforge.net/classes.html#Hideclass

Regards,

commented Mar 28, 2013 by anonymous
Works great. Thank you!
...